diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-24 15:32:42 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-24 15:32:42 +0000 |
commit | acdec9542b53edc49b7368310542d052c58ddfab (patch) | |
tree | 963499efdcc830ef3f1348a868d7477e4dbdbc3d /gdb/stabsread.c | |
parent | 5801f3488e286bb4beadf9cd469ac27760f91f63 (diff) | |
download | gdb-acdec9542b53edc49b7368310542d052c58ddfab.zip gdb-acdec9542b53edc49b7368310542d052c58ddfab.tar.gz gdb-acdec9542b53edc49b7368310542d052c58ddfab.tar.bz2 |
* stabsread.c (patch_block_stabs): Don't create LOC_OPTIMIZED_OUT
symbols. Reverts change of 2 Apr 1993.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index e680f6f..6466e37 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -399,6 +399,14 @@ 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. */ + /* On xcoff, if a global is defined and never referenced, ld will remove it from the executable. There is then a N_GSYM stab for it, but no regular (C_EXT) symbol. */ @@ -425,6 +433,7 @@ patch_block_stabs (symbols, stabs, objfile) SYMBOL_TYPE (sym) = read_type (&pp, objfile); } add_symbol_to_list (sym, &global_symbols); +#endif /* 0 */ } else { |