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] tracepoint: add new trace command "printf"[1] gdbserver


>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:

>> To make the gdbserver support %s.

Oops, I missed this when reviewing your earlier patch.
Sorry about that.

>> +int
>> +tp_printf(const char *format, ...)

Space before open paren.

>> +  va_end(ap);

Likewise.

>> +	    argv = (void *)(unsigned long)top;

Spacing.

There are several more spacing bugs, please fix them all.

I didn't go read the other patch to try to deduce the format of the
printf opcode to see if it all makes sense.  Documentation would help.

Tom


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