diff options
author | Yao Qi <yao@codesourcery.com> | 2012-02-11 13:36:41 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-02-11 13:36:41 +0000 |
commit | d73f2619de9e72d5d98a730f8572324fa15113ad (patch) | |
tree | 8fd0e6bc7dfca41c4169cfcc7d12e99a246919e1 | |
parent | a037eb8401b1cfe15920017fe7be2f5cc059a18e (diff) | |
download | binutils-d73f2619de9e72d5d98a730f8572324fa15113ad.zip binutils-d73f2619de9e72d5d98a730f8572324fa15113ad.tar.gz binutils-d73f2619de9e72d5d98a730f8572324fa15113ad.tar.bz2 |
gdb/gdbserver/
* server.c: (handle_monitor_command): Add a new parameter
`own_buf'.
(handle_query): Update caller.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index e082309..0d5e6b4 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2012-02-11 Yao Qi <yao@codesourcery.com> + + * server.c: (handle_monitor_command): Add a new parameter + `own_buf'. + (handle_query): Update caller. + 2012-02-09 Joel Brobecker <brobecker@adacore.com> * configure.ac: Add readlink to AC_CHECK_FUNCS list. diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index c1788a9..37dc8d1 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -811,7 +811,7 @@ handle_search_memory (char *own_buf, int packet_len) /* Handle monitor commands not handled by target-specific handlers. */ static void -handle_monitor_command (char *mon) +handle_monitor_command (char *mon, char *own_buf) { if (strcmp (mon, "set debug 1") == 0) { @@ -1737,7 +1737,7 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p) if (the_target->handle_monitor_command == NULL || (*the_target->handle_monitor_command) (mon) == 0) /* Default processing. */ - handle_monitor_command (mon); + handle_monitor_command (mon, own_buf); free (mon); return; |