]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/printcmd.c
gdb: Use passed gdbarch instead of calling current_inferior
[thirdparty/binutils-gdb.git] / gdb / printcmd.c
index 5635f60531419c974ec884153867e0687ddc1256..4edbd458e4d48c545b9fce57c54aff518fb8dd9a 100644 (file)
@@ -1132,7 +1132,7 @@ do_examine (struct format_data fmt, struct gdbarch *gdbarch, CORE_ADDR addr)
            = value_from_ulongest (builtin_type (gdbarch)->builtin_data_ptr,
                                   tag_laddr);
 
-         if (gdbarch_tagged_address_p (current_inferior ()->arch  (), v_addr))
+         if (gdbarch_tagged_address_p (gdbarch, v_addr))
            {
              /* Fetch the allocation tag.  */
              struct value *tag