aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-03-20 22:52:53 +0000
committerAndrew Cagney <cagney@redhat.com>2003-03-20 22:52:53 +0000
commitf20d38b7ff3da36ec0ccc69bc40af853724ea8e3 (patch)
tree0507d7c6a304aa38b5d2bc3d5723ad577a0b639b /gdb
parent0022b738691998cec611963e1c221c00468533ed (diff)
downloadgdb-f20d38b7ff3da36ec0ccc69bc40af853724ea8e3.zip
gdb-f20d38b7ff3da36ec0ccc69bc40af853724ea8e3.tar.gz
gdb-f20d38b7ff3da36ec0ccc69bc40af853724ea8e3.tar.bz2
2003-03-20 Andrew Cagney <cagney@redhat.com>
* infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro. (handle_inferior_event): Remove code calling DYNAMIC_TRAMPOLINE_NEXTPC.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/infrun.c34
2 files changed, 4 insertions, 34 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9606f6e..c60bccd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2003-03-20 Andrew Cagney <cagney@redhat.com>
+ * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
+ (handle_inferior_event): Remove code calling
+ DYNAMIC_TRAMPOLINE_NEXTPC.
+
* Makefile.in (init.c): Don't add $(srcdir) prefix when a file
already has a full path.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index d4e454c..03a8e57 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -107,21 +107,6 @@ static ptid_t previous_inferior_ptid;
static int may_follow_exec = MAY_FOLLOW_EXEC;
-/* Dynamic function trampolines are similar to solib trampolines in that they
- are between the caller and the callee. The difference is that when you
- enter a dynamic trampoline, you can't determine the callee's address. Some
- (usually complex) code needs to run in the dynamic trampoline to figure out
- the callee's address. This macro is usually called twice. First, when we
- enter the trampoline (looks like a normal function call at that point). It
- should return the PC of a point within the trampoline where the callee's
- address is known. Second, when we hit the breakpoint, this routine returns
- the callee's address. At that point, things proceed as per a step resume
- breakpoint. */
-
-#ifndef DYNAMIC_TRAMPOLINE_NEXTPC
-#define DYNAMIC_TRAMPOLINE_NEXTPC(pc) 0
-#endif
-
/* If the program uses ELF-style shared libraries, then calls to
functions in shared libraries go through stubs, which live in a
table called the PLT (Procedure Linkage Table). The first time the
@@ -2404,25 +2389,6 @@ process_event_stop_test:
real_stop_pc = SKIP_TRAMPOLINE_CODE (stop_pc);
if (real_stop_pc != 0)
ecs->stop_func_start = real_stop_pc;
- else
- {
- real_stop_pc = DYNAMIC_TRAMPOLINE_NEXTPC (stop_pc);
- if (real_stop_pc)
- {
- struct symtab_and_line xxx;
- /* Why isn't this s_a_l called "sr_sal", like all of the
- other s_a_l's where this code is duplicated? */
- init_sal (&xxx); /* initialize to zeroes */
- xxx.pc = real_stop_pc;
- xxx.section = find_pc_overlay (xxx.pc);
- check_for_old_step_resume_breakpoint ();
- step_resume_breakpoint =
- set_momentary_breakpoint (xxx, null_frame_id, bp_step_resume);
- insert_breakpoints ();
- keep_going (ecs);
- return;
- }
- }
/* If we have line number information for the function we
are thinking of stepping into, step into it.