Re: gdb 8.0 "lazy_string" exception "Length is larger than array size"

Michael Stahl <[email protected]> Fri, 29 Sep 2017 17:06:07 +0200
Newsgroups gmane.comp.gdb.devel,gmane.comp.gdb.general
Message-ID <[email protected]>
On 26.09.2017 12:30, Pedro Alves wrote:

> If you want to ignore the array's declared length, I think you can
> always decay 'buffer' to a pointer and work with that, and then GDB
> won't have a length to validate.

thanks, replacing
 ['buffer']
with
 ['buffer'].address
in the pretty printer avoids the exception!