diff options
author | Daniel Jacobowitz <dan@debian.org> | 2002-01-04 18:20:19 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2002-01-04 18:20:19 +0000 |
commit | d1d92341e306e9cd03ea55f30d94ec7e77376654 (patch) | |
tree | 7757382b948fbdc6ca0f69f6273f0a57fee3b530 /gdb/hpacc-abi.c | |
parent | a2d59c77282a07fb8822fb1630789c0ea7fb0e92 (diff) | |
download | gdb-d1d92341e306e9cd03ea55f30d94ec7e77376654.tar.gz |
2002-01-04 Daniel Jacobowitz <drow@mvista.com>
* 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.
Diffstat (limited to 'gdb/hpacc-abi.c')
-rw-r--r-- | gdb/hpacc-abi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/hpacc-abi.c b/gdb/hpacc-abi.c index 4dcb1c3aa62..6753cd7d865 100644 --- a/gdb/hpacc-abi.c +++ b/gdb/hpacc-abi.c @@ -287,6 +287,8 @@ hpacc_value_rtti_type (struct value *v, int *full, int *top, int *using_enc) return rtti_type; } +extern int gnuv2_baseclass_offset (struct type *type, int index, + char *valaddr, CORE_ADDR address); static void init_hpacc_ops (void) @@ -300,6 +302,11 @@ init_hpacc_ops (void) hpacc_abi_ops.is_operator_name = hpacc_is_operator_name; hpacc_abi_ops.virtual_fn_field = hpacc_virtual_fn_field; hpacc_abi_ops.rtti_type = hpacc_value_rtti_type; + /* It seems that this function is specific to GNU G++ < 3.0. + However, it is called for data members even in the HP + case (although not for member functions). + FIXME: Is that correct? */ + hpacc_abi_ops.baseclass_offset = gnuv2_baseclass_offset; } |