aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-abi.h
AgeCommit message (Collapse)AuthorFilesLines
2005-02-072005-02-07 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+1
* value.h (value_embedded_offset): Delete. (value_embedded_offset): Declare. * value.c (value_embedded_offset): Define. * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update. * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update. * cp-abi.h: Update.
2005-01-282005-01-28 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-5/+7
* gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const bfd_byte. * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte. (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const bfd_byte. * cp-abi.c (baseclass_offset): Update. * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
2003-04-122003-04-12 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-0/+2
* gdbarch.sh: Add missing opaque declarations. * gdbarch.h: Regnerate. * symtab.h: Add missing opaque declarations. * value.h, target.h, symfile.h, stabsread.h: Ditto. * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto. * srec.h, solib-svr4.h, source.h, inferior.h: Ditto. * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto. * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto. * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto. * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto. * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto. * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto. * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto. * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto. * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto. * cli/cli-setshow.h, cli/cli-script.h: Ditto.
2003-03-05 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".Daniel Jacobowitz1-5/+2
(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.
2002-01-042002-01-04 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-0/+12
* cp-abi.c: Fix whitespace. (baseclass_offset): New wrapper function. * cp-abi.h (baseclass_offset): Add prototype. (struct cp_abi_ops): Add baseclass_offset pointer. * valops.c (vb_match): Move to... * gnu-v2-abi.c (vb_match): here. * valops.c (baseclass_offset): Move to... * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename. * gnu-v3-abi.c (gnuv3_baseclass_offset): New function. * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset. * gnu-v3-abi.c (init_gnuv3_ops): Likewise. * hpacc-abi.c (init_hpacc_ops): Likewise.
2001-10-21* cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.Andrew Cagney1-6/+8
2001-06-06* cp-abi.h: Rearrange code to put documentation comments above theJim Blandy1-46/+74
functions we export. The actual function table itself simply refers to those functions. Minor doc fixes.
2001-04-27(Changes from Daniel Berlin, with revisions by Jim Blandy.)Jim Blandy1-0/+131
Abstract out operations specific to particular C++ ABI's, and invoke them through a function table. This removes the C++ ABI dependencies scattered throughout the code, and allows us to cleanly add support for new C++ ABI's. * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files. * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c, jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c: #include "cp-abi.h". These files all use functions now declared there. * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P): Deleted. These services are now provided by functions declared in cp-abi.h. * value.h (value_rtti_type, value_virtual_fn_field): Same. * values.c (value_virtual_fn_field): Same, for this definition. * valops.c (value_rtti_type): Same. * c-typeprint.c (c_type_print_base): Use the functions from "cp-abi.h", instead of the old macros, or hard-coded ABI-specific tests. * dbxread.c (record_minimal_symbol): Same. * gdbtypes.c (get_destructor_fn_field, virtual_base_index, virtual_base_index_skip_primaries): Same. * jv-typeprint.c (java_type_print_base): Same. * linespec.c (find_methods, decode_line_1): Same. * symtab.c (gdb_mangle_name): Same. * Makefile.in (SFILES): Add the new .c files mentioned above. (cp_abi_h): New variable. (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o. (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets. (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o, jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add dependency on $(cp_abi_h).