This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] tracepoint: add new trace command "printf"[0] gdb
- From: Doug Evans <dje at google dot com>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 3 Jan 2011 11:21:36 -0800
- Subject: Re: [PATCH] tracepoint: add new trace command "printf"[0] gdb
- References: <AANLkTimhMH+qUE1NmQ+f6+L8BcEU+k07eU+M9B-gLsrk@mail.gmail.com>
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.]