[patch v4 22/24] infrun: reverse stepping from unknown functions
Markus Metzger
markus.t.metzger@intel.com
Wed Jul 3 09:14:00 GMT 2013
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
More information about the Gdb-patches
mailing list