aboutsummaryrefslogtreecommitdiff
path: root/gdb/ch-exp.y
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-04-02 19:35:30 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-04-02 19:35:30 +0000
commit0848ad1c4da297c06f56855124aaf11b2cc30c71 (patch)
treedc65b5c8708dee270cf23d0fe2a572ce6c6af45c /gdb/ch-exp.y
parentc209295fa5aa466f9eceb3167a13d9df58a33bc1 (diff)
downloadgdb-0848ad1c4da297c06f56855124aaf11b2cc30c71.zip
gdb-0848ad1c4da297c06f56855124aaf11b2cc30c71.tar.gz
gdb-0848ad1c4da297c06f56855124aaf11b2cc30c71.tar.bz2
* stabsread.c (patch_block_stabs): If stab & no symbol, make
a LOC_OPTIMIZED_OUT symbol. symtab.h (enum address_class): Add LOC_OPTIMIZED_OUT. findvar.c (read_var_value), printcmd.c (address_info), symmisc.c (print_{,partial_}symbol), c-exp.y (variable), m2-exp.y (yylex): Deal with it.
Diffstat (limited to 'gdb/ch-exp.y')
-rw-r--r--gdb/ch-exp.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/ch-exp.y b/gdb/ch-exp.y
index 41ff245..0a2efd1 100644
--- a/gdb/ch-exp.y
+++ b/gdb/ch-exp.y
@@ -1979,6 +1979,7 @@ yylex ()
case LOC_UNDEF:
case LOC_TYPEDEF:
case LOC_CONST_BYTES:
+ case LOC_OPTIMIZED_OUT:
error ("Symbol \"%s\" names no location.", simplename);
break;
}