diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-21 14:20:50 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-21 14:20:50 +0000 |
commit | e2525986367862e2c3a009f3ac4ddcb0f5abf959 (patch) | |
tree | e33d018b50a94ad3da3ae6d87e42dc689df25faf /gdb/doc | |
parent | bf96935bbcf58a51b9f067bcc3eba214344b854a (diff) | |
download | gdb-e2525986367862e2c3a009f3ac4ddcb0f5abf959.zip gdb-e2525986367862e2c3a009f3ac4ddcb0f5abf959.tar.gz gdb-e2525986367862e2c3a009f3ac4ddcb0f5abf959.tar.bz2 |
* stabs.texinfo (Local Variable Parameters): Re-write paragraph on
floats passed as doubles (to improve clarity).
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/stabs.texinfo | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/doc/stabs.texinfo b/gdb/doc/stabs.texinfo index a6171eb..682beac 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 |