From: Tom Tromey <tromey@redhat.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org, Roland McGrath <roland@redhat.com>
Subject: Re: [rfc] Decode "is a variable with complex or multiple locations" (PR 8399)
Date: Fri, 25 Sep 2009 21:53:00 -0000 [thread overview]
Message-ID: <m31vluvghu.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20090920205109.GA24360@host0.dyn.jankratochvil.net> (Jan Kratochvil's message of "Sun, 20 Sep 2009 22:51:09 +0200")
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> (b) It prints it in a human readable format so more complex
Jan> expressions are still not decoded.
Jan> GDB should probably reuse
Jan> binutils/dwarf.c:decode_location_expression().
Jan> (b1) http://sources.redhat.com/ml/gdb/2003-07/msg00242.html
Jan> discussion had no conclusion where the code should be placed
Jan> (probably bfd/file-no-in-libbfd.a).
Ask on the binutils list. I'm sure we can arrive at a place to store
it. We can always make a new library in bfd/, or anywhere.
Jan> (c) "a variable in register rsi" vs. "DW_OP_reg4":
Jan> (c1) Extending the readelf<->gdb shared code to print register
Jan> names (4->rsi) may not be acceptable for arch-independent readelf.
We can add a callback that GDB would use to supply the register name.
Jan> (c2) "in register SOMENAME" is more user friendly than "DW_OP_reg42".
Jan> But too complex expression cannot be printed in a user friendly way.
I think it is fine to show it in "assembly-like" form using the DW_OP
names, because it is better to expose things for users who do understand
them than to hide them from users who don't. If we get too many
complaints, we can add an option.q
Jan> (c3) Is it OK to break backward compatibility by printing
Jan> "DW_OP_reg*" (either numerically or with register-names)?
IMO, yes.
Tom
next prev parent reply other threads:[~2009-09-25 21:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090916201132.366872766@magilla.sf.frob.com>
2009-09-20 20:51 ` Jan Kratochvil
2009-09-21 3:20 ` Eli Zaretskii
2009-09-21 3:48 ` Roland McGrath
2009-09-25 21:53 ` Tom Tromey [this message]
2009-09-25 22:07 ` Daniel Jacobowitz
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=m31vluvghu.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=roland@redhat.com \
/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