diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-04-09 23:52:06 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-04-09 23:52:06 +0000 |
commit | 2f2893d9160782b99a80fa52f15b026b862da218 (patch) | |
tree | b9341213da30530ee9d58108ca4fad38bb88588a /gdb/gdbserver/server.c | |
parent | d64b88413619bb8abd275f29fcf850df6dec2507 (diff) | |
download | gdb-2f2893d9160782b99a80fa52f15b026b862da218.zip gdb-2f2893d9160782b99a80fa52f15b026b862da218.tar.gz gdb-2f2893d9160782b99a80fa52f15b026b862da218.tar.bz2 |
2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* linux-low.c (linux_look_up_symbols): New hook.
(linux_target_ops): Add linux_look_up_symbols.
* remote-utils.c (decode_address): New function.
(look_up_one_symbol): New function.
* server.c (handle_query): Call target look_up_symbols hook.
* server.h (look_up_one_symbol): Add prototype.
* target.h (struct target_ops): Add look_up_symbols hook.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r-- | gdb/gdbserver/server.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 94c27d3..3afab2b 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -63,13 +63,9 @@ handle_query (char *own_buf) { if (strcmp ("qSymbol::", own_buf) == 0) { -#if 0 - strcpy (own_buf, "qSymbol:"); - hexify (own_buf + strlen ("qSymbol:"), "main", 4); - putpkt (own_buf); - getpkt (own_buf); - fprintf (stderr, "Got %s", own_buf); -#endif + if (the_target->look_up_symbols != NULL) + (*the_target->look_up_symbols) (); + strcpy (own_buf, "OK"); return; } |