diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-21 17:29:39 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-21 17:29:39 +0000 |
commit | 1605ef261f0f8aae0203f70f484ecb1bed35c5d6 (patch) | |
tree | 1e431c196eb83e5195fe60d8944f95e5b754bf8b /gdb/minsyms.c | |
parent | 3b74cdc362a03bc6893f79f14fb5f60bb585e828 (diff) | |
download | gdb-1605ef261f0f8aae0203f70f484ecb1bed35c5d6.zip gdb-1605ef261f0f8aae0203f70f484ecb1bed35c5d6.tar.gz gdb-1605ef261f0f8aae0203f70f484ecb1bed35c5d6.tar.bz2 |
* gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
* gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
* minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
* NEWS: Update.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 8a90668..779b9f9 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -1240,29 +1240,6 @@ install_minimal_symbols (struct objfile *objfile) objfile->minimal_symbol_count = mcount; objfile->msymbols = msymbols; - /* Try to guess the appropriate C++ ABI by looking at the names - of the minimal symbols in the table. */ - { - int 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]); - - if (name[0] == '_' && name[1] == 'Z' - && SYMBOL_DEMANGLED_NAME (&objfile->msymbols[i]) != NULL) - { - set_cp_abi_as_auto_default ("gnu-v3"); - break; - } - } - } - /* Now build the hash tables; we can't do this incrementally at an earlier point since we weren't finished with the obstack yet. (And if the msymbol obstack gets moved, all the internal |