Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Geoffrey Keating <geoffk@apple.com>
To: Michael Elizabeth Chastain <mec@shout.net>
Cc: gcc-patches@gcc.gnu.org, gdb@sources.redhat.com
Subject: Re: C ASSEMBLER_NAME patch
Date: Sat, 26 Jul 2003 21:51:00 -0000	[thread overview]
Message-ID: <698134FE-BFB3-11D7-8472-0050E4BAD278@apple.com> (raw)
In-Reply-To: <200307261604.h6QG4LJF021434@duracef.shout.net>


On Saturday, July 26, 2003, at 09:04  AM, Michael Elizabeth Chastain 
wrote:

> Geoff K writes:
>
>> This is supposed to happen under some circumstances.  (Not the
>> circumstances that you're experiencing---I'm fixing that now---but 
>> some
>> other circumstances.)
>>
>> How should GCC emit stabs so that GDB does the right thing with these
>> symbol names?
>
> I'm not an expert on this, so I hope one of the symtab people
> (Daniel J) will correct me if I get this wrong:
>
> Names at file scope should not be qualified with ".number", and names 
> at
> function scope can be qualified.
>
> The comment in lhd_set_decl_assembler_name says that is what it's doing
> ("Can't just use the variable's own name for a variable whose scope is
> less than the whole compilation.") so it looks like the test just needs
> to be adjusted, to my superficial eyes.

No, 'scope less than the whole compilation' != 'file scope' if you are 
compiling multiple files into one .s file.

I'll look at Daniel's suggestion.  I'm told this works in dwarf-2, so 
it's probably just a bug in the STABS emitter in GCC.


      reply	other threads:[~2003-07-26 21:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-26 16:04 Michael Elizabeth Chastain
2003-07-26 21:51 ` Geoffrey Keating [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=698134FE-BFB3-11D7-8472-0050E4BAD278@apple.com \
    --to=geoffk@apple.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=mec@shout.net \
    /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