From: Michal Ludvig <mludvig@suse.cz>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: GDB Patches <gdb-patches@sources.redhat.com>
Subject: Re: [RFA] Location list support
Date: Fri, 21 Feb 2003 23:09:00 -0000 [thread overview]
Message-ID: <3E56B1C1.8090907@suse.cz> (raw)
In-Reply-To: <20030221171139.GA14877@nevyn.them.org>
Daniel Jacobowitz wrote:
> On Fri, Feb 21, 2003 at 12:05:37PM +0100, Michal Ludvig wrote:
>
>>Hi,
>>attached is a patch that adds support for .debug_loc sections as
>>generated by newer versions of GCC (eg. from rtlopt-branch).
>
> Let me try saying this again... Michal, are you watching GDB HEAD
> development?
Well, no, actually. I did this patch for gdb-5.3 since mainline for
x86-64 is too broken to be usable (due to the merge between i386 and
x86-64 targets). And since the patch for gdb-5.3 works pretty well I
sent a straight mainline version port to the list.
It's nothing personal, Daniel :-)
> Have you been following my discussions with Jim about how
> DW_AT_location should be supported? I didn't just ask you to wait for
> the LOC_COMPUTED patch out of sheer pique. If you're not using that
> mechanism, then you're defeating the whole purpose it was implemented
> for.
>
> For instance, a good sized chunk of code you delete in the patch below
> is no longer there. Be careful updating, since you copied that deleted
> code to new functions; it shouldn't be there either.
>
> Basically, location lists should be represented as LOC_COMPUTED
> symbols; the LOC_COMPUTED lookup mechanism should be updated to accept
> a PC when computing the location.
OK, so the .debug_loc parser will likely remain the same, new_symbol()
will create variables with location lists as LOC_COMPUTED types and
read_var_val() & Co. should compute the actual location depending on the
current PC. Did I understand you correctly? Hm, it doesn't seem to be
that much simpler that what I did. But I understand, that I should use
LOC_COMPUTED once it's there.
> The entire thing will be worlds
> simpler than all the work you did below, and a heck of a lot less
> fragile. You just need to parse the location lists, store them in the
> location baton, and select a list to evaluate in dwarf2loc.c. If
> there's no list entry for $pc, that's where you return optimized-out;
> it might take another little change to accept an optimized-out result
> there. If there is a list entry you evaluate it just like presently.
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* (+420) 296.545.373 * http://www.suse.cz
next prev parent reply other threads:[~2003-02-21 23:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-21 11:06 Michal Ludvig
2003-02-21 17:11 ` Daniel Jacobowitz
2003-02-21 23:09 ` Michal Ludvig [this message]
2003-02-21 17:47 ` Keith Walker
2003-02-21 18:02 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2003-02-01 7:50 Michal Ludvig
2003-02-01 16:57 ` 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=3E56B1C1.8090907@suse.cz \
--to=mludvig@suse.cz \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.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