public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "rae.kim at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug python/27021] Python Exception <class 'AttributeError'> 'NoneType' object has no attribute 'pointer': when using pretty-printer
Date: Wed, 16 Dec 2020 12:33:05 +0000	[thread overview]
Message-ID: <bug-27021-4717-pr9Xc3j731@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27021-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=27021

--- Comment #6 from Rae Kim <rae.kim at gmail dot com> ---

When "info variables foo_map" is executed returned type string doesn't have
"class "

> (gdb) info variables foo_map
> All variables matching regular expression "foo_map":
> 
> File main.c:
> 4:      std::map<int, int, std::less<int>, std::allocator<std::pair<int const, int> > > foo_map;

Language is changed to the m_language of the symbol during "info variables
foo_map".
(scoped_switch_to_sym_language_if_auto l (sym))

symtab.c:
> 4883    static void
> 4884    print_symbol_info (enum search_domain kind,
> 4885                       struct symbol *sym,
> 4886                       int block, const char *last)
> 4887    {
> 4888      scoped_switch_to_sym_language_if_auto l (sym);
> 4889      struct symtab *s = symbol_symtab (sym);
> 4890
> 4891      if (last != NULL)
> 4892        {

Is it possible to apply something like "scoped_switch_to_sym_language_if_auto"
to pretty print?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

      parent reply	other threads:[~2020-12-16 12:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-05  7:35 [Bug python/27021] New: " ppluzhnikov at google dot com
2020-12-05 16:40 ` [Bug python/27021] " ppluzhnikov at google dot com
2020-12-06 15:08 ` z49x2vmq at gmail dot com
2020-12-06 16:58 ` ppluzhnikov at google dot com
2020-12-08  1:05 ` z49x2vmq at gmail dot com
2020-12-08  1:11 ` z49x2vmq at gmail dot com
2020-12-08 18:31 ` simark at simark dot ca
2020-12-16 12:33 ` rae.kim at gmail dot com [this message]

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=bug-27021-4717-pr9Xc3j731@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).