diff options
author | Tom Tromey <tromey@redhat.com> | 2012-11-26 15:54:29 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-11-26 15:54:29 +0000 |
commit | 210bbc17ac115d12dbde59b5de97b8547e7465c8 (patch) | |
tree | 9db34aa07d76ed52ff2ae12d2ddf16c9e356aa0a | |
parent | 0270a750ba588a8ad521e68be851772bac9c44f1 (diff) | |
download | gdb-210bbc17ac115d12dbde59b5de97b8547e7465c8.zip gdb-210bbc17ac115d12dbde59b5de97b8547e7465c8.tar.gz gdb-210bbc17ac115d12dbde59b5de97b8547e7465c8.tar.bz2 |
* 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.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/ada-lang.c | 2 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 7 | ||||
-rw-r--r-- | gdb/skip.c | 2 |
4 files changed, 13 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b14fc8e..41e7a30 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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> diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index e1dced5..0621c79 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -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"), diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 9ecdf4b..f4bd7a9 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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); @@ -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", "?"); |