+2013-01-03 Yao Qi <yao@codesourcery.com>
+
+ * psymtab.c (fixup_psymbol_section): Update declaration.
+ (fixup_psymbol_section): Remove code returning value.
+
2013-01-03 Yao Qi <yao@codesourcery.com>
* symtab.h: Remove some out of date comments.
CORE_ADDR,
struct obj_section *);
-static struct partial_symbol *fixup_psymbol_section (struct partial_symbol
- *psym,
- struct objfile *objfile);
+static void fixup_psymbol_section (struct partial_symbol *psym,
+ struct objfile *objfile);
static struct symtab *psymtab_to_symtab (struct objfile *objfile,
struct partial_symtab *pst);
return best;
}
-static struct partial_symbol *
+static void
fixup_psymbol_section (struct partial_symbol *psym, struct objfile *objfile)
{
CORE_ADDR addr;
- if (!psym)
- return NULL;
-
- if (SYMBOL_OBJ_SECTION (psym))
- return psym;
+ if (psym == NULL || SYMBOL_OBJ_SECTION (psym) != NULL)
+ return;
gdb_assert (objfile);
default:
/* Nothing else will be listed in the minsyms -- no use looking
it up. */
- return psym;
+ return;
}
fixup_section (&psym->ginfo, addr, objfile);
-
- return psym;
}
static struct symtab *