From: Simon Marchi <simon.marchi@polymtl.ca>
To: Sandra Loosemore <sandra@codesourcery.com>
Cc: gdb@sourceware.org
Subject: Re: remote host testing expectations re multiple simultaneous connections
Date: Sun, 28 Oct 2018 17:05:00 -0000 [thread overview]
Message-ID: <ca919f4aa7214ab24e20084c42d07ad2@polymtl.ca> (raw)
In-Reply-To: <30184147-e912-0713-d561-8131e7f629aa@codesourcery.com>
On 2018-10-26 15:21, Sandra Loosemore wrote:
> I've noticed that there are several gdb.mi tests that start GDB before
> building the test program, like this bit of code from mi-cli.exp:
>
> gdb_exit
> if [mi_gdb_start] {
> continue
> }
>
> standard_testfile basics.c
>
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}"
> executable {debug}] != "" } {
> untested "failed to compile"
> return -1
> }
>
> mi_gdb_test "-interpreter-exec" \
> {\^error,msg="-interpreter-exec: Usage: -interpreter-exec interp
> command"} \
> "-interpreter-exec with no arguments"
>
> E.g. there's an implicit expectation that when testing on a remote
> host, it can start GDB and leave it running and waiting to accept GDB
> commands while running some other shell commands to build the test
> program on a different channel to the same remote host. Is this a
> reasonable expectation that is documented somewhere? Or are the test
> cases that are structured like this just broken? :-S If the latter I
> will submit a patch to fix them.
I haven't tried remote host testing in a long time, but I would expect
the framework to be able to run multiple things concurrently. Just like
for remote target testing, we are able to spawn multiple programs, spawn
gdbserver, and attach to them.
What happens currently when you try it?
Simon
next prev parent reply other threads:[~2018-10-28 17:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-26 19:22 Sandra Loosemore
2018-10-28 17:05 ` Simon Marchi [this message]
2018-10-28 17:43 ` Sandra Loosemore
2018-10-31 12:20 ` Simon Marchi
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=ca919f4aa7214ab24e20084c42d07ad2@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb@sourceware.org \
--cc=sandra@codesourcery.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