mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:27:20 +08:00
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.
This commit is contained in:
@ -47,18 +47,12 @@ struct siginfo;
|
||||
|
||||
struct process_info_private
|
||||
{
|
||||
/* True if this process has loaded thread_db, and it is active. */
|
||||
int thread_db_active;
|
||||
|
||||
/* Structure that identifies the child process for the
|
||||
<proc_service.h> interface. */
|
||||
struct ps_prochandle proc_handle;
|
||||
|
||||
/* Connection to the libthread_db library. */
|
||||
td_thragent_t *thread_agent;
|
||||
|
||||
/* Arch-specific additions. */
|
||||
struct arch_process_info *arch_private;
|
||||
|
||||
/* libthread_db-specific additions. Not NULL if this process has loaded
|
||||
thread_db, and it is active. */
|
||||
struct thread_db *thread_db;
|
||||
};
|
||||
|
||||
struct lwp_info;
|
||||
@ -203,9 +197,11 @@ char *linux_child_pid_to_exec_file (int pid);
|
||||
int elf_64_file_p (const char *file);
|
||||
|
||||
void linux_attach_lwp (unsigned long pid);
|
||||
struct lwp_info *find_lwp_pid (ptid_t ptid);
|
||||
|
||||
/* From thread-db.c */
|
||||
int thread_db_init (int use_events);
|
||||
void thread_db_free (struct process_info *);
|
||||
int thread_db_handle_monitor_command (char *);
|
||||
int thread_db_get_tls_address (struct thread_info *thread, CORE_ADDR offset,
|
||||
CORE_ADDR load_module, CORE_ADDR *address);
|
||||
|
||||
struct lwp_info *find_lwp_pid (ptid_t ptid);
|
||||
|
Reference in New Issue
Block a user