diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-03-05 18:01:46 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-03-05 18:01:46 +0000 |
commit | fe1f4a5eb6af1bb69854a55ab42feb74670ae3ce (patch) | |
tree | 96b9150cad6a2e450464836981103d3bc9cc0118 /gdb/minsyms.c | |
parent | f12122454eb21598da0cdebbeabfd2c076dc0641 (diff) | |
download | gdb-fe1f4a5eb6af1bb69854a55ab42feb74670ae3ce.zip gdb-fe1f4a5eb6af1bb69854a55ab42feb74670ae3ce.tar.gz gdb-fe1f4a5eb6af1bb69854a55ab42feb74670ae3ce.tar.bz2 |
* cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
(auto_cp_abi): New variable.
(current_cp_abi, num_cp_abis): Make static.
(CP_ABI_MAX): Define.
(cp_abis): Turn into an array.
(value_virtual_fn_field): Fix formatting.
(switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
takes a pointer.
(set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
(list_cp_abis, _initialize_cp_abi): New functions.
* cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
declarations for cp_abis, num_cp_abis, current_cp_abi, and
switch_to_cp_abi. Update prototype for register_cp_abi.
* Makefile.in (cp-abi.o): Update dependencies.
* minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
instead of switch_to_cp_abi.
* gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
register_cp_abi.
* gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
register_cp_abi.
* hpacc-abi.c (_initialize_hpacc_abi): Likewise.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index e3f649e..5c2ca46 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -921,7 +921,7 @@ install_minimal_symbols (struct objfile *objfile) const char *name = DEPRECATED_SYMBOL_NAME (&objfile->msymbols[i]); if (name[0] == '_' && name[1] == 'Z') { - switch_to_cp_abi ("gnu-v3"); + set_cp_abi_as_auto_default ("gnu-v3"); break; } } |