Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Pedro Alves <pedro_alves@portugalmail.pt>, gdb-patches@sourceware.org
Subject: Re: [i386/stabs] Arguments of main on gcc >= 4.1
Date: Mon, 17 Dec 2007 00:47:00 -0000	[thread overview]
Message-ID: <20071217004444.GA14356@caradoc.them.org> (raw)
In-Reply-To: <20071203182540.GB14306@adacore.com>

On Mon, Dec 03, 2007 at 10:25:40AM -0800, Joel Brobecker wrote:
> > E.g.:
> >     int main (int argc, char **argv, char **envp);
> > 
> > notice the 0, 4, 8:
> > 
> >           .zero   16
> >           .text
> >           .stabs  "main:F(0,1)",36,0,10,main
> >           .stabs  "argc:p(0,1)",160,0,9,0
> >           .stabs  "argv:p(0,16)=*(3,54)",160,0,9,4
> >           .stabs  "envp:p(0,16)",160,0,9,8
> > .globl main
> >           .type   main, @function
> 
> Looking at your example above, what would work is if GCC was using
> N_LSYM (128) symbols instead of N_PSYM symbols (160).

If it did that, they wouldn't be treated as arguments any more, just
as local variables.  I think.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-12-17  0:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-30 16:40 Pedro Alves
2007-12-03 18:25 ` Joel Brobecker
2007-12-17  0:47   ` Daniel Jacobowitz [this message]
2007-12-17  6:42     ` Joel Brobecker
2007-12-17 13:33       ` Daniel Jacobowitz
2007-12-17 15:06         ` Joel Brobecker
2007-12-28  1:20           ` Pedro Alves
2007-12-28 14:31             ` Joel Brobecker
2007-12-28 22:36               ` Pedro Alves
2007-12-29  3:42                 ` Joel Brobecker
2007-12-30  4:38             ` Daniel Jacobowitz

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=20071217004444.GA14356@caradoc.them.org \
    --to=drow@false.org \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro_alves@portugalmail.pt \
    /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