[arm] Fix regression by Do not skip prologue for asm (.S) files
authorYao Qi <yao.qi@linaro.org>
Tue, 7 Jul 2015 09:37:28 +0000 (10:37 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 7 Jul 2015 09:40:30 +0000 (10:40 +0100)
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  <yao.qi@linaro.org>

* gdb.arch/thumb-singlestep.exp: Do one more single step.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/thumb-singlestep.exp

index 0a90fa9b53ae1c2b2c936e6ff7699fae6a2e615a..2a63301d999eb947a47da7a570d2fd062ed3f984 100644 (file)
@@ -1,3 +1,7 @@
+2015-07-07  Yao Qi  <yao.qi@linaro.org>
+
+       * gdb.arch/thumb-singlestep.exp: Do one more single step.
+
 2015-06-30  Martin Galvan  <martin.galvan@tallertechnologies.com>
 
        * lib/gdb.exp (test_class_help): Remove the unneeded escaping of
index 07adaaf3b2d1178b3775f3544571c557d12951e1..e7a865f263658d28521bd416d2c2c46c97136eb6 100644 (file)
@@ -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"
 
This page took 0.044381 seconds and 4 git commands to generate.