OSDN Git Service

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 32bf163..0881e3d 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