mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
the domain type. (gnuv3_make_method_ptr): Likewise.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user