From: Pedro Alves <pedro@palves.net>
To: Simon Marchi <simon.marchi@efficios.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb: make regcache's cooked_write_test selftest work with native-extended-gdbserver board
Date: Thu, 5 May 2022 15:38:51 +0100 [thread overview]
Message-ID: <a876b6d2-ba28-249d-1097-23ce46c07687@palves.net> (raw)
In-Reply-To: <20220505140930.1087179-1-simon.marchi@efficios.com>
On 2022-05-05 15:09, Simon Marchi via Gdb-patches wrote:
> Running
>
> $ make check TESTS="gdb.gdb/unittest.exp" RUNTESTFLAGS="--target_board=native-extended-gdbserver"
>
> I get some failures:
>
> Running selftest regcache::cooked_write_test::i386.^M
> Self test failed: target already pushed^M
> Running selftest regcache::cooked_write_test::i386:intel.^M
> Self test failed: target already pushed^M
> Running selftest regcache::cooked_write_test::i386:x64-32.^M
> Self test failed: target already pushed^M
> Running selftest regcache::cooked_write_test::i386:x64-32:intel.^M
> Self test failed: target already pushed^M
> Running selftest regcache::cooked_write_test::i386:x86-64.^M
> Self test failed: target already pushed^M
> Running selftest regcache::cooked_write_test::i386:x86-64:intel.^M
> Self test failed: target already pushed^M
> Running selftest regcache::cooked_write_test::i8086.^M
> Self test failed: target already pushed^M
>
> This is because the native-extended-gdbserver automatically connects GDB
> to a GDBserver on startup, and therefore pushes a remote target on the
> initial inferior. cooked_write_test is currently written in a way that
> errors out if the current inferior has a process_stratum_target pushed.
>
> Rewrite it to use scoped_mock_context, so it doesn't depend on the
> current inferior (the current one upon entering the function).
>
> Change-Id: I0357f989eacbdecc4bf88b043754451b476052ad
OK.
next prev parent reply other threads:[~2022-05-05 14:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-05 14:09 Simon Marchi via Gdb-patches
2022-05-05 14:38 ` Pedro Alves [this message]
2022-05-05 14:54 ` Simon Marchi via Gdb-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a876b6d2-ba28-249d-1097-23ce46c07687@palves.net \
--to=pedro@palves.net \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox