mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 05:12:28 +08:00
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.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2003-02-04 David Carlton <carlton@math.stanford.edu>
|
2003-02-04 David Carlton <carlton@math.stanford.edu>
|
||||||
|
|
||||||
* linespec.c (decode_compound): Extract code into
|
* linespec.c (decode_compound): Extract code into
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* Print values for GNU debugger GDB.
|
/* Print values for GNU debugger GDB.
|
||||||
|
|
||||||
Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
|
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.
|
Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
@ -639,10 +639,10 @@ build_address_symbolic (CORE_ADDR addr, /* IN */
|
|||||||
if (symbol)
|
if (symbol)
|
||||||
{
|
{
|
||||||
name_location = BLOCK_START (SYMBOL_BLOCK_VALUE (symbol));
|
name_location = BLOCK_START (SYMBOL_BLOCK_VALUE (symbol));
|
||||||
if (do_demangle)
|
if (do_demangle || asm_demangle)
|
||||||
name_temp = SYMBOL_SOURCE_NAME (symbol);
|
name_temp = SYMBOL_SOURCE_NAME (symbol);
|
||||||
else
|
else
|
||||||
name_temp = SYMBOL_LINKAGE_NAME (symbol);
|
name_temp = SYMBOL_NAME (symbol);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msymbol != NULL)
|
if (msymbol != NULL)
|
||||||
@ -654,10 +654,10 @@ build_address_symbolic (CORE_ADDR addr, /* IN */
|
|||||||
symbol = 0;
|
symbol = 0;
|
||||||
symtab = 0;
|
symtab = 0;
|
||||||
name_location = SYMBOL_VALUE_ADDRESS (msymbol);
|
name_location = SYMBOL_VALUE_ADDRESS (msymbol);
|
||||||
if (do_demangle)
|
if (do_demangle || asm_demangle)
|
||||||
name_temp = SYMBOL_SOURCE_NAME (msymbol);
|
name_temp = SYMBOL_SOURCE_NAME (msymbol);
|
||||||
else
|
else
|
||||||
name_temp = SYMBOL_LINKAGE_NAME (msymbol);
|
name_temp = SYMBOL_NAME (msymbol);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (symbol == NULL && msymbol == NULL)
|
if (symbol == NULL && msymbol == NULL)
|
||||||
|
11
gdb/symtab.h
11
gdb/symtab.h
@ -178,17 +178,6 @@ extern char *symbol_demangled_name (struct general_symbol_info *symbol);
|
|||||||
? SYMBOL_DEMANGLED_NAME (symbol) \
|
? SYMBOL_DEMANGLED_NAME (symbol) \
|
||||||
: SYMBOL_NAME (symbol))
|
: SYMBOL_NAME (symbol))
|
||||||
|
|
||||||
/* Macro that returns the "natural assembly name" of a symbol. In C++ this is
|
|
||||||
the "mangled" form of the name if demangle is off, or if demangle is on and
|
|
||||||
asm_demangle is off. Otherwise if asm_demangle is on it is the "demangled"
|
|
||||||
form. In other languages this is just the symbol name. The result should
|
|
||||||
never be NULL. */
|
|
||||||
|
|
||||||
#define SYMBOL_LINKAGE_NAME(symbol) \
|
|
||||||
(demangle && asm_demangle && SYMBOL_DEMANGLED_NAME (symbol) != NULL \
|
|
||||||
? SYMBOL_DEMANGLED_NAME (symbol) \
|
|
||||||
: SYMBOL_NAME (symbol))
|
|
||||||
|
|
||||||
/* Macro that tests a symbol for a match against a specified name string.
|
/* Macro that tests a symbol for a match against a specified name string.
|
||||||
First test the unencoded name, then looks for and test a C++ encoded
|
First test the unencoded name, then looks for and test a C++ encoded
|
||||||
name if it exists. Note that whitespace is ignored while attempting to
|
name if it exists. Note that whitespace is ignored while attempting to
|
||||||
|
Reference in New Issue
Block a user