aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/stabs.texinfo
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-03-24 16:11:11 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-03-24 16:11:11 +0000
commit8816824a830c593a0b8461f63836192cb35aea6d (patch)
tree6381633e10a3e4e88871849e4b3f7658fa85698c /gdb/doc/stabs.texinfo
parentacdec9542b53edc49b7368310542d052c58ddfab (diff)
downloadgdb-8816824a830c593a0b8461f63836192cb35aea6d.zip
gdb-8816824a830c593a0b8461f63836192cb35aea6d.tar.gz
gdb-8816824a830c593a0b8461f63836192cb35aea6d.tar.bz2
* stabs.texinfo (Global Variables): Talk about stabs in files
where variables are referenced, but not defined.
Diffstat (limited to 'gdb/doc/stabs.texinfo')
-rw-r--r--gdb/doc/stabs.texinfo5
1 files changed, 5 insertions, 0 deletions
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