]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/findvar.c
* gdbtypes.c (make_pointer_type, make_reference_type,
[thirdparty/binutils-gdb.git] / gdb / findvar.c
index 6de0927798150bf53b1a753c411602acc4c0183e..4063bbe1903f0e7454d70d38bf297d47b24494bd 100644 (file)
@@ -173,7 +173,7 @@ extract_typed_address (const gdb_byte *buf, struct type *type)
                    _("extract_typed_address: "
                    "type is not a pointer or reference"));
 
-  return gdbarch_pointer_to_address (current_gdbarch, type, buf);
+  return gdbarch_pointer_to_address (get_type_arch (type), type, buf);
 }
 
 
@@ -242,7 +242,7 @@ store_typed_address (gdb_byte *buf, struct type *type, CORE_ADDR addr)
                    _("store_typed_address: "
                    "type is not a pointer or reference"));
 
-  gdbarch_address_to_pointer (current_gdbarch, type, buf, addr);
+  gdbarch_address_to_pointer (get_type_arch (type), type, buf, addr);
 }