On Wed, Sep 2, 2009 at 9:33 AM, Paul Pluzhnikov wrote: > +  CHK(td_ta_new_p = dlsym (handle, "td_ta_new")); Just noticed 'space before paren' violation :( Sorry about that. Fix attached. -- Paul Pluzhnikov doc/ 2009-09-02 Paul Pluzhnikov * gdb.texinfo (Server): Document libthread-db-search-path. gdbserver/ 2009-09-02 Paul Pluzhnikov * acinclude.m4: Link with libdl. * server.c (libthread_db_search_path): New variable. (handle_query): Set it. * thread-db.c (td_ta_new_p, td_ta_event_getmsg_p) (td_ta_set_event_p, td_ta_event_addr_p, td_ta_map_lwp2thr_p) (td_thr_get_info_p, td_thr_event_enable_p, td_ta_thr_iter_p) (td_thr_tls_get_addr_p, td_symbol_list_p) (td_symbol_list_p): New variables. (thread_db_create_event, thread_db_enable_reporting) (find_one_thread, maybe_attach_thread, thread_db_find_new_threads) (thread_db_get_tls_address): Ajust. (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. * configure.ac: Regenerate. * configure: Likewise.