From: Elena Zannoni <ezannoni@redhat.com>
To: Jim Blandy <jimb@redhat.com>
Cc: Elena Zannoni <ezannoni@redhat.com>,
Jason Merrill <jason@redhat.com>,
Dan Nicolaescu <dann@godzilla.ICS.UCI.EDU>,
binutils@sources.redhat.com, gdb-patches@sources.redhat.com
Subject: Re: [very old] Re: dwarf2 cleanup
Date: Fri, 21 Jun 2002 19:41:00 -0000 [thread overview]
Message-ID: <15635.58305.420654.958886@localhost.redhat.com> (raw)
In-Reply-To: <np3cvgv3pg.fsf@zwingli.cygnus.com>
Jim Blandy writes:
>
> Elena Zannoni <ezannoni@redhat.com> writes:
> > Jim Blandy writes:
> > > The gdb/dwarf2read.c portion of this change is approved. I'm sorry I
> > > waited 16 months to review this straightforward change.
> > >
> > > The include/elf/dwarf2 stuff is shared with binutils (BFD uses it), so
> > > I think we need their stamp, as well.
> >
> > A couple of things. dwarf2.h has changed since the time this patch was
> > posted. So this patch would need to be updated. I've also noticed that
> > the corresponding changes to gcc/dwarf2.h, etc. were never committed.
> > Rereading the old gcc-patches thread, there were also problems with the
> > use of '#' instead of STRINGX.
>
> The GCC patches were waiting on approval for the corresponding GDB
> patches, to avoid divergence.
>
There isn't a hard dependence, the two copies are separate, but, yes,
it's good practice to keep them in sync. ``In theory'' the gcc patches
could have gone in. But if/when we unify the files, problem solved.
> The stringification issues had been resolved, I thought; the last
> message in the thread is from Kaveh R. Ghazi, and says:
>
> This works:
>
> > #define FOO(x) STRINGIFY(x)
> > FOO(bar)
>
> You get "bar", which is I think what Dan did.
>
This was the end of the gcc thread, which is where a second version of
the patch, changed this
#define DEFDWARF2_CALL_FRAME_INFO(SYM, VAL) case SYM: return #SYM;
to this
#define DEFDWARF2_CALL_FRAME_INFO(SYM, VAL) case SYM: return STRINGIFY (SYM);
What I was saying is that the same should be done with the
corresponding gdb patch. I said STRINGX when I should have said
STRINGIFY. Sorry if that wasn't clear.
> > There are 2 versions of dwarf2.h, which could be unified. I've heard
> > 'rumours' that this was going to eventually happen, i.e. gcc would
> > drop its own version and just use the include/elf one. Jason? Would
> > this be feasible?
>
> I hope so! That confused me for a bit when I ran into it.
Actually, looking more closely, those functions are the same as well.
Elena
prev parent reply other threads:[~2002-06-22 2:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-15 16:18 Dan Nicolaescu
2001-02-16 9:02 ` Jim Blandy
2001-02-16 14:45 ` Dan Nicolaescu
2001-02-16 15:15 ` Jim Blandy
2002-06-20 11:12 ` Jim Blandy
2002-06-20 11:10 ` [very old] " Jim Blandy
2002-06-20 14:11 ` Andrew Cagney
2002-06-20 17:36 ` Elena Zannoni
2002-06-21 12:20 ` Jim Blandy
2002-06-21 16:46 ` Jason Merrill
2002-06-21 16:51 ` DJ Delorie
2002-06-21 17:01 ` DJ Delorie
2002-06-21 18:14 ` Jim Blandy
2002-06-21 20:07 ` Andrew Cagney
2002-06-21 19:41 ` Elena Zannoni [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=15635.58305.420654.958886@localhost.redhat.com \
--to=ezannoni@redhat.com \
--cc=binutils@sources.redhat.com \
--cc=dann@godzilla.ICS.UCI.EDU \
--cc=gdb-patches@sources.redhat.com \
--cc=jason@redhat.com \
--cc=jimb@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