diff options
author | Doug Evans <dje@google.com> | 2009-12-21 20:52:53 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-12-21 20:52:53 +0000 |
commit | 10e86dd77848e00024b5de420c18e13db9a103c9 (patch) | |
tree | 79c8754517a0feb8a9824169a0b5927e1f232d3e /gdb/gdbserver/thread-db.c | |
parent | 4ee62156d969867d3d3ffedf656a74643f77279e (diff) | |
download | gdb-10e86dd77848e00024b5de420c18e13db9a103c9.zip gdb-10e86dd77848e00024b5de420c18e13db9a103c9.tar.gz gdb-10e86dd77848e00024b5de420c18e13db9a103c9.tar.bz2 |
* configure.ac: Check for dladdr.
* config.in: Regenerate.
* configure: Regenerate.
* thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
(try_thread_db_load): Update.
Diffstat (limited to 'gdb/gdbserver/thread-db.c')
-rw-r--r-- | gdb/gdbserver/thread-db.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/gdbserver/thread-db.c b/gdb/gdbserver/thread-db.c index f273082..e169a50 100644 --- a/gdb/gdbserver/thread-db.c +++ b/gdb/gdbserver/thread-db.c @@ -596,6 +596,8 @@ try_thread_db_load_1 (void *handle) return 1; } +#ifdef HAVE_DLADDR + /* Lookup a library in which given symbol resides. Note: this is looking in the GDBSERVER process, not in the inferior. Returns library name, or NULL. */ @@ -610,6 +612,8 @@ dladdr_to_soname (const void *addr) return NULL; } +#endif + static int try_thread_db_load (const char *library) { @@ -626,6 +630,7 @@ try_thread_db_load (const char *library) return 0; } +#ifdef HAVE_DLADDR if (debug_threads && strchr (library, '/') == NULL) { void *td_init; @@ -640,6 +645,7 @@ try_thread_db_load (const char *library) library, libpath); } } +#endif if (try_thread_db_load_1 (handle)) return 1; |