[PATCH] gdb: add debug prints in remote_check_symbols

Simon Marchi simon.marchi@polymtl.ca
Fri Apr 16 15:15:34 GMT 2021


On 2021-04-16 11:05 a.m., Luis Machado wrote:
> I think the debugging output is great, but I'm not sure if using the same option that enables RSP debugging output is the best option.

I was thinking about that actually... we have a single "set debug remote
1" that enables both outputting the RSP chat and the other messages that
inform about what's happening in the remote target.  The RSP chat is
very verbose and sometimes just gets in the way.  I think it would be
useful to be able to control these separately.  I'm not sure what's the
best way though.

1) Make "set debug remote 1" just output RSP chat, add a separate
   setting like "set debug remote-target 1" for the general messages.
2) Make "set debug remote 1" output the general messages and "set debug
   remote 2" output the general messages plus the RSP chat
3) Make "set debug remote 1" output the general messages" and "set debug
   rsp 1" output the RSP chat.

I think people (not only GDB devs, also people who implement stubs)
associate "set debug remote 1" to "output the RSP chat", so I don't
think it would be a good idea to change that.  That would only leave
option 1 then.

What do you think?

Simon


More information about the Gdb-patches mailing list