From: Simon Marchi <simark@simark.ca>
To: Jan Vrany <jan@vrany.io>, gdb-patches@sourceware.org
Subject: Re: [PATCH v3] gdb/testsuite: add support for running tests using QEMU
Date: Thu, 19 Nov 2026 10:46:07 -0500 [thread overview]
Message-ID: <b2468912-4e7f-45f9-beb1-caafc4d9eec0@simark.ca> (raw)
In-Reply-To: <20261110232643.2945321-1-jan@vrany.io>
On 11/10/26 6:29 PM, Jan Vrany wrote:
> Below is a v3 of patch adding support for running tests using QEMU.
>
> The v1 submission is here:
>
> https://inbox.sourceware.org/gdb-patches/20261026100153.1789950-1-jan@vrany.io/
>
> The v2 submission is here:
>
> https://inbox.sourceware.org/gdb-patches/20261027135827.3868769-1-jan@vrany.io/
>
> Changes in v3:
>
> * This version *does not* use unix sockets. I tried but quickly run
> into a issues with limited path length and socket cleanups so
> I left it for later.
>
> * Updated the comment in qemu-user.exp and added example with QEMU_FLAGS.
>
> * Fixed a number of TCL coding issues pointed out by Simon
>
> * If given --target is not yet supported by qemu-user board, do not
> make it hard error as long as both QEMU and CROSS are supported
> (if both are provided, --target value is effectively ignored).
>
> * Extracted qemu cleanup code to new function - qemu_reap - and use it.
> Since I decided to use it also in case QEMU terminates immediately,
> I dropped the warning about failing to close QEMU (since in that case,
> channel would be already closed).
>
> * Drop handling of CFLAGS_FOR_TARGET environment (when I tried, I did not
> realize I had to put it into RUNTESTFLAGS in orde to make it work without
> extra code).
>
> * Use get_portnum instead of generating port randomly.
>
> * Consistently prefix all log messages / warnings with "qemu-user:" to
> ease debugging.
Thanks, I think that looks good.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Let me know if you intend to do the "set sysroot" thing to avoid reading
the libraries though qemu, if not I'll try.
Simon
next prev parent reply other threads:[~2026-11-19 15:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 23:29 Jan Vrany
2026-11-19 10:41 ` [PING] " Jan Vrany
2026-11-19 15:46 ` Simon Marchi [this message]
2026-11-20 10:44 ` Jan Vrany
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=b2468912-4e7f-45f9-beb1-caafc4d9eec0@simark.ca \
--to=simark@simark.ca \
--cc=gdb-patches@sourceware.org \
--cc=jan@vrany.io \
/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