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: Robustifying pretty-printers


On Mon, Jun 15, 2009 at 04:38:57PM +0400, Vladimir Prus wrote:
> On Monday 15 June 2009 Phil Muldoon wrote:
> > + return self.val['_M_dataplus']['_M_p'].string (encoding, length = len)
> 
> Great, this is exactly what I was looking for.

Is it?  This uses the length from the (possibly uninitialized)
std::string as a maximum.  I think we want something higher level,
similar to today's "set print elements", to apply.

-- 
Daniel Jacobowitz
CodeSourcery


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