From: Jim Kingdon Date: Thu, 21 Oct 1993 14:20:50 +0000 (+0000) Subject: * stabs.texinfo (Local Variable Parameters): Re-write paragraph on X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2525986367862e2c3a009f3ac4ddcb0f5abf959;p=binutils-gdb.git * stabs.texinfo (Local Variable Parameters): Re-write paragraph on floats passed as doubles (to improve clarity). --- diff --git a/gdb/doc/stabs.texinfo b/gdb/doc/stabs.texinfo index a6171ebb82a..682beaccd0e 100644 --- a/gdb/doc/stabs.texinfo +++ b/gdb/doc/stabs.texinfo @@ -1107,15 +1107,17 @@ subr (f) @{ @end example -if @code{f} gets allocated in a register, then its stabs look like: +if @code{f} is passed as a double at stack offset 8, and the prologue +converts it to a float in register number 0, then the stabs look like: -@c FIXME: Probably should run this through the compiler and get the -@c whole thing including ".stabs" and so on. @example -f:p13 # @r{where 13 is double} -f:r12 # @r{where 12 is float} +.stabs "f:p13",160,0,3,8 # @r{160 is @code{N_PSYM}, here 13 is @code{double}} +.stabs "f:r12",64,0,3,0 # @r{64 is @code{N_RSYM}, here 12 is @code{float}} @end example +In both stabs 3 is the line number where @code{f} is declared +(@pxref{Line Numbers}). + @findex N_LSYM, for parameter GCC, at least on the 960, has another solution to the same problem. It uses a single @samp{p} symbol descriptor for an argument which is stored