This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Add a parameter `own_buf' to handle_monitor_command


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]