From 8816824a830c593a0b8461f63836192cb35aea6d Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 24 Mar 1994 16:11:11 +0000 Subject: * stabs.texinfo (Global Variables): Talk about stabs in files where variables are referenced, but not defined. --- gdb/doc/ChangeLog | 5 +++++ gdb/doc/stabs.texinfo | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'gdb') diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 7bfdd32..d5e6480 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 c75836e..20e5035 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 -- cgit v1.1