summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2003-06-13 21:56:27 +0000
committerJim Blandy <jimb@codesourcery.com>2003-06-13 21:56:27 +0000
commit5496161a8de72c38394a08db0b8957c2b5965e76 (patch)
tree274e9200b479d4f3dfe10a80690e48e165f00f75
parent581bb087ee5ee07c89061a6425fa43ea8a84bbf9 (diff)
downloadgdb-jimb-ppc64-linux-20030613-branchpoint.tar.gz
* solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPCjimb-ppc64-linux-20030613-branchpoint
Linux entry point symbols for _dl_debug_state, too.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/solib-svr4.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 50e7fbbec62..5237edf51f2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-13 Jim Blandy <jimb@redhat.com>
+
+ * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
+ Linux entry point symbols for _dl_debug_state, too.
+
2003-06-13 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 1edc0f66290..d4335349790 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -81,6 +81,17 @@ static char *solib_break_names[] =
"_dl_debug_state",
"rtld_db_dlactivity",
"_rtld_debug_state",
+
+ /* On the 64-bit PowerPC, the linker symbol with the same name as
+ the C function points to a function descriptor, not to the entry
+ point. The linker symbol whose name is the C function name
+ prefixed with a '.' points to the function's entry point. So
+ when we look through this table, we ignore symbols that point
+ into the data section (thus skipping the descriptor's symbol),
+ and eventually try this one, giving us the real entry point
+ address. */
+ "._dl_debug_state",
+
NULL
};