aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index d8d8e23..c697b1b 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1536,11 +1536,11 @@ lookup_symbol_in_block (const char *name, const struct block *block,
/* See symtab.h. */
struct symbol *
-lookup_global_symbol_from_objfile (const struct objfile *main_objfile,
+lookup_global_symbol_from_objfile (struct objfile *main_objfile,
const char *name,
const domain_enum domain)
{
- const struct objfile *objfile;
+ struct objfile *objfile;
for (objfile = main_objfile;
objfile;
@@ -1561,12 +1561,11 @@ lookup_global_symbol_from_objfile (const struct objfile *main_objfile,
if (sym)
{
block_found = block;
- return fixup_symbol_section (sym, (struct objfile *)objfile);
+ return fixup_symbol_section (sym, objfile);
}
}
- sym = lookup_symbol_via_quick_fns ((struct objfile *) objfile,
- GLOBAL_BLOCK, name, domain);
+ sym = lookup_symbol_via_quick_fns (objfile, GLOBAL_BLOCK, name, domain);
if (sym)
return sym;
}