diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-10-09 00:31:01 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-10-09 00:31:01 +0000 |
commit | cdbfd4198ec38a42766a578d4058bd752d25011c (patch) | |
tree | f0495b9a586fdff1e5205ec37e0c3748c9cb9c21 /gdb/gdbserver/configure | |
parent | 37e124c9c30152b6833198a8c283c533c7b1fcce (diff) | |
download | fsf-binutils-gdb-cdbfd4198ec38a42766a578d4058bd752d25011c.zip fsf-binutils-gdb-cdbfd4198ec38a42766a578d4058bd752d25011c.tar.gz fsf-binutils-gdb-cdbfd4198ec38a42766a578d4058bd752d25011c.tar.bz2 |
doc/
2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.texinfo (Server): Document libthread-db-search-path.
gdbserver/
2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
* acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
* configure.ac: Adjust.
* linux-low.h (struct process_info_private): Move members to struct
thread_db.
(thread_db_free, thread_db_handle_monitor_command): New prototype.
* linux-low.c (linux_remove_process): Adjust.
(linux_wait_for_event_1, linux_look_up_symbols): Likewise.
* server.c (handle_query): Move code ...
(handle_monitor_command): ... here. New function.
* target.h (struct target_ops): New member.
* thread-db.c (struct thread_db): New.
(libthread_db_search_path): New variable.
(thread_db_create_event, thread_db_enable_reporting)
(find_one_thread, maybe_attach_thread, find_new_threads_callback)
(thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
(try_thread_db_load_1, dladdr_to_soname): New functions.
(try_thread_db_load, thread_db_load_search): New functions.
(thread_db_init): Search for libthread_db.
(thread_db_free): New function.
(thread_db_handle_monitor_command): Likewise.
* config.in: Regenerate.
* configure: Regenerate.
Diffstat (limited to 'gdb/gdbserver/configure')
-rwxr-xr-x | gdb/gdbserver/configure | 128 |
1 files changed, 1 insertions, 127 deletions
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index b777c1b..b88ed5b 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -4210,125 +4210,7 @@ srv_libs= USE_THREAD_DB= if test "$srv_linux_thread_db" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libthread_db" >&5 -$as_echo_n "checking for libthread_db... " >&6; } -if test "${srv_cv_thread_db+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - old_LIBS="$LIBS" - LIBS="$LIBS -lthread_db" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -void ps_pglobal_lookup() {} - void ps_pdread() {} - void ps_pdwrite() {} - void ps_lgetregs() {} - void ps_lsetregs() {} - void ps_lgetfpregs() {} - void ps_lsetfpregs() {} - void ps_get_thread_area() {} - void ps_getpid() {} -int -main () -{ -td_ta_new(); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - srv_cv_thread_db="-lthread_db" -else - srv_cv_thread_db=no - - if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then - thread_db="/lib/libthread_db.so.1" - else - thread_db='$prefix/lib/libthread_db.so.1' - fi - LIBS="$old_LIBS `eval echo "$thread_db"`" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -void ps_pglobal_lookup() {} - void ps_pdread() {} - void ps_pdwrite() {} - void ps_lgetregs() {} - void ps_lsetregs() {} - void ps_lgetfpregs() {} - void ps_lsetfpregs() {} - void ps_get_thread_area() {} - void ps_getpid() {} -int -main () -{ -td_ta_new(); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - srv_cv_thread_db="$thread_db" -else - srv_cv_thread_db=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$old_LIBS" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $srv_cv_thread_db" >&5 -$as_echo "$srv_cv_thread_db" >&6; } - if test "$srv_cv_thread_db" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libthread_db." >&5 -$as_echo "$as_me: WARNING: Could not find libthread_db." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling thread support in gdbserver." >&5 -$as_echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;} - srv_linux_thread_db=no - else - srv_libs="$srv_cv_thread_db" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_db_tls_get_addr" >&5 -$as_echo_n "checking for thread_db_tls_get_addr... " >&6; } -if test "${srv_cv_tls_get_addr+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - old_LIBS="$LIBS" - LIBS="$LIBS $srv_cv_thread_db" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -void ps_pglobal_lookup() {} - void ps_pdread() {} - void ps_pdwrite() {} - void ps_lgetregs() {} - void ps_lsetregs() {} - void ps_lgetfpregs() {} - void ps_lsetfpregs() {} - void ps_get_thread_area() {} - void ps_getpid() {} -int -main () -{ -td_thr_tls_get_addr(); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - srv_cv_tls_get_addr=yes -else - srv_cv_tls_get_addr=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$old_LIBS" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $srv_cv_tls_get_addr" >&5 -$as_echo "$srv_cv_tls_get_addr" >&6; } - fi + srv_libs="-ldl" old_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -rdynamic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -4351,9 +4233,7 @@ rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$old_LDFLAGS" -fi -if test "$srv_linux_thread_db" = "yes"; then srv_thread_depfiles="thread-db.o proc-service.o" USE_THREAD_DB="-DUSE_THREAD_DB" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5 @@ -4386,12 +4266,6 @@ $as_echo "$gdbsrv_cv_have_td_version" >&6; } $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h fi - - if test "$srv_cv_tls_get_addr" = yes; then - -$as_echo "#define HAVE_TD_THR_TLS_GET_ADDR 1" >>confdefs.h - - fi fi if test "$srv_xmlfiles" != ""; then |