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/cp-abi.h | |
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/cp-abi.h')
-rw-r--r-- | gdb/cp-abi.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/cp-abi.h b/gdb/cp-abi.h index 7c1e952..e119514 100644 --- a/gdb/cp-abi.h +++ b/gdb/cp-abi.h @@ -163,11 +163,8 @@ struct cp_abi_ops }; -extern struct cp_abi_ops *cp_abis; -extern int num_cp_abis; -extern struct cp_abi_ops current_cp_abi; -extern int register_cp_abi (struct cp_abi_ops abi); -extern int switch_to_cp_abi (const char *short_name); +extern int register_cp_abi (struct cp_abi_ops *abi); +extern void set_cp_abi_as_auto_default (const char *short_name); #endif |