diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 7bfdd32b89..d5e648046d 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +Thu Mar 24 08:09:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + + * stabs.texinfo (Global Variables): Talk about stabs in files + where variables are referenced, but not defined. + Wed Mar 23 07:16:36 1994 Jim Kingdon (kingdon@lioth.cygnus.com) * stabs.texinfo: Move stuff on @ and # type descriptors from node diff --git a/gdb/doc/stabs.texinfo b/gdb/doc/stabs.texinfo index c75836e0ce..20e5035ce7 100644 --- a/gdb/doc/stabs.texinfo +++ b/gdb/doc/stabs.texinfo @@ -856,6 +856,11 @@ from the external symbol for the global variable. In the example above, the @code{.global _g_foo} and @code{_g_foo:} lines tell the assembler to produce an external symbol. +Some compilers, like GCC, output @code{N_GSYM} stabs only once, where +the variable is defined. Other compilers, like SunOS4 /bin/cc, output a +@code{N_GSYM} stab for each compilation unit which references the +variable. + @node Register Variables @section Register Variables