aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/thread-db.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-05-30 19:05:33 +0000
committerDaniel Jacobowitz <drow@false.org>2006-05-30 19:05:33 +0000
commitea025f5f6106407104418941ea81bebc41e12661 (patch)
tree2386ae588f3f7f9475334db4de3b4acdf9968e12 /gdb/gdbserver/thread-db.c
parent24718e3ba575439155f233fc593a9ebd6d33f3c5 (diff)
downloadgdb-ea025f5f6106407104418941ea81bebc41e12661.zip
gdb-ea025f5f6106407104418941ea81bebc41e12661.tar.gz
gdb-ea025f5f6106407104418941ea81bebc41e12661.tar.bz2
* remote-utils.c (all_symbols_looked_up): New variable.
(look_up_one_symbol): Check it. * server.h (look_up_one_symbol): New declaration. * thread-db.c (thread_db_init): Set all_symbols_looked_up.
Diffstat (limited to 'gdb/gdbserver/thread-db.c')
-rw-r--r--gdb/gdbserver/thread-db.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbserver/thread-db.c b/gdb/gdbserver/thread-db.c
index b47f576..24531bf 100644
--- a/gdb/gdbserver/thread-db.c
+++ b/gdb/gdbserver/thread-db.c
@@ -336,6 +336,9 @@ thread_db_init ()
process in the list is the thread group leader. */
proc_handle.pid = ((struct inferior_list_entry *)current_inferior)->id;
+ /* Allow new symbol lookups. */
+ all_symbols_looked_up = 0;
+
err = td_ta_new (&proc_handle, &thread_agent);
switch (err)
{
@@ -350,6 +353,7 @@ thread_db_init ()
return 0;
thread_db_find_new_threads ();
thread_db_look_up_symbols ();
+ all_symbols_looked_up = 1;
return 1;
default: