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] Collecting strings at tracepoints


> 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?


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