diff options
author | Pedro Alves <palves@redhat.com> | 2020-01-10 20:06:10 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-01-10 20:06:10 +0000 |
commit | f4ec508eaed65ad7555858498c1cbbf420bce90a (patch) | |
tree | f2ff820aab040b2ba775111008066bdc20c503b9 | |
parent | 1dadb1dd718f93801bcca669a0fb38e3da6177b8 (diff) | |
download | gdb-f4ec508eaed65ad7555858498c1cbbf420bce90a.zip gdb-f4ec508eaed65ad7555858498c1cbbf420bce90a.tar.gz gdb-f4ec508eaed65ad7555858498c1cbbf420bce90a.tar.bz2 |
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 <palves@redhat.com>
* gdbarch-selftests.c (register_to_value_test): Remove "target
already pushed" check.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbarch-selftests.c | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5218bbd..d676966 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,4 +1,9 @@ 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> * aarch64-linux-nat.c diff --git a/gdb/gdbarch-selftests.c b/gdb/gdbarch-selftests.c index 031d40f..47f4d99 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. */ |