mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
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.
This commit is contained in:
@ -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>
|
2020-01-10 Pedro Alves <palves@redhat.com>
|
||||||
John Baldwin <jhb@FreeBSD.org>
|
John Baldwin <jhb@FreeBSD.org>
|
||||||
|
|
||||||
|
@ -71,11 +71,6 @@ register_to_value_test (struct gdbarch *gdbarch)
|
|||||||
builtin->builtin_char32,
|
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
|
/* Create a mock environment. An inferior with a thread, with a
|
||||||
process_stratum target pushed. */
|
process_stratum target pushed. */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user