From: Tom Tromey <tom@tromey.com>
To: "Dmitry.Neverov via Gdb" <gdb@sourceware.org>
Cc: "Dmitry.Neverov" <dmitry.neverov@jetbrains.com>
Subject: Re: symbol files in python
Date: Wed, 26 Jun 2024 11:21:30 -0600 [thread overview]
Message-ID: <87sewzsjqd.fsf@tromey.com> (raw)
In-Reply-To: <87ttimgte3.fsf@lubuntu2.mail-host-address-is-not-set> (Dmitry Neverov via Gdb's message of "Sat, 25 May 2024 10:58:28 +0200")
>>>>> "Dmitry" == Dmitry Neverov via Gdb <gdb@sourceware.org> writes:
Dmitry> I'm trying to filter out uninitialized variables in a frame by checking
Dmitry> their lines in python, something like this:
I suspect this will not yield good results when optimization is present.
I normally see this kind of thing as GIGO -- gdb does what the compiler
tells it. If the compiler thinks a variable is uninitialized at some
PC, it's free to omit that from the location list.
Dmitry> Is it correct to expect that symbols in blocks inside a function will
Dmitry> have the same file as the function's frame?
Not always, I think because of inlining. However I'm not really sure.
Compilers can emit pretty much anything they like.
Tom
prev parent reply other threads:[~2024-06-26 17:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-25 8:58 Dmitry.Neverov via Gdb
2024-06-26 17:21 ` Tom Tromey [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=87sewzsjqd.fsf@tromey.com \
--to=tom@tromey.com \
--cc=dmitry.neverov@jetbrains.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