summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2008-10-27 04:50:15 +0000
committerMichael Snyder <msnyder@specifix.com>2008-10-27 04:50:15 +0000
commit7aef4cc0aca482d537a9e875080b3149cc6aa8b3 (patch)
tree39cd51f70ccca1356264d4e425fc98387cfe07be
parentd34491936742444a1896b7051fc68f2568ce51e0 (diff)
downloadgdb-7aef4cc0aca482d537a9e875080b3149cc6aa8b3.tar.gz
2008-10-24 Michael Snyder <msnyder@vmware.com>
* infrun.c (handle_inferior_event): Handle dynamic symbol resolution in reverse.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infrun.c16
2 files changed, 21 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 12c46d0ef12..060a27b7649 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-24 Michael Snyder <msnyder@vmware.com>
+
+ * infrun.c (handle_inferior_event): Handle dynamic symbol
+ resolution in reverse.
+
2008-10-19 Hui Zhu <teawater@gmail.com>
* infcmd.c (kill_if_already_running): Remove process record
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 78fc8710b16..5e792b5f282 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3212,6 +3212,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);