From: Elena Zannoni <ezannoni@cygnus.com>
To: Kevin Buettner <kevinb@cygnus.com>
Cc: "Zack Weinberg" <zackw@Stanford.EDU>,
David Edelsohn <dje@watson.ibm.com>,
Matthew Conway <matt_conway@i2.com>,
gcc@gcc.gnu.org, gcc-patches@gcc.gnu.org, gdb@sources.redhat.com
Subject: Re: Limited success with 3.0 branch on AIX
Date: Tue, 15 May 2001 15:27:00 -0000 [thread overview]
Message-ID: <15105.44346.860889.883125@kwikemart.cygnus.com> (raw)
In-Reply-To: <1010503084223.ZM4992@ocotillo.lan>
Jim is away from his mail at the moment, but I just talked with him on
the phone about this.
We were thinking about C_INFO as a possibility. Whether we use C_GSYM
or C_INFO, xcoffread.c will have to get the name of the symbol, but
C_INFO is much less likely to occur, thus the overhead would be less.
The definition of C_INFO is in /usr/include/storclass.h on an AIX
machine. I saw it mentioned in a patch by Tom Rix on the binutils
mailing list, as well:
http://sources.redhat.com/ml/binutils/2001-01/msg00448.html
For the C_INFO, if we chose to go with that, we would have to write
similar code to what dbxread.c, process_one_symbol() does for N_OPT,
and that would go in xcoffread.c, read_xcoff_symtab() instead:
/* We use N_OPT to carry the gcc2_compiled flag. Sun uses it
for a bunch of other flags, too. Someday we may parse their
flags; for now we ignore theirs and hope they'll ignore ours. */
case N_OPT: /* Solaris 2: Compiler options */
if (name)
{
if (STREQ (name, GCC2_COMPILED_FLAG_SYMBOL))
{
processing_gcc_compilation = 2;
#if 0 /* Works, but is experimental. -fnf */
/* For now, stay with AUTO_DEMANGLING for g++ output, as we don't
know whether it will use the old style or v3 mangling. */
if (AUTO_DEMANGLING)
{
set_demangling_style (GNU_DEMANGLING_STYLE_STRING);
}
#endif
}
else
n_opt_found = 1;
}
break;
Elena
Kevin Buettner writes:
> On May 2, 11:24pm, Zack Weinberg wrote:
>
> > > I do not see anything in the AIX equivalent to N_OPT -- no comment
> > > storage class. Would using N_GSYM (AIX's C_GSYM) be appropriate? It
> > > seems to be a stab for which only the name is significant, not the value,
> > > which matches the use of gcc2_compiled.
> >
> > The question is whether gdb on AIX will notice the marker in a C_GSYM
> > .stabx directive; also whether the native debugger will choke on it.
> > I've cc:ed the gdb folks for comment. Leaving your patch quoted so
> > they can look at it.
>
> David asked about this on the GDB list recently. I see nothing wrong
> with David's approach, though GDB will require a minor modification to
> recognize "gcc2_compiled." as an N_GSYM.
>
> See:
>
> http://sources.redhat.com/ml/gdb/2001-05/msg00015.html
> http://sources.redhat.com/ml/gdb/2001-05/msg00019.html
> http://sources.redhat.com/ml/gdb/2001-05/msg00020.html
> http://sources.redhat.com/ml/gdb/2001-05/msg00027.html
> http://sources.redhat.com/ml/gdb/2001-05/msg00028.html
> http://sources.redhat.com/ml/gdb/2001-05/msg00030.html
> http://sources.redhat.com/ml/gdb/2001-05/msg00033.html
>
> I will note, however, that neither of GDB's symtabs maintainers
> have weighed in on this issue yet.
>
> Kevin
>
next prev parent reply other threads:[~2001-05-15 15:27 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200104302116.RAA23290@makai.watson.ibm.com>
2001-05-02 23:25 ` Zack Weinberg
2001-05-03 1:42 ` Kevin Buettner
2001-05-15 15:27 ` Elena Zannoni [this message]
2001-05-15 15:31 ` David Edelsohn
2001-05-15 16:19 ` Elena Zannoni
2001-05-16 10:46 ` David Edelsohn
2001-05-16 11:15 ` David Edelsohn
2001-05-16 12:24 ` Elena Zannoni
[not found] <15106.54023.177141.275660@kwikemart.cygnus.com>
2001-05-16 12:37 ` David Edelsohn
2001-05-16 13:07 ` David Edelsohn
2001-05-16 13:51 ` Kevin Buettner
2001-05-16 14:06 ` Stan Shebs
2001-05-16 14:10 ` David Edelsohn
2001-05-16 14:32 ` Elena Zannoni
2001-05-16 21:29 ` Elena Zannoni
2001-05-17 15:27 ` David Edelsohn
[not found] <OF70310855.A41D4A39-ON86256A39.00616113@i2.com>
2001-05-01 10:13 ` David Edelsohn
2001-05-01 13:02 ` Daniel Berlin
2001-05-01 13:22 ` David Edelsohn
2001-05-01 15:40 ` Kevin Buettner
2001-05-01 15:44 ` David Edelsohn
2001-05-01 16:21 ` Kevin Buettner
2001-05-01 19:15 ` David Edelsohn
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=15105.44346.860889.883125@kwikemart.cygnus.com \
--to=ezannoni@cygnus.com \
--cc=dje@watson.ibm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=gcc@gcc.gnu.org \
--cc=gdb@sources.redhat.com \
--cc=kevinb@cygnus.com \
--cc=matt_conway@i2.com \
--cc=zackw@Stanford.EDU \
/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