aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-31 23:45:10 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-31 23:45:10 +0000
commit82233d87ed3ff54672d6f7a20d0186a2ad38df29 (patch)
tree99e58e4089750f3994609b8757058f26820b1d8a /gdb
parent1b0d430b05b565a41786ce6bdd848f0ebb63a996 (diff)
downloadgdb-82233d87ed3ff54672d6f7a20d0186a2ad38df29.zip
gdb-82233d87ed3ff54672d6f7a20d0186a2ad38df29.tar.gz
gdb-82233d87ed3ff54672d6f7a20d0186a2ad38df29.tar.bz2
* ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
find_solib_trampoline_target if PC is not in .plt section.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ppc-linux-tdep.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d95746c..a059d1b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
+ * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
+ find_solib_trampoline_target if PC is not in .plt section.
+
+2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
+
* elfread.c (elf_symtab_read): When constructing a solib trampoline
minimal symbol from an undefined dynamic symbol, use proper section.
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c
index 323078e..a82c95e 100644
--- a/gdb/ppc-linux-tdep.c
+++ b/gdb/ppc-linux-tdep.c
@@ -57,10 +57,10 @@ ppc_linux_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc)
char symname[1024];
struct minimal_symbol *msymbol;
- /* Find the section pc is in; return if not in .plt */
+ /* Find the section pc is in; if not in .plt, try the default method. */
sect = find_pc_section (pc);
if (!sect || strcmp (sect->the_bfd_section->name, ".plt") != 0)
- return 0;
+ return find_solib_trampoline_target (frame, pc);
objfile = sect->objfile;