mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 05:12:28 +08:00
* minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
if the linkage name demangled successfully.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-13 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
* minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
|
||||||
|
if the linkage name demangled successfully.
|
||||||
|
|
||||||
2003-04-13 Mark Kettenis <kettenis@gnu.org>
|
2003-04-13 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
|
* x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
|
||||||
|
@ -920,8 +920,14 @@ install_minimal_symbols (struct objfile *objfile)
|
|||||||
|
|
||||||
for (i = 0; i < mcount; i++)
|
for (i = 0; i < mcount; i++)
|
||||||
{
|
{
|
||||||
|
/* If a symbol's name starts with _Z and was successfully
|
||||||
|
demangled, then we can assume we've found a GNU v3 symbol.
|
||||||
|
For now we set the C++ ABI globally; if the user is
|
||||||
|
mixing ABIs then the user will need to "set cp-abi"
|
||||||
|
manually. */
|
||||||
const char *name = SYMBOL_LINKAGE_NAME (&objfile->msymbols[i]);
|
const char *name = SYMBOL_LINKAGE_NAME (&objfile->msymbols[i]);
|
||||||
if (name[0] == '_' && name[1] == 'Z')
|
if (name[0] == '_' && name[1] == 'Z'
|
||||||
|
&& SYMBOL_DEMANGLED_NAME (&objfile->msymbols[i]) != NULL)
|
||||||
{
|
{
|
||||||
set_cp_abi_as_auto_default ("gnu-v3");
|
set_cp_abi_as_auto_default ("gnu-v3");
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user