gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / gdb / regcache-dump.c
index 10f6e49a786dc964776a34cf48fb140b7544da6d..eebca61474a9cef79a8d6708d5a7d45f3a0b8152 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1986-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1986-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -236,7 +236,7 @@ regcache_print (const char *args, enum regcache_dump_what what_to_dump)
   std::unique_ptr<regcache> regs;
   gdbarch *gdbarch;
 
-  if (target_has_registers)
+  if (target_has_registers ())
     gdbarch = get_current_regcache ()->arch ();
   else
     gdbarch = target_gdbarch ();
@@ -257,7 +257,7 @@ regcache_print (const char *args, enum regcache_dump_what what_to_dump)
       {
        auto dump_pseudo = (what_to_dump == regcache_dump_cooked);
 
-       if (target_has_registers)
+       if (target_has_registers ())
          dump.reset (new register_dump_regcache (get_current_regcache (),
                                                  dump_pseudo));
        else
This page took 0.033071 seconds and 4 git commands to generate.