From f4ec508eaed65ad7555858498c1cbbf420bce90a Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 10 Jan 2020 20:06:10 +0000 Subject: [PATCH] gdbarch-selftests.c: No longer error out if debugging something 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 * gdbarch-selftests.c (register_to_value_test): Remove "target already pushed" check. --- gdb/ChangeLog | 5 +++++ gdb/gdbarch-selftests.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5218bbd58b5..d6769667dce 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-01-10 Pedro Alves + + * gdbarch-selftests.c (register_to_value_test): Remove "target + already pushed" check. + 2020-01-10 Pedro Alves John Baldwin diff --git a/gdb/gdbarch-selftests.c b/gdb/gdbarch-selftests.c index 031d40f4ef0..47f4d99d18c 100644 --- a/gdb/gdbarch-selftests.c +++ b/gdb/gdbarch-selftests.c @@ -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. */ -- 2.30.2