* dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
authorDaniel Jacobowitz <drow@false.org>
Sat, 21 Feb 2004 02:13:35 +0000 (02:13 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sat, 21 Feb 2004 02:13:35 +0000 (02:13 +0000)
to the partial symbol table.

gdb/ChangeLog
gdb/dwarf2read.c

index 7b7371e94747f59150bde3901a0762c48c255371..26c343291a3f9bcda8a60b9d26f502877b0ced7e 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
+
+       * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
+       to the partial symbol table.
+
 2004-02-20  J. brobecker  <brobecker@gnat.com>
 
        * PROBLEMS: Add description of problem documented under gdb/1560.
index e09c3c15f6c30b08f3886ff18b8fe729c4a8c788..46c3cf4ed7e28df2c43dde5c75ed72b7dc18ff92 100644 (file)
@@ -1562,8 +1562,8 @@ add_partial_symbol (struct partial_die_info *pdi,
       add_psymbol_to_list (actual_name, strlen (actual_name),
                           VAR_DOMAIN, LOC_CONST,
                           cu->language == language_cplus
-                          ? &objfile->static_psymbols
-                          : &objfile->global_psymbols,
+                          ? &objfile->global_psymbols
+                          : &objfile->static_psymbols,
                           0, (CORE_ADDR) 0, cu->language, objfile);
       break;
     default: