diff options
author | Markus Metzger <mmetzger@sourceware.org> | 2013-09-18 13:02:42 +0000 |
---|---|---|
committer | Markus Metzger <mmetzger@sourceware.org> | 2013-09-18 13:02:42 +0000 |
commit | 58c48e7253d94d36e3119134b0c41a99088bae89 (patch) | |
tree | 202c0997bb48d72060fd693471f95eb589b8be74 /gdb/infrun.c | |
parent | c8d37639e3a23ed7349a17c3ac4d1407113eaa17 (diff) | |
download | gdb-58c48e7253d94d36e3119134b0c41a99088bae89.zip gdb-58c48e7253d94d36e3119134b0c41a99088bae89.tar.gz gdb-58c48e7253d94d36e3119134b0c41a99088bae89.tar.bz2 |
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 9e4323c..8952b23 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; |