From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
To: Pedro Alves <pedro@palves.net>, 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 10:54:49 -0400 [thread overview]
Message-ID: <b67ff278-6ff0-31e6-f00c-f072a1a151ce@efficios.com> (raw)
In-Reply-To: <a876b6d2-ba28-249d-1097-23ce46c07687@palves.net>
On 2022-05-05 10:38, Pedro Alves wrote:
> 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.
Pushed, thanks.
Simon
prev parent reply other threads:[~2022-05-05 14:55 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
2022-05-05 14:54 ` Simon Marchi via Gdb-patches [this message]
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=b67ff278-6ff0-31e6-f00c-f072a1a151ce@efficios.com \
--to=gdb-patches@sourceware.org \
--cc=pedro@palves.net \
--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