Re: [PATCH] tracepoint: add new trace command "printf"[0] gdb

Doug Evans
2011-01-03T19:21:45Z

On Mon, Jan 3, 2011 at 8:29 AM, Hui Zhu <teawater@gmail.com> wrote:
> Hi,
>
> I add a new patch add new trace command "printf".
> This printf is same with the simple gdb command, it can do formatted
> output.  But it will happen in gdbserver part when it break by a
> tracepoint.
> Then the user can get the format value that he want in tracepint.  It
> will be more easy and clear to handle the bug sometimes.

One could do this with a breakpoint and attaching commands to the
breakpoint too, right?
Or are they too cumbersome for the intended use case?
[Extending tracepoints like this doesn't seem justified yet, so I'm
just looking for more data.]