From 58c48e7253d94d36e3119134b0c41a99088bae89 Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Wed, 18 Sep 2013 13:02:42 +0000 Subject: When reverse-stepping, only insert a resume breakpoint at ecs->stop_func_start if the function start is known. Otherwise, keep single-stepping. --- gdb/infrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/infrun.c') 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; -- cgit v1.1