Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Niko Sams <niko.sams@gmail.com>
To: gdb <gdb@sourceware.org>
Subject: printer exception lets -stack-list-locals fail
Date: Sat, 20 Mar 2010 07:46:00 -0000	[thread overview]
Message-ID: <629542d41003200046k2c7b4d9erc530fa4140ead4f3@mail.gmail.com> (raw)

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


             reply	other threads:[~2010-03-20  7:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-20  7:46 Niko Sams [this message]
2010-03-20 16:18 ` Tom Tromey
2010-03-20 16:31   ` Niko Sams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=629542d41003200046k2c7b4d9erc530fa4140ead4f3@mail.gmail.com \
    --to=niko.sams@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox