gold won't build with gcc-9
[binutils-gdb.git] / gdb / gdbarch-selftests.c
index af97c7de2f0348932bcf83f39c56629040e84343..9859e4fdddaf0b38c4e15c797ba6f177244f9c49 100644 (file)
@@ -72,7 +72,7 @@ register_to_value_test (struct gdbarch *gdbarch)
 
   /* Error out if debugging something, because we're going to push the
      test target, which would pop any existing target.  */
-  if (current_top_target ()->to_stratum >= process_stratum)
+  if (current_top_target ()->stratum () >= process_stratum)
    error (_("target already pushed"));
 
   /* Create a mock environment.  An inferior with a thread, with a