diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-24 17:03:23 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-24 17:03:23 +0000 |
commit | 553e18620a61846a0a1eb9e18d82e13c0153d78e (patch) | |
tree | b1bc6af0122ddb9ed40818e38dee01947487e4ca /gdb/stabsread.c | |
parent | b93e563cb7f25e3ad1233c7786229ed154587bef (diff) | |
download | gdb-553e18620a61846a0a1eb9e18d82e13c0153d78e.zip gdb-553e18620a61846a0a1eb9e18d82e13c0153d78e.tar.gz gdb-553e18620a61846a0a1eb9e18d82e13c0153d78e.tar.bz2 |
* stabsread.c (patch_block_stabs): Add comment about what happens
if the definition is in another compilation unit from the stab.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 6466e37..af486ff 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -399,13 +399,13 @@ patch_block_stabs (symbols, stabs, objfile) sym = find_symbol_in_list (symbols, name, pp-name); if (!sym) { -#if 0 - /* The following code is disabled because AIX's xlc also - puts out a stab but no C_EXT in the case where a - symbol is referenced but not defined (in that - compilation unit). So we just don't create a symbol, - and the user will get the symbol from the compilation - unit in which the symbol is actually defined. */ + /* FIXME-maybe: it would be nice if we noticed whether + the variable was defined *anywhere*, not just whether + it is defined in this compilation unit. But neither + xlc or GCC seem to need such a definition, and until + we do psymtabs (so that the minimal symbols from all + compilation units are available now), I'm not sure + how to get the information. */ /* On xcoff, if a global is defined and never referenced, ld will remove it from the executable. There is then @@ -433,7 +433,6 @@ patch_block_stabs (symbols, stabs, objfile) SYMBOL_TYPE (sym) = read_type (&pp, objfile); } add_symbol_to_list (sym, &global_symbols); -#endif /* 0 */ } else { |