From 561d38252c8b1c7a006eb58f079d3d650bee5743 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 8 Sep 2010 18:53:34 +0000 Subject: [PATCH] * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use the domain type. (gnuv3_make_method_ptr): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/gnu-v3-abi.c | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 17a1077d40f..a31bfd5aeaa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-09-08 Daniel Jacobowitz + + * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use + the domain type. + (gnuv3_make_method_ptr): Likewise. + 2010-09-08 Tom Tromey * breakpoint.c (create_breakpoint): Add missing _(). diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index 571b52a8880..f9d4f49d56b 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); -- 2.30.2