* ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
authorTom Tromey <tromey@redhat.com>
Mon, 26 Nov 2012 15:54:29 +0000 (15:54 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 26 Nov 2012 15:54:29 +0000 (15:54 +0000)
* dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
SYMBOL_SYMTAB.
* skip.c (skip_info): Use SYMBOL_SYMTAB.

gdb/ChangeLog
gdb/ada-lang.c
gdb/dwarf2read.c
gdb/skip.c

index b14fc8e002c263dd2acbcacde5805fc2e45fe931..41e7a30ed07e3056862fe625f6ebab619a4aec75 100644 (file)
@@ -1,3 +1,10 @@
+2012-11-26  Tom Tromey  <tromey@redhat.com>
+
+       * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
+       * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
+       SYMBOL_SYMTAB.
+       * skip.c (skip_info): Use SYMBOL_SYMTAB.
+
 2012-11-26  Maxime Villard  <rustyBSD@gmx.fr>
            Pedro Alves  <palves@redhat.com>
 
index e1dced5ef39a0c48494e358da7556946478b46b2..0621c79b32c7369325772e6d5f07b20c0d0bc9f7 100644 (file)
@@ -3583,7 +3583,7 @@ See set/show multiple-symbol."));
             (SYMBOL_CLASS (syms[i].sym) == LOC_CONST
              && SYMBOL_TYPE (syms[i].sym) != NULL
              && TYPE_CODE (SYMBOL_TYPE (syms[i].sym)) == TYPE_CODE_ENUM);
-          struct symtab *symtab = syms[i].sym->symtab;
+          struct symtab *symtab = SYMBOL_SYMTAB (syms[i].sym);
 
           if (SYMBOL_LINE (syms[i].sym) != 0 && symtab != NULL)
             printf_unfiltered (_("[%d] %s at %s:%d\n"),
index 9ecdf4b0c658b3061c0723758af053594951f838..f4bd7a97903f0539b1e0c090f2bacda01f3a0867 100644 (file)
@@ -3402,7 +3402,7 @@ dw2_find_symbol_file (struct objfile *objfile, const char *name)
          struct symbol *sym = lookup_block_symbol (block, name, VAR_DOMAIN);
 
          if (sym)
-           return sym->symtab->filename;
+           return SYMBOL_SYMTAB (sym)->filename;
        }
       return NULL;
     }
@@ -6754,8 +6754,9 @@ fixup_go_packaging (struct dwarf2_cu *cu)
                  if (strcmp (package_name, this_package_name) != 0)
                    complaint (&symfile_complaints,
                               _("Symtab %s has objects from two different Go packages: %s and %s"),
-                              (sym->symtab && sym->symtab->filename
-                               ? sym->symtab->filename
+                              (SYMBOL_SYMTAB (sym)
+                               && SYMBOL_SYMTAB (sym)->filename
+                               ? SYMBOL_SYMTAB (sym)->filename
                                : cu->objfile->name),
                               this_package_name, package_name);
                  xfree (this_package_name);
index 5a3fae388eee7a6b3c6308f7c99c1a56364e12d5..9041b857e90a1edcbf48f72d32f064fb77026afc 100644 (file)
@@ -304,7 +304,7 @@ Skiplist entry should have either a filename or a function name."));
           if (sym)
             ui_out_field_fmt (current_uiout, "what", "%s at %s:%d",
                               sym->ginfo.name,
-                              sym->symtab->filename,
+                              SYMBOL_SYMTAB (sym)->filename,
                               sym->line);
           else
             ui_out_field_string (current_uiout, "what", "?");