aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-v3-abi.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-09-08 18:53:34 +0000
committerDaniel Jacobowitz <drow@false.org>2010-09-08 18:53:34 +0000
commit561d38252c8b1c7a006eb58f079d3d650bee5743 (patch)
tree66e224dee81b4056df2e60e74d506b7ca4132727 /gdb/gnu-v3-abi.c
parent731ca54a85292ebb897a0d01efefe7f6320279d9 (diff)
downloadgdb-561d38252c8b1c7a006eb58f079d3d650bee5743.zip
gdb-561d38252c8b1c7a006eb58f079d3d650bee5743.tar.gz
gdb-561d38252c8b1c7a006eb58f079d3d650bee5743.tar.bz2
* gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
the domain type. (gnuv3_make_method_ptr): Likewise.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r--gdb/gnu-v3-abi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 571b52a..f9d4f49 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -627,8 +627,7 @@ gnuv3_print_method_ptr (const gdb_byte *contents,
static int
gnuv3_method_ptr_size (struct type *type)
{
- struct type *domain_type = check_typedef (TYPE_DOMAIN_TYPE (type));
- struct gdbarch *gdbarch = get_type_arch (domain_type);
+ struct gdbarch *gdbarch = get_type_arch (type);
return 2 * TYPE_LENGTH (builtin_type (gdbarch)->builtin_data_ptr);
}
@@ -639,8 +638,7 @@ static void
gnuv3_make_method_ptr (struct type *type, gdb_byte *contents,
CORE_ADDR value, int is_virtual)
{
- struct type *domain_type = check_typedef (TYPE_DOMAIN_TYPE (type));
- struct gdbarch *gdbarch = get_type_arch (domain_type);
+ struct gdbarch *gdbarch = get_type_arch (type);
int size = TYPE_LENGTH (builtin_type (gdbarch)->builtin_data_ptr);
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);