From: Jan Vrany <jan@vrany.io>
To: Simon Marchi <simark@simark.ca>, Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v2] gdb/testsuite: add support for running tests using QEMU
Date: Wed, 04 Nov 2026 10:44:01 +0000 [thread overview]
Message-ID: <62517c3a204053c2ef80e7a1ae2f3c788ca2ccf5.camel@vrany.io> (raw)
In-Reply-To: <932ebaa5-9fe6-48bc-b439-0455bf65f22c@simark.ca>
On Tue, 2026-11-03 at 21:36 -0500, Simon Marchi wrote:
>
>
> On 2026-11-03 15:43, Jan Vrany wrote:
> > On Tue, 2026-11-03 at 15:34 -0500, Simon Marchi wrote:
> > > On 11/3/26 2:34 PM, Tom Tromey wrote:
> > > > > > > > > "Jan" == Jan Vrany <jan@vrany.io> writes:
> > > >
> > > > Jan> + set portnum [expr {1024+round(rand()*(65535-1024))}]
> > > > [...]
> > > >
> > > > I wonder if you considered using unix domain sockets instead.
> > > >
> > > > https://qemu-project.gitlab.io/qemu/system/gdb.html#using-unix-sockets
> > > >
> > > > With these I think you could pick the names, and more or less avoid
> > > > clashes by construction.
> > >
> > > I suppose that this board file is not relevant for Windows? If so, then
> > > it would be a good idea to try using unix sockets.
> >
> > I do not think we can use sockets here as this patch is using user-mode qemu,
> > not system qemu.
>
> Seems to work by just passing a path to -g:
Oh, I did not know that! It seems to be only documented couple years ago. And
it supports PID placeholder. I'll rewrite it to use sockets in next version.
Support for Windows hosts can come later if needed.
Thanks!
prev parent reply other threads:[~2026-11-04 10:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 13:59 Jan Vrany
2026-11-03 12:37 ` [PING] " Jan Vrany
2026-11-03 16:27 ` Simon Marchi
2026-11-03 19:34 ` Tom Tromey
2026-11-03 20:34 ` Simon Marchi
2026-11-03 20:43 ` Jan Vrany
2026-11-04 2:36 ` Simon Marchi
2026-11-04 10:44 ` Jan Vrany [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=62517c3a204053c2ef80e7a1ae2f3c788ca2ccf5.camel@vrany.io \
--to=jan@vrany.io \
--cc=gdb-patches@sourceware.org \
--cc=simark@simark.ca \
--cc=tom@tromey.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