On 4/1/21 3:25 AM, Alex Bennée wrote:
      check_break("SHA1Init")
- # check step and inspect values
+    # Check step and inspect values. We do a double next after the
+    # breakpoint as depending on the version of gdb we may step the
+    # preamble and not the first actual line of source.
+    gdb.execute("next")
      gdb.execute("next")
      val_ctx = gdb.parse_and_eval("context->state[0]")
      exp_ctx = 0x67452301
This double next seems just as fragile.  Why don't you just set the breakpoint 
where you want, which appears to be sha1.c:138?

r~

Reply via email to