From 3067f6e5f1ef45e7882121519ed20dec1c41fc8a Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 27 Oct 2008 04:53:05 +0000 Subject: [PATCH] 2008-10-26 Michael Snyder * infrun.c (handle_inferior_event): Handle dynamic symbol resolution in reverse. --- gdb/ChangeLog | 5 +++++ gdb/infrun.c | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 75565484b48..71d09b60fa7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-10-26 Michael Snyder + + * infrun.c (handle_inferior_event): Handle dynamic symbol + resolution in reverse. + 2008-10-25 Joel Brobecker * infrun.c: Minor comment reformatting. diff --git a/gdb/infrun.c b/gdb/infrun.c index 9fd72262b43..46b5e407afb 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3393,6 +3393,22 @@ infrun: BPSTAT_WHAT_SET_LONGJMP_RESUME (!gdbarch_get_longjmp_target)\n"); if (execution_direction == EXEC_REVERSE) { struct symtab_and_line sr_sal; + + if (ecs->stop_func_start == 0 + && in_solib_dynsym_resolve_code (stop_pc)) + { + /* Stepped into runtime loader dynamic symbol + resolution code. Since we're in reverse, + we have already backed up through the runtime + loader and the dynamic function. This is just + the trampoline (jump table). + + Just keep stepping, we'll soon be home. + */ + keep_going (ecs); + return; + } + /* Normal (staticly linked) function call return. */ init_sal (&sr_sal); sr_sal.pc = ecs->stop_func_start; insert_step_resume_breakpoint_at_sal (sr_sal, null_frame_id); -- 2.30.2