This is the mail archive of the gdb@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: [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


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