diff options
author | Yao Qi <yao@codesourcery.com> | 2013-01-03 07:17:52 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-01-03 07:17:52 +0000 |
commit | 50da2f25309df4445e736121024dc41dfe750995 (patch) | |
tree | 3db70a10151699e5315e27f9643cc7cabb404fce | |
parent | e7e8980f5d1713148458f79f1d302bb08fbbc1b2 (diff) | |
download | gdb-50da2f25309df4445e736121024dc41dfe750995.zip gdb-50da2f25309df4445e736121024dc41dfe750995.tar.gz gdb-50da2f25309df4445e736121024dc41dfe750995.tar.bz2 |
gdb/
* psymtab.c (fixup_psymbol_section): Update declaration.
(fixup_psymbol_section): Remove code returning value.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/psymtab.c | 18 |
2 files changed, 11 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 124fffa..8363ed7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. (enum exception_event_kind): Move it ... * breakpoint.c: ... here. diff --git a/gdb/psymtab.c b/gdb/psymtab.c index ac86127..d683e53 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -65,9 +65,8 @@ static struct partial_symbol *find_pc_sect_psymbol (struct objfile *, 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); @@ -480,16 +479,13 @@ find_pc_sect_psymbol (struct objfile *objfile, 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); @@ -503,12 +499,10 @@ fixup_psymbol_section (struct partial_symbol *psym, struct objfile *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 * |