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: printing wchar_t*


> Date: Fri, 14 Apr 2006 11:03:38 -0700
> From: "Jim Blandy" <jimb@red-bean.com>
> Cc: gdb@sourceware.org
> 
> > > I don't think it's worth complicating the syntax for searching for a
> > > zero terminator in order to allow one to search for an arbitrary
> > > terminator.
> >
> > Then how will you find the zero terminator?  With wcslen?  That is
> > only good for wchar_t strings, not for arbitrary integer arrays.  And
> > I thought Daniel was suggesting something more general than just
> > wchar_t arrays.
> 
> He is.  I am, too.  Just search for elements equal to zero.

How is this different or more complex than searching for elements that
are equal to some other constant value?

> That said, I don't even think we should have a separate command for
> setting the terminating value for @@.  I think we should wait until
> someone has a need for it arising out of a real-life use case, not a
> design conversation.

What Daniel suggested didn't come from a clear-cut real-life use-case,
either.


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