This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Collecting strings at tracepoints
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Stan Shebs <stan_shebs at mentor dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 03 Oct 2011 18:38:27 +0200
- Subject: Re: [PATCH] Collecting strings at tracepoints
- References: <4E89D9D9.6050703@mentor.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Mon, 03 Oct 2011 08:50:49 -0700
> From: Stan Shebs <stan_shebs@mentor.com>
>
> By default, when you ask to collect a char * at a tracepoint, only the
> numeric address is collected, which is a problem if you really want the
> string that the char * is pointing to. This patch adds a /s option to
> the collect action that will dereference character pointers and collect
> the bytes up to the first zero, just as the familiar print command
> does. You can optionally add a limit to the collect, so for instance
> "collect/s80 mystring" collects a maximum of 80 characters.
Thanks, the documentation part is approved.
Is this NEWS-worthy, btw?