Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* printer exception lets -stack-list-locals fail
@ 2010-03-20  7:46 Niko Sams
  2010-03-20 16:18 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Niko Sams @ 2010-03-20  7:46 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: printer exception lets -stack-list-locals fail
  2010-03-20  7:46 printer exception lets -stack-list-locals fail Niko Sams
@ 2010-03-20 16:18 ` Tom Tromey
  2010-03-20 16:31   ` Niko Sams
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2010-03-20 16:18 UTC (permalink / raw)
  To: Niko Sams; +Cc: gdb

>>>>> "Niko" == Niko Sams <niko.sams@gmail.com> writes:

Niko> When calling -stack-list-locals and such an uninitialized std::map is
Niko> in scope it fails with this exception.
Niko> And this is not so good as there are no locals shown until the map is
Niko> initialized.

Niko> Would it be possible to catch the exception in command like
Niko> -stack-list-locals and show the error per variable?

This sounds reasonable to me.  Would you mind filing a bug report for
this in bugzilla?

Tom


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: printer exception lets -stack-list-locals fail
  2010-03-20 16:18 ` Tom Tromey
@ 2010-03-20 16:31   ` Niko Sams
  0 siblings, 0 replies; 3+ messages in thread
From: Niko Sams @ 2010-03-20 16:31 UTC (permalink / raw)
  To: tromey; +Cc: gdb

On Sat, Mar 20, 2010 at 17:18, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Niko" == Niko Sams <niko.sams@gmail.com> writes:
>
> Niko> When calling -stack-list-locals and such an uninitialized std::map is
> Niko> in scope it fails with this exception.
> Niko> And this is not so good as there are no locals shown until the map is
> Niko> initialized.
>
> Niko> Would it be possible to catch the exception in command like
> Niko> -stack-list-locals and show the error per variable?
>
> This sounds reasonable to me.  Would you mind filing a bug report for
> this in bugzilla?
http://sourceware.org/bugzilla/show_bug.cgi?id=11407

thanks,
Niko


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-20 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-20  7:46 printer exception lets -stack-list-locals fail Niko Sams
2010-03-20 16:18 ` Tom Tromey
2010-03-20 16:31   ` Niko Sams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox