diff options
author | mmetzger <mmetzger> | 2013-09-18 13:02:42 +0000 |
---|---|---|
committer | mmetzger <mmetzger> | 2013-09-18 13:02:42 +0000 |
commit | 46ba1bad0e9a308b12ebf1b1f31c9839df3cd33f (patch) | |
tree | 8e4c0860d3c353a1cf7b84dc6f5169dcf71df7e4 /gdb/infrun.c | |
parent | 61a0fb214b24b426cdd76a876498c31785d957aa (diff) | |
download | gdb-46ba1bad0e9a308b12ebf1b1f31c9839df3cd33f.tar.gz |
When reverse-stepping, only insert a resume breakpoint at ecs->stop_func_start
if the function start is known. Otherwise, keep single-stepping.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 9e4323c72e2..8952b23a96a 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -4943,7 +4943,7 @@ process_event_stop_test: or stepped back out of a signal handler to the first instruction of the function. Just keep going, which will single-step back to the caller. */ - if (ecs->stop_func_start != stop_pc) + if (ecs->stop_func_start != stop_pc && ecs->stop_func_start != 0) { struct symtab_and_line sr_sal; |