From 9836d6ea69b99b5ed77e0f2c2c500b144ab95018 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 3 May 2010 18:13:36 +0000 Subject: gdb/gdbserver/ * proc-service.c (ps_pglobal_lookup): Use thread_db_look_up_one_symbol. * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb' parameter. Use it instead of all_symbols_looked_up. * server.h (struct process_info) : Delete field. (all_symbols_looked_up): Don't declare. (look_up_one_symbol): Add new `may_ask_gdb' parameter. * thread-db.c (struct thread_db) : New field. (thread_db_look_up_symbols): Adjust call to look_up_one_symbol. Set all_symbols_looked_up here. (thread_db_look_up_one_symbol): New. (thread_db_get_tls_address): Adjust. (thread_db_load_search, try_thread_db_load_1): Always allocate the thread_db object on the heap, and tentatively set it in the process structure. (thread_db_init): Don't set all_symbols_looked_up here. * linux-low.h (thread_db_look_up_one_symbol): Declare. --- gdb/gdbserver/proc-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/gdbserver/proc-service.c') diff --git a/gdb/gdbserver/proc-service.c b/gdb/gdbserver/proc-service.c index 8827174..6783916 100644 --- a/gdb/gdbserver/proc-service.c +++ b/gdb/gdbserver/proc-service.c @@ -65,7 +65,7 @@ ps_pglobal_lookup (gdb_ps_prochandle_t ph, const char *obj, { CORE_ADDR addr; - if (look_up_one_symbol (name, &addr) == 0) + if (thread_db_look_up_one_symbol (name, &addr) == 0) return PS_NOSYM; *sym_addr = (psaddr_t) (unsigned long) addr; -- cgit v1.1