From e0020f272e41a9ca059065334ccff155308c6212 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sat, 26 Jun 1993 02:39:05 +0000 Subject: [PATCH] * stabs.texinfo (Common Blocks): Say what Sun FORTRAN does. --- gdb/doc/ChangeLog | 4 ++++ gdb/doc/stabs.texinfo | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 8150bd1..17892e2 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +Fri Jun 25 21:34:52 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + + * stabs.texinfo (Common Blocks): Say what Sun FORTRAN does. + Fri Jun 25 16:15:10 1993 Roland H. Pesch (pesch@fowanton.cygnus.com) * Makefile.in: (REFEDITS) new var to control whether PS or CM diff --git a/gdb/doc/stabs.texinfo b/gdb/doc/stabs.texinfo index bebf012..515ef97 100644 --- a/gdb/doc/stabs.texinfo +++ b/gdb/doc/stabs.texinfo @@ -952,10 +952,12 @@ I believe @sc{fortran} is the only language with this feature. A @code{N_BCOMM} stab begins a common block and an @code{N_ECOMM} stab ends it. The only thing which is significant about these two stabs is their name, which can be used to look up a normal (non-debugging) symbol -which gives the address of the common block. Each variable in the -common block has a @code{N_ECOML} stab, whose value is the offset within -the common block of that variable. I'm not sure what symbol descriptor -is used for the @code{N_ECOML} stabs. +which gives the address of the common block. Then each stab between the +@code{N_BCOMM} and the @code{N_ECOMM} specifies a member of that common +block; its value is the offset within the common block of that variable. +The @code{N_ECOML} stab type is documented for this purpose, but Sun's +@sc{fortran} compiler uses @code{N_GSYM} instead, with the @samp{V} +symbol descriptor. @node Initialized statics @section Initialized static variables -- 2.7.4