diff options
author | Yao Qi <yao.qi@linaro.org> | 2016-03-03 09:17:44 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2016-03-03 09:17:44 +0000 |
commit | 92fa70b0bd8690d979357ebcdb501a9e4aa42ea6 (patch) | |
tree | b9f1817e9f55a430403c5c12ef42baf09ba2a800 /gdb/testsuite/ChangeLog | |
parent | e197ad3c87723a2bdf383d38fcfa3eaa4fa1ba12 (diff) | |
download | gdb-92fa70b0bd8690d979357ebcdb501a9e4aa42ea6.zip gdb-92fa70b0bd8690d979357ebcdb501a9e4aa42ea6.tar.gz gdb-92fa70b0bd8690d979357ebcdb501a9e4aa42ea6.tar.bz2 |
Step over fork/vfork syscall insn in gdbserver
We can also extend disp-step-syscall.exp to test GDBserver step over
breakpoint on syscall instruction. That is, we set a breakpoint
with a false condition on syscall instruction, so that GDBserver will
step over it.
This test triggers a GDBserver internal error, which can be fixed by
this series.
(gdb) PASS: gdb.base/disp-step-syscall.exp: fork: break cond on target: break on syscall insns
continue^M
Continuing.^M
Remote connection closed^M
(gdb) FAIL: gdb.base/disp-step-syscall.exp: fork: break cond on target: continue to fork again
In GDBserver, there is an internal error,
/home/yao/SourceCode/gnu/gdb/git/gdb/gdbserver/linux-low.c:1922: A problem internal to GDBserver has been detected.
unsuspend LWP 25554, suspended=-1
the simplified reproducer is like,
$ ./gdb ./testsuite/outputs/gdb.base/disp-step-syscall/disp-step-fork
(gdb) b main
(gdb) c
(gdb) disassemble fork // in order to find the address of insn 'syscall'
....
0x00007ffff7ad6023 <+179>: syscall
(gdb) b *0x00007ffff7ad6023 if main == 0
(gdb) c
gdb/testsuite:
2016-03-03 Yao Qi <yao.qi@linaro.org>
* gdb.base/disp-step-syscall.exp (break_cond_on_syscall): New.
If target supports condition evaluation on target, invoke
break_cond_on_syscall for fork and vfork.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 244efcc..eab1255 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2016-03-03 Yao Qi <yao.qi@linaro.org> + * gdb.base/disp-step-syscall.exp (break_cond_on_syscall): New. + If target supports condition evaluation on target, invoke + break_cond_on_syscall for fork and vfork. + +2016-03-03 Yao Qi <yao.qi@linaro.org> + * gdb.base/disp-step-syscall.exp: Don't invoke support_displaced_stepping. (disp_step_cross_syscall): Test with displaced stepping off and |