[PATCH 4/4] gdb: add remote_debug_printf

Tom Tromey tom@tromey.com
Fri Jan 22 15:48:07 GMT 2021


>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:

Simon> This is the next in the new-style debug macro series.
Simon> For this one, I decided to omit the function name from the "Sending packet" /
Simon> "Packet received" kind of prints, just because it's not very useful in that
Simon> context and hinders readability more than anything else.  This is completely
Simon> arbitrary.

Seems reasonable to me.

Simon>   [remote] Sending packet: $qTStatus#49...
Simon>   [remote] Packet received: T0;tnotrun:0;tframes:0;tcreated:0;tfree:500000;tsize:500000;circular:0;disconn:0;starttime:0;stoptime:0;username:;notes::

Simon> A difference is that previously, the query packet and its reply would be
Simon> printed on the same line, like this:

I like the new output as well.  What do you think of removing the '...'
from the "Sending packet" message?  This doesn't seem to add anything to
me.

Tom


More information about the Gdb-patches mailing list