gdbarch-selftests.c: No longer error out if debugging something
authorPedro Alves <palves@redhat.com>
Fri, 10 Jan 2020 20:06:10 +0000 (20:06 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 10 Jan 2020 20:06:10 +0000 (20:06 +0000)
Since each inferior has its own target stack, the stratum condition
for the "error out if debugging something" check is always false.

gdb/ChangeLog:
2020-01-10  Pedro Alves  <palves@redhat.com>

* gdbarch-selftests.c (register_to_value_test): Remove "target
already pushed" check.

gdb/ChangeLog
gdb/gdbarch-selftests.c

index 5218bbd58b55a9f2ab005d3e90d5b22de0470129..d6769667dceb29834e3398395403d1b63bf16612 100644 (file)
@@ -1,3 +1,8 @@
+2020-01-10  Pedro Alves  <palves@redhat.com>
+
+       * gdbarch-selftests.c (register_to_value_test): Remove "target
+       already pushed" check.
+
 2020-01-10  Pedro Alves  <palves@redhat.com>
            John Baldwin  <jhb@FreeBSD.org>
 
index 031d40f4ef05618a1f1d2a646b84bf9198434d77..47f4d99d18c9211f03d4066d72c6dc2ba0bb72f2 100644 (file)
@@ -71,11 +71,6 @@ register_to_value_test (struct gdbarch *gdbarch)
       builtin->builtin_char32,
     };
 
-  /* Error out if debugging something, because we're going to push the
-     test target, which would pop any existing target.  */
-  if (current_top_target ()->stratum () >= process_stratum)
-   error (_("target already pushed"));
-
   /* Create a mock environment.  An inferior with a thread, with a
      process_stratum target pushed.  */