diff options
author | Don Breazeal <donb@codesourcery.com> | 2015-08-26 13:26:36 -0700 |
---|---|---|
committer | Don Breazeal <donb@codesourcery.com> | 2015-08-26 13:38:40 -0700 |
commit | 8d37573b4356a38d091b0f18b69f91797a7cef26 (patch) | |
tree | 0913ee7c8d4fba833fddc4b4aef9844fb8235224 /gdb/amd64-nat.h | |
parent | ba49e44bdcfdb5e936686a42d84e5ca043267cab (diff) | |
download | gdb-8d37573b4356a38d091b0f18b69f91797a7cef26.zip gdb-8d37573b4356a38d091b0f18b69f91797a7cef26.tar.gz gdb-8d37573b4356a38d091b0f18b69f91797a7cef26.tar.bz2 |
New test for follow-exec-mode
This patch implements a new GDB test for follow-exec-mode. Although
there is a GDB test for debugging across an exec, there is no test for
follow-exec-mode. This test is derived from gdb.base/foll-exec.exp,
and re-uses execd-prog.c as the program to exec.
The following behavior is tested:
follow-exec-mode == "same"
- 'next' over the exec, check for one inferior
- 'continue' past the exec to a breakpoint, check for one inferior
- after the exec, use a 'run' command to run the current binary
follow-exec-mode == "new"
- 'next' over the exec, check for two inferiors
- 'continue' past the exec to a breakpoint, check for two inferiors
- after the exec, use a 'run' command to run the current binary
- after the exec, use the 'inferior' command to switch inferiors,
then use a 'run' command to run the current binary
Note that single-step breakpoints do not survive across an exec.
There has to be a breakpoint in the execed program in order for
it to stop right after the exec.
gdb/testsuite/ChangeLog:
* gdb.base/foll-exec-2.c: New test program.
* gdb.base/foll-exec-2.exp: New test.
Diffstat (limited to 'gdb/amd64-nat.h')
0 files changed, 0 insertions, 0 deletions