diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 25772ba5420..6d5a99a363a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Thu Mar 24 07:12:09 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + * stabsread.c (patch_block_stabs): Don't create LOC_OPTIMIZED_OUT + symbols. Reverts change of 2 Apr 1993. + * dbxread.c (end_psymtab): Add comment about empty psymtabs. Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com) @@ -11,6 +14,7 @@ Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com) (show_commands): Don't declare history_base; it is declared in history.h. * command.c (lookup_cmd): Don't delete trailing whitespace. + Reverts change of 14 May 1989. Wed Mar 23 16:14:52 1994 Stu Grossman (grossman at cygnus.com) diff --git a/gdb/stabsread.c b/gdb/stabsread.c index e680f6ff1b0..6466e37b232 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 {