This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [RFC] Collecting strings at tracepoints
>>>>> "Stan" == Stan Shebs <stan@codesourcery.com> writes:
Stan> That's right. Partly because the expedient for string collection
Stan> right now is "*str@40", so it extends a known behavior, and partly
Stan> because '@' is about the only character that isn't already claimed by
Stan> language and/or GDB command syntax.
Not to bikeshed this too much, but another idea would be to extend the
current syntax:
*str @ -1 /* find the \0 */
*str @ { -1, 80 } /* find the \0, or stop at 80 */
Tom