diff options
author | Doug Evans <dje@google.com> | 1998-02-09 23:25:39 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-02-09 23:25:39 +0000 |
commit | 79f15b12ba027156274a4eccf5e38ff274dc7aa7 (patch) | |
tree | 17e2a1d671b072dd22c2bf97f344af7d0726171e /gdb/symtab.c | |
parent | 9c01dbfbdbcb46fa6a1d81b1bf1b3f16b871f3a6 (diff) | |
download | fsf-binutils-gdb-79f15b12ba027156274a4eccf5e38ff274dc7aa7.zip fsf-binutils-gdb-79f15b12ba027156274a4eccf5e38ff274dc7aa7.tar.gz fsf-binutils-gdb-79f15b12ba027156274a4eccf5e38ff274dc7aa7.tar.bz2 |
* symtab.c (fixup_psymbol_section): Move forward declaration to
top of file with other such decls. Make it a static function.
* symtab.h: Minor formatting tweaks.
Via Fred, from m32r branch.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 9a8201c..422a67e 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -87,6 +87,9 @@ static struct partial_symbol * lookup_partial_symbol PARAMS ((struct partial_symtab *, const char *, int, namespace_enum)); +static struct partial_symbol * +fixup_psymbol_section PARAMS ((struct partial_symbol *, struct objfile *)); + static struct symtab * lookup_symtab_1 PARAMS ((char *)); @@ -362,10 +365,6 @@ gdb_mangle_name (type, i, j) -struct partial_symbol * fixup_psymbol_section PARAMS ((struct partial_symbol *, - struct objfile *)); - - /* Find which partial symtab on contains PC and SECTION. Return 0 if none. */ struct partial_symtab * @@ -535,7 +534,7 @@ fixup_symbol_section (sym, objfile) return sym; } -struct partial_symbol * +static struct partial_symbol * fixup_psymbol_section (psym, objfile) struct partial_symbol *psym; struct objfile *objfile; @@ -1338,6 +1337,9 @@ find_pc_sect_line (pc, section, notcurrent) s = find_pc_sect_symtab (pc, section); if (!s) { + /* if no symbol information, return previous pc */ + if (notcurrent) + pc++; val.pc = pc; return val; } |