From: Yao Qi Date: Tue, 7 Jul 2015 09:37:28 +0000 (+0100) Subject: [arm] Fix regression by Do not skip prologue for asm (.S) files X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d441430b752a617fe476e745b95f544fe4463fec;p=binutils-gdb.git [arm] Fix regression by Do not skip prologue for asm (.S) files Patch "Do not skip prologue for asm (.S) files" [1] changes GDB's behaviour on which test gdb.arch/thumb-singlestep.exp depends, so it causes the fail below: (gdb) si^M 37 blx foo^M (gdb) FAIL: gdb.arch/thumb-singlestep.exp: step into foo the test assumes the program will stop at the instruction after "push" but it doesn't. The fix to this fail is to do one more single step. [1] https://sourceware.org/ml/gdb-patches/2015-06/msg00561.html gdb/testsuite: 2015-07-07 Yao Qi * gdb.arch/thumb-singlestep.exp: Do one more single step. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0a90fa9b53a..2a63301d999 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-07-07 Yao Qi + + * gdb.arch/thumb-singlestep.exp: Do one more single step. + 2015-06-30 Martin Galvan * lib/gdb.exp (test_class_help): Remove the unneeded escaping of diff --git a/gdb/testsuite/gdb.arch/thumb-singlestep.exp b/gdb/testsuite/gdb.arch/thumb-singlestep.exp index 07adaaf3b2d..e7a865f2636 100644 --- a/gdb/testsuite/gdb.arch/thumb-singlestep.exp +++ b/gdb/testsuite/gdb.arch/thumb-singlestep.exp @@ -34,5 +34,8 @@ if ![runto_main] then { return -1 } +# GDB doesn't skip prologue for asm files, so do one single step to +# pass instruction "push". +gdb_test "si" "blx foo.*" "single step" gdb_test "si" "foo \\(\\) at .*${srcfile}.*mov r0,#42.*" "step into foo"