aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-03-24 15:32:42 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-03-24 15:32:42 +0000
commitacdec9542b53edc49b7368310542d052c58ddfab (patch)
tree963499efdcc830ef3f1348a868d7477e4dbdbc3d /gdb
parent5801f3488e286bb4beadf9cd469ac27760f91f63 (diff)
downloadgdb-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')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/stabsread.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 25772ba..6d5a99a 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 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
{