This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
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