]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/s390-linux-nat.c
gdb: remove current_top_target function
[thirdparty/binutils-gdb.git] / gdb / s390-linux-nat.c
index d493843410a83e1a37070609f6cc7fd52d4d40ea..41b50ce4800346bdbc301d1114ab1f4976f413c2 100644 (file)
@@ -1002,7 +1002,7 @@ s390_linux_nat_target::read_description ()
      that mode, report s390 architecture with 64-bit GPRs.  */
 #ifdef __s390x__
   {
-    CORE_ADDR hwcap = linux_get_hwcap (current_top_target ());
+    CORE_ADDR hwcap = linux_get_hwcap (current_inferior ()->top_target ());
 
     have_regset_tdb = (hwcap & HWCAP_S390_TE)
       && check_regset (tid, NT_S390_TDB, s390_sizeof_tdbregset);