]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/corelow.c
gdb: remove target_gdbarch
[thirdparty/binutils-gdb.git] / gdb / corelow.c
index c0b26239fd9a0c12635a722a46021d6369d6ae50..4da5e4fa5d461c8602958dd83891aa19887ac754 100644 (file)
@@ -1365,7 +1365,7 @@ bool
 core_target::fetch_memtags (CORE_ADDR address, size_t len,
                            gdb::byte_vector &tags, int type)
 {
-  struct gdbarch *gdbarch = target_gdbarch ();
+  gdbarch *gdbarch = current_inferior ()->arch ();
 
   /* Make sure we have a way to decode the memory tag notes.  */
   if (!gdbarch_decode_memtag_section_p (gdbarch))