[RFC] Collecting strings at tracepoints

Tom Tromey tromey@redhat.com
Wed Jun 16 18:27:00 GMT 2010


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



More information about the Gdb mailing list