aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-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/c-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/c-exp.y')
-rw-r--r--gdb/c-exp.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 933007e..654bf75 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -671,6 +671,7 @@ variable: name_not_typename
case LOC_LABEL:
case LOC_BLOCK:
case LOC_CONST_BYTES:
+ case LOC_OPTIMIZED_OUT:
/* In this case the expression can
be evaluated regardless of what