Make LOC_OPTIMIZED_OUT the default value for a symbol.
authorNick Roberts <nickrob@snap.net.nz>
Sat, 6 May 2006 00:14:03 +0000 (00:14 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sat, 6 May 2006 00:14:03 +0000 (00:14 +0000)
gdb/dwarf2read.c

index 32bf163534c113ade03775cc69652f5a41ee8f89..0881e3d1a1fbdcab3f6220f24fde224f5b70b51e 100644 (file)
@@ -6856,7 +6856,7 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
       /* Default assumptions.
          Use the passed type or decode it from the die.  */
       SYMBOL_DOMAIN (sym) = VAR_DOMAIN;
-      SYMBOL_CLASS (sym) = LOC_STATIC;
+      SYMBOL_CLASS (sym) = LOC_OPTIMIZED_OUT;
       if (type != NULL)
        SYMBOL_TYPE (sym) = type;
       else