This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
printer exception lets -stack-list-locals fail
- From: Niko Sams <niko dot sams at gmail dot com>
- To: gdb <gdb at sourceware dot org>
- Date: Sat, 20 Mar 2010 08:46:51 +0100
- Subject: printer exception lets -stack-list-locals fail
Hi,
Printing an uninitialized std::map results in an exception like
Cannot access memory at address 0x6c894ce02464895c
When calling -stack-list-locals and such an uninitialized std::map is
in scope it fails with this exception.
And this is not so good as there are no locals shown until the map is
initialized.
Would it be possible to catch the exception in command like -stack-list-locals
and show the error per variable?
thanks,
Niko