From: Michael Snyder <msnyder@redhat.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: Jim Blandy <jimb@cygnus.com>,
gdb-patches@sources.redhat.com, ac131313@cygnus.com
Subject: Re: [RFA] enum enable
Date: Thu, 19 Jul 2001 05:57:00 -0000 [thread overview]
Message-ID: <3B56D860.6505@redhat.com> (raw)
In-Reply-To: <Pine.SUN.3.91.1010717100642.27733G-100000@is>
Eli Zaretskii wrote:
>
> On 16 Jul 2001, Jim Blandy wrote:
>
> > Why are the following changes necessary? Structure members aren't in
> > the global namespace:
> >
> > > (struct breakpoint): Rename the `enable' member to `enable_state'.
> > > (args_for_catchpoint_enable): Rename the `enable' member to
> > > `enable_p'. All users changed.
> > > (struct tracepoint): The member `enabled' is now `int enabled_p'.
> > > * printcmd.c (struct display): The `status' member is now an int.
> > > * memattr.h (struct mem_region): Rename the `status' member to
> > > `enabled_p'.
>
> In addition to Andrew's request to change that, GCC 2.7.2.1 barfs if
> it sees the declaration of a member `enable' together with a prototype
> of a function `enable' in the same compilation unit. In my case, the
> function is declared in one of the system headers, so I guess GCC sees
> it first and protests when the same identifier appears in a struct.
>
> (Yes, I know, GCC 2.7.2.1 is old, but I still use it on one of my
> machines because, unlike 2.9x series, it is remarkably stable and
> bug-free. I use it as a ``reference implementation'' whenever I have
> obscure problems with code which behaves in some weird fashion.)
Seems funny to call it bug-free, right after explaining
that you had to make a change in gdb sources to work around
a bug in it...
next prev parent reply other threads:[~2001-07-19 5:57 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.SUN.3.91.1010711161311.5321C-100000@is>
[not found] ` <3B4E41B5.64FB@redhat.com>
2001-07-14 4:08 ` Eli Zaretskii
2001-07-16 14:52 ` Jim Blandy
2001-07-16 15:53 ` Andrew Cagney
2001-07-17 0:06 ` Eli Zaretskii
2001-07-17 10:45 ` Jim Blandy
[not found] ` <200107180700.KAA12466@is.elta.co.il>
2001-07-18 0:34 ` Daniel Berlin
2001-07-18 10:15 ` Jim Blandy
2001-07-18 12:59 ` Eli Zaretskii
2001-07-19 5:57 ` Michael Snyder [this message]
2001-07-19 6:13 ` Eli Zaretskii
[not found] ` <npzoa4y1hp.fsf@zwingli.cygnus.com>
2001-07-17 0:07 ` Eli Zaretskii
2001-07-25 7:28 ` Eli Zaretskii
2001-07-30 16:24 ` Jim Blandy
2001-07-31 1:45 ` Eli Zaretskii
2001-07-31 16:24 ` Jim Blandy
2001-07-31 16:33 ` Jim Blandy
2001-08-01 1:53 ` Eli Zaretskii
2001-08-01 14:05 ` Andrew Cagney
2001-08-01 21:52 ` Jim Blandy
2001-08-02 5:07 ` Eli Zaretskii
2001-07-29 0:49 ` Eli Zaretskii
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=3B56D860.6505@redhat.com \
--to=msnyder@redhat.com \
--cc=ac131313@cygnus.com \
--cc=eliz@is.elta.co.il \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@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