gdb/
* psymtab.c (fixup_psymbol_section): Update declaration. (fixup_psymbol_section): Remove code returning value.
This commit is contained in:
parent
e7e8980f5d
commit
50da2f2530
2 changed files with 11 additions and 12 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2013-01-03 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* symtab.h: Remove some out of date comments.
|
* symtab.h: Remove some out of date comments.
|
||||||
|
|
|
@ -65,9 +65,8 @@ static struct partial_symbol *find_pc_sect_psymbol (struct objfile *,
|
||||||
CORE_ADDR,
|
CORE_ADDR,
|
||||||
struct obj_section *);
|
struct obj_section *);
|
||||||
|
|
||||||
static struct partial_symbol *fixup_psymbol_section (struct partial_symbol
|
static void fixup_psymbol_section (struct partial_symbol *psym,
|
||||||
*psym,
|
struct objfile *objfile);
|
||||||
struct objfile *objfile);
|
|
||||||
|
|
||||||
static struct symtab *psymtab_to_symtab (struct objfile *objfile,
|
static struct symtab *psymtab_to_symtab (struct objfile *objfile,
|
||||||
struct partial_symtab *pst);
|
struct partial_symtab *pst);
|
||||||
|
@ -480,16 +479,13 @@ find_pc_sect_psymbol (struct objfile *objfile,
|
||||||
return best;
|
return best;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct partial_symbol *
|
static void
|
||||||
fixup_psymbol_section (struct partial_symbol *psym, struct objfile *objfile)
|
fixup_psymbol_section (struct partial_symbol *psym, struct objfile *objfile)
|
||||||
{
|
{
|
||||||
CORE_ADDR addr;
|
CORE_ADDR addr;
|
||||||
|
|
||||||
if (!psym)
|
if (psym == NULL || SYMBOL_OBJ_SECTION (psym) != NULL)
|
||||||
return NULL;
|
return;
|
||||||
|
|
||||||
if (SYMBOL_OBJ_SECTION (psym))
|
|
||||||
return psym;
|
|
||||||
|
|
||||||
gdb_assert (objfile);
|
gdb_assert (objfile);
|
||||||
|
|
||||||
|
@ -503,12 +499,10 @@ fixup_psymbol_section (struct partial_symbol *psym, struct objfile *objfile)
|
||||||
default:
|
default:
|
||||||
/* Nothing else will be listed in the minsyms -- no use looking
|
/* Nothing else will be listed in the minsyms -- no use looking
|
||||||
it up. */
|
it up. */
|
||||||
return psym;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fixup_section (&psym->ginfo, addr, objfile);
|
fixup_section (&psym->ginfo, addr, objfile);
|
||||||
|
|
||||||
return psym;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct symtab *
|
static struct symtab *
|
||||||
|
|
Loading…
Reference in a new issue