From efae50153d4577bd05fc34b76c47bdca79982233 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Fri, 6 Jul 2001 19:17:05 +0000 Subject: Typesystem work initial import. Note that this currently isn't building, i'm in the middle of converting make_function_type/lookup_function_type --- gdb/cp-abi.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gdb/cp-abi.h') diff --git a/gdb/cp-abi.h b/gdb/cp-abi.h index bd5430d5a93..8b60180d314 100644 --- a/gdb/cp-abi.h +++ b/gdb/cp-abi.h @@ -146,6 +146,15 @@ struct cp_abi_ops int j, struct type * type, int offset); struct type *(*rtti_type) (value_ptr v, int *full, int *top, int *using_enc); + + /* Compute the offset of the INDEXth baseclass of class TYPE, for + value at VALADDR (in host) at ADDRESS (in target). The result + should be the offset of the baseclass value relative to the + ADDRESS. */ + int (*baseclass_offset) (struct type * type, int index, + value_ptr * arg1p, char *valaddr, + CORE_ADDR address, int offset); + }; @@ -154,6 +163,8 @@ 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 baseclass_offset (struct type *type, int index, value_ptr * arg1p, + char *valaddr, CORE_ADDR address, int offset); #endif -- cgit v1.2.1