* Register variables in stabs
@ 2001-08-20 16:17 Mark Kettenis
2001-08-20 16:23 ` H . J . Lu
0 siblings, 1 reply; 3+ messages in thread
From: Mark Kettenis @ 2001-08-20 16:17 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Register variables in stabs
2001-08-20 16:17 Register variables in stabs Mark Kettenis
@ 2001-08-20 16:23 ` H . J . Lu
2001-08-21 2:37 ` Mark Kettenis
0 siblings, 1 reply; 3+ messages in thread
From: H . J . Lu @ 2001-08-20 16:23 UTC (permalink / raw)
To: Mark Kettenis; +Cc: gdb
On Tue, Aug 21, 2001 at 01:17:14AM +0200, Mark Kettenis wrote:
> 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)
>
If I am right, it is the same gcc bug:
http://gcc.gnu.org/ml/gcc-patches/2001-07/msg01416.html
H.J.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Register variables in stabs
2001-08-20 16:23 ` H . J . Lu
@ 2001-08-21 2:37 ` Mark Kettenis
0 siblings, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2001-08-21 2:37 UTC (permalink / raw)
To: hjl; +Cc: gdb
Date: Mon, 20 Aug 2001 16:23:17 -0700
From: "H . J . Lu" <hjl@lucon.org>
If I am right, it is the same gcc bug:
http://gcc.gnu.org/ml/gcc-patches/2001-07/msg01416.html
Looks like it. Thanks for the pointer. I'll leave things as they are
and let GDB complain about it.
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-08-21 2:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-20 16:17 Register variables in stabs Mark Kettenis
2001-08-20 16:23 ` H . J . Lu
2001-08-21 2:37 ` Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox