From: Stan Shebs <shebs@apple.com>
To: Jim Blandy <jimb@zwingli.cygnus.com>
Cc: Daniel Berlin <dan@cgsoftware.com>, gdb-patches@sources.redhat.com
Subject: Re: macro-expanding expressions in GDB
Date: Thu, 07 Jun 2001 11:16:00 -0000 [thread overview]
Message-ID: <3B1FC494.FD584945@apple.com> (raw)
In-Reply-To: <npn17k1eag.fsf_-_@zwingli.cygnus.com>
Jim Blandy wrote:
>
> Daniel Berlin <dan@cgsoftware.com> writes:
> > Speaking of real parsers, i've hooked up GCC's cpplib to GDB's c
> > expression parser if anyone is interested in the work. I'll
> > eventually submit it once the hooks to do the necessary gdb lookups to
> > handle macros are done. Neil said he'd try to have something
>
> This is a feature to die for. Fantastic.
Amen. If I didn't have so many Apple-specific *&^%#$@! patches to
deal with, I'd want to be having fun with this.
> I have two concerns about using cpplib:
> - I don't want GDB builds to require the GCC sources around. This is
> mostly bureacracy --- we'd need to have cpplib moved into its own
> top-level directory, so we could share it with GCC.
Presumably it can be handled similarly to libiberty, with two
copies, and on-demand resyncing. Since GDB only needs the subset
functionality, it can probably be a little behind without causing
any problems.
> - I wonder how much of cpplib we actually need. We don't need
> #includes, #ifs, or CPP expression evaluation. cpplib seems
> heavyweight. This is somewhat nitpicky.
It's true that cppmacro.c is only about 10% of the cpplib sources,
but in practice it seems like a lot of trouble to further partition
cpplib. GDB doesn't use all of BFD either, but who wants to go to
the trouble of partitioning it into a reading-only part?
> Sorry, which Niel?
That's Neil Booth.
Stan
next prev parent reply other threads:[~2001-06-07 11:16 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-22 14:06 [RFA] linespec.c change to stop "malformed template specification" error Daniel Berlin
2001-06-06 16:09 ` Elena Zannoni
2001-06-06 17:00 ` Fernando Nasser
2001-06-06 21:00 ` Jim Blandy
2001-06-06 22:09 ` Daniel Berlin
2001-06-07 8:40 ` Jim Blandy
2001-06-07 8:47 ` macro-expanding expressions in GDB Jim Blandy
2001-06-07 9:01 ` Daniel Berlin
2001-06-07 11:52 ` Jim Blandy
2001-06-07 12:04 ` Daniel Berlin
2001-06-07 11:16 ` Stan Shebs [this message]
2001-06-06 23:36 ` [RFA] linespec.c change to stop "malformed template specification" error Daniel Berlin
2001-06-07 6:00 ` Fernando Nasser
2001-06-07 9:09 ` Jim Blandy
2001-06-07 7:40 ` Elena Zannoni
[not found] ` <nppucg1eq5.fsf@zwingli.cygnus.com>
2001-06-07 9:13 ` Daniel Berlin
2001-06-07 11:18 ` Jim Blandy
2001-06-07 11:35 ` Daniel Berlin
2001-06-07 15:22 ` Jim Blandy
2001-06-07 16:40 ` Daniel Berlin
2001-06-07 10:27 ` Elena Zannoni
2001-06-07 12:30 ` Fernando Nasser
2001-06-07 15:14 ` Jim Blandy
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=3B1FC494.FD584945@apple.com \
--to=shebs@apple.com \
--cc=dan@cgsoftware.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@zwingli.cygnus.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