From: Mark Kettenis <kettenis@wins.uva.nl>
To: gdb@sources.redhat.com
Subject: Register variables in stabs
Date: Mon, 20 Aug 2001 16:17:00 -0000 [thread overview]
Message-ID: <200108202317.f7KNHEK00977@delius.kettenis.local> (raw)
The run-time dynamic linker (/lib/ld-linux.so.2) on my systems
contains the following seemingly bogus stab (output from objdump
--stabs):
Symnum n_type n_othr n_desc n_value n_strx String
2074 RSYM 0 1496 ffffffff 27890 buf:r(0,40)=*(0,41)=ar(0,1);0;-1;(0,2)
which means that buf is a pointer to an array of some type which lives
in register number 0xffffffff or -1. Of course -1 isn't a valid
register number, and my recent register renumbering patches for the
i386 map this bogus number onto NUM_REGS + NUM_PSEUDO_REGS, which
forces GDB to complain about the symbol. Before my change GDB would
keep the register number at -1 which resulted in no complaint. My
question now is why the register number -1 is used. Is this a
compiler bug, or has -1 a special meaning.
Depending on the answer to the question above: should we leave
negative register numbers alone (as GDB does for most other targets)
and not warn about them, or is it OK to complain?
Mark
next reply other threads:[~2001-08-20 16:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-20 16:17 Mark Kettenis [this message]
2001-08-20 16:23 ` H . J . Lu
2001-08-21 2:37 ` Mark Kettenis
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=200108202317.f7KNHEK00977@delius.kettenis.local \
--to=kettenis@wins.uva.nl \
--cc=gdb@sources.redhat.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