diff options
author | nobody <> | 2002-09-03 22:29:15 +0000 |
---|---|---|
committer | nobody <> | 2002-09-03 22:29:15 +0000 |
commit | 2e3c0e2427295c9cc09a8a707dfba38d50e2ba30 (patch) | |
tree | b870b2944410a7cd58805b1139cbbb6e68afdefc /gdb/symtab.c | |
parent | 98c56715d7b32c12647ab664e75c92b1616b54ca (diff) | |
download | gdb-2e3c0e2427295c9cc09a8a707dfba38d50e2ba30.zip gdb-2e3c0e2427295c9cc09a8a707dfba38d50e2ba30.tar.gz gdb-2e3c0e2427295c9cc09a8a707dfba38d50e2ba30.tar.bz2 |
This commit was manufactured by cvs2svn to create branch 'gdb_5_3-branch'.gdb_5_3-2002-09-04-branchpoint
Sprout from cagney_sysregs-20020825-branch 2002-08-25 19:39:46 UTC nobody 'This commit was manufactured by cvs2svn to create branch'
Cherrypick from master 2002-09-03 22:29:14 UTC Keith Seitz <keiths@redhat.com> ' * lib/gdb.exp (gdb_compile_pthreads): Fix "build_bin" typo.':
bfd/ChangeLog
bfd/Makefile.am
bfd/Makefile.in
bfd/aoutx.h
bfd/archures.c
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/coff-tic4x.c
bfd/coff64-rs6000.c
bfd/coffcode.h
bfd/coffswap.h
bfd/config.bfd
bfd/configure
bfd/configure.in
bfd/cpu-avr.c
bfd/cpu-pj.c
bfd/cpu-powerpc.c
bfd/cpu-rs6000.c
bfd/cpu-tic4x.c
bfd/cpu-v850.c
bfd/cpu-z8k.c
bfd/doc/ChangeLog
bfd/doc/chew.c
bfd/ecoff.c
bfd/elf32-arm.h
bfd/elf32-v850.c
bfd/libbfd.h
bfd/mipsbsd.c
bfd/pdp11.c
bfd/reloc.c
bfd/targets.c
bfd/ticoff.h
bfd/version.h
gdb/ChangeLog
gdb/Makefile.in
gdb/ada-exp.y
gdb/alphanbsd-tdep.c
gdb/avr-tdep.c
gdb/ax-gdb.c
gdb/breakpoint.c
gdb/c-exp.y
gdb/c-valprint.c
gdb/cli/cli-script.c
gdb/cli/cli-script.h
gdb/config/i386/nbsd.mt
gdb/config/i386/nbsdaout.mh
gdb/config/i386/nbsdelf.mh
gdb/config/i386/tm-nbsd.h
gdb/config/mips/nbsd.mt
gdb/configure.tgt
gdb/cp-abi.c
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/dwarf2read.c
gdb/f-exp.y
gdb/gdb-events.c
gdb/gdb-events.h
gdb/gdb-events.sh
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c
gdb/gdbserver/remote-utils.c
gdb/gdbserver/server.c
gdb/gdbserver/target.h
gdb/gnu-nat.c
gdb/hpux-thread.c
gdb/i386-linux-nat.c
gdb/i386-tdep.c
gdb/i386-tdep.h
gdb/i386bsd-tdep.c
gdb/i386nbsd-tdep.c
gdb/i387-tdep.c
gdb/inferior.h
gdb/inflow.c
gdb/inftarg.c
gdb/jv-exp.y
gdb/jv-valprint.c
gdb/lin-lwp.c
gdb/m2-exp.y
gdb/m3-nat.c
gdb/mipsnbsd-tdep.c
gdb/nbsd-tdep.c
gdb/nbsd-tdep.h
gdb/osabi.c
gdb/p-exp.y
gdb/p-lang.c
gdb/ppcnbsd-tdep.c
gdb/proc-api.c
gdb/procfs.c
gdb/regcache.c
gdb/regcache.h
gdb/rs6000-tdep.c
gdb/shnbsd-tdep.c
gdb/signals/signals.c
gdb/sol-thread.c
gdb/sparcnbsd-tdep.c
gdb/stack.c
gdb/symtab.c
gdb/target.c
gdb/target.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/commands.exp
gdb/testsuite/gdb.mi/ChangeLog
gdb/testsuite/gdb.mi/gdb680.exp
gdb/testsuite/gdb.threads/killed.c
gdb/testsuite/gdb.threads/killed.exp
gdb/testsuite/gdb.threads/pthreads.exp
gdb/testsuite/lib/gdb.exp
gdb/testsuite/lib/mi-support.exp
gdb/tui/ChangeLog
gdb/tui/tui-hooks.c
gdb/tui/tui-out.c
gdb/tui/tui.c
gdb/tui/tui.h
gdb/tui/tuiData.c
gdb/tui/tuiData.h
gdb/tui/tuiDisassem.c
gdb/tui/tuiDisassem.h
gdb/tui/tuiIO.c
gdb/tui/tuiIO.h
gdb/tui/tuiSource.c
gdb/tui/tuiSourceWin.c
gdb/tui/tuiSourceWin.h
gdb/tui/tuiStack.c
gdb/tui/tuiWin.c
gdb/version.in
gdb/win32-nat.c
gdb/wince.c
gdb/x86-64-linux-nat.c
gdb/x86-64-linux-tdep.c
include/ChangeLog
include/coff/internal.h
include/coff/ti.h
include/coff/tic4x.h
include/dis-asm.h
include/elf/ChangeLog
include/elf/v850.h
include/opcode/tic4x.h
opcodes/ChangeLog
opcodes/Makefile.am
opcodes/Makefile.in
opcodes/arc-opc.c
opcodes/configure
opcodes/configure.in
opcodes/disassemble.c
opcodes/mips-dis.c
opcodes/tic4x-dis.c
opcodes/v850-dis.c
opcodes/v850-opc.c
sim/common/ChangeLog
sim/common/Make-common.in
sim/igen/ChangeLog
sim/igen/gen-support.c
sim/v850/ChangeLog
sim/v850/Makefile.in
sim/v850/sim-main.h
sim/v850/simops.c
Delete:
gdb/config/i386/nbsdaout.mt
gdb/config/i386/nbsdelf.mt
gdb/config/i386/tm-nbsdaout.h
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index d39962e..c18625a 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -860,15 +860,20 @@ lookup_symbol_aux (const char *name, const char *mangled_name, /* This is a function which has a symtab for its address. */ bv = BLOCKVECTOR (s); block = BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK); - sym = lookup_block_symbol (block, SYMBOL_NAME (msymbol), - mangled_name, namespace); + + /* This call used to pass `SYMBOL_NAME (msymbol)' as the + `name' argument to lookup_block_symbol. But the name + of a minimal symbol is always mangled, so that seems + to be clearly the wrong thing to pass as the + unmangled name. */ + sym = lookup_block_symbol (block, name, mangled_name, namespace); /* We kept static functions in minimal symbol table as well as in static scope. We want to find them in the symbol table. */ if (!sym) { block = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK); - sym = lookup_block_symbol (block, SYMBOL_NAME (msymbol), - mangled_name, namespace); + sym = lookup_block_symbol (block, name, + mangled_name, namespace); } /* sym == 0 if symbol was found in the minimal symbol table @@ -1027,15 +1032,19 @@ lookup_symbol_aux (const char *name, const char *mangled_name, { bv = BLOCKVECTOR (s); block = BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK); - sym = lookup_block_symbol (block, SYMBOL_NAME (msymbol), - mangled_name, namespace); + /* This call used to pass `SYMBOL_NAME (msymbol)' as the + `name' argument to lookup_block_symbol. But the name + of a minimal symbol is always mangled, so that seems + to be clearly the wrong thing to pass as the + unmangled name. */ + sym = lookup_block_symbol (block, name, mangled_name, namespace); /* We kept static functions in minimal symbol table as well as in static scope. We want to find them in the symbol table. */ if (!sym) { block = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK); - sym = lookup_block_symbol (block, SYMBOL_NAME (msymbol), - mangled_name, namespace); + sym = lookup_block_symbol (block, name, + mangled_name, namespace); } /* If we found one, return it */ if (sym) |