diff options
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 { |