From: Markus Metzger Date: Wed, 18 Sep 2013 13:02:42 +0000 (+0000) Subject: When reverse-stepping, only insert a resume breakpoint at ecs->stop_func_start X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58c48e7253d94d36e3119134b0c41a99088bae89;p=binutils-gdb.git When reverse-stepping, only insert a resume breakpoint at ecs->stop_func_start if the function start is known. Otherwise, keep single-stepping. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5ae9a107752..49660b4dc19 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-09-18 Markus Metzger + + * infrun.c (handle_inferior_event): Check if we know the + function start address before setting a resume breakpoint. + 2013-09-18 Pedro Alves * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to 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;