summaryrefslogtreecommitdiffstats
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-02-04 21:37:03 +0000
committerDavid Carlton <carlton@bactrian.org>2003-02-04 21:37:03 +0000
commit406fc7fbebc6e4493f0fc348c434d01c7bde2d9b (patch)
tree6ce32fc7adcce32fb1f4979559962756a17be7a0 /gdb/printcmd.c
parent93d91629613637c599e9fd7e0d8f7f541af74ea1 (diff)
downloadppe42-binutils-406fc7fbebc6e4493f0fc348c434d01c7bde2d9b.tar.gz
ppe42-binutils-406fc7fbebc6e4493f0fc348c434d01c7bde2d9b.zip
2003-02-04 David Carlton <carlton@math.stanford.edu>
* symtab.h (SYMBOL_LINKAGE_NAME): Delete. * printcmd.c (build_address_symbolic): Replace uses of SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME, SYMBOL_NAME, and asm_demangle. Update copyright.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 05b5e7152f..657fa5ebb1 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1,7 +1,7 @@
/* Print values for GNU debugger GDB.
Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
- 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software
+ 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software
Foundation, Inc.
This file is part of GDB.
@@ -639,10 +639,10 @@ build_address_symbolic (CORE_ADDR addr, /* IN */
if (symbol)
{
name_location = BLOCK_START (SYMBOL_BLOCK_VALUE (symbol));
- if (do_demangle)
+ if (do_demangle || asm_demangle)
name_temp = SYMBOL_SOURCE_NAME (symbol);
else
- name_temp = SYMBOL_LINKAGE_NAME (symbol);
+ name_temp = SYMBOL_NAME (symbol);
}
if (msymbol != NULL)
@@ -654,10 +654,10 @@ build_address_symbolic (CORE_ADDR addr, /* IN */
symbol = 0;
symtab = 0;
name_location = SYMBOL_VALUE_ADDRESS (msymbol);
- if (do_demangle)
+ if (do_demangle || asm_demangle)
name_temp = SYMBOL_SOURCE_NAME (msymbol);
else
- name_temp = SYMBOL_LINKAGE_NAME (msymbol);
+ name_temp = SYMBOL_NAME (msymbol);
}
}
if (symbol == NULL && msymbol == NULL)
OpenPOWER on IntegriCloud