This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch v4 22/24] infrun: reverse stepping from unknown functions
- From: Markus Metzger <markus dot t dot metzger at intel dot com>
- To: jan dot kratochvil at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 3 Jul 2013 11:14:32 +0200
- Subject: [patch v4 22/24] infrun: reverse stepping from unknown functions
- References: <1372842874-28951-1-git-send-email-markus dot t dot metzger at intel dot com>
When reverse-stepping, only insert a resume breakpoint at ecs->stop_func_start
if the function start is known. Otherwise, keep single-stepping.
2013-07-03 Markus Metzger <markus.t.metzger@intel.com>
* infrun.c (handle_inferior_event): Check if we know the function
start address.
---
gdb/infrun.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index dc1036d..bd44016 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -4939,7 +4939,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;
--
1.7.1