[patch] Add a parameter `own_buf' to handle_monitor_command
Pedro Alves
palves@redhat.com
Fri Feb 10 12:52:00 GMT 2012
On 02/08/2012 02:45 PM, Yao Qi wrote:
> Hi,
> At the end of gdbserver/server.c:handle_monitor_command, global variable
> `own_buf' is used. However, in the caller of handler_monitor_command,
> handle_query, `own_buf' is passed as the first parameter. This gives me
> a feeling that we should pass `own_buf' to handle_monitor_command as
> parameter as well.
>
> This patch is quite trivial, and original code works. I still feel we
> should get rid of using global variables as much as we can.
Ok.
--
Pedro Alves
More information about the Gdb-patches
mailing list