From: Tom Tromey <tom@tromey.com>
To: Tom de Vries <tdevries@suse.de>
Cc: gdb-patches@sourceware.org, Tom Tromey <tom@tromey.com>,
Simon Marchi <simon.marchi@polymtl.ca>
Subject: Re: [PATCH][gdb/symtab] Add symbol with inherited DW_AT_const_value to psymtabs
Date: Tue, 07 Apr 2020 07:09:23 -0600 [thread overview]
Message-ID: <87tv1va1do.fsf@tromey.com> (raw)
In-Reply-To: <20200407115920.GA20590@delia> (Tom de Vries's message of "Tue, 7 Apr 2020 13:59:22 +0200")
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> (gdb) p aaa^M
Tom> No symbol "aaa" in current context.^M
Tom> Fix this by making sure that partial_die_info::has_const_value is
Tom> inherited in partial_die_info::fixup.
It's clearly necessary to do something like this (unfortunate IMO, but
necessary). However, has_specification is set for many things:
case DW_AT_abstract_origin:
case DW_AT_specification:
case DW_AT_extension:
has_specification = 1;
... but I think perhaps only DW_TAG_variable actually needs this?
Tom> + if (!has_const_value && has_specification)
... so maybe it would be more efficient to check for DW_TAG_variable
here. What do you think?
My main concern is not to make psymbol reading any slower than it
already is.
Tom
next prev parent reply other threads:[~2020-04-07 13:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-07 11:59 Tom de Vries
2020-04-07 13:09 ` Tom Tromey [this message]
2020-04-07 14:54 ` Tom de Vries
2020-04-07 15:28 ` Tom Tromey
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=87tv1va1do.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
--cc=tdevries@suse.de \
/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