On Thu, Feb 17, 2011 at 16:16, Hui Zhu wrote: > On Sat, Feb 12, 2011 at 05:31, Tom Tromey wrote: >>>>>>> ">" == Hui Zhu 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 >> > > Hi Tom, > > I make a new patch according to your comments. > > Thanks, > Hui > > 2011-02-17  Hui Zhu   > >        * tracepoint.c (gdb_agent_op): Add gdb_agent_op_printf. >        (gdb_agent_op_names): Add "printf". >        (tp_printf): New function. >        (eval_agent_expr): Handle gdb_agent_op_printf. > Checked in. Thanks, Hui 2011-02-21 Hui Zhu * tracepoint.c (tp_printf): New function. (eval_agent_expr): Handle gdb_agent_op_printf.