From: Alexandra Petlanova Hajkova <ahajkova@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: [PATCH 0/6] Add vDefaultInferiorFd feature
Date: Mon, 27 Nov 2023 11:01:10 +0100 [thread overview]
Message-ID: <CAJVr-EMkTrz9zrV8i-mApqtLDUhsAxhCeb96bveam40PnpVipA@mail.gmail.com> (raw)
In-Reply-To: <20231117111840.2040709-1-ahajkova@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 2193 bytes --]
Ping
On Fri, Nov 17, 2023 at 12:18 PM Alexandra Hájková <ahajkova@redhat.com>
wrote:
> Currently, when GDBserver is run locally using stdio, the inferior
> is unable to read from STDIN so we can't give it any input.
> The main motivation to address this issue is to use GDB together
> with Valgrind, using vgdb --multi feature which allows to run
> Valgrind from inside GDB. Valgrind then acts as a locally run
> GDBserver that uses stdio.
>
> Add a new DefaultInferiorFd feature and the corresponding packet.
> This feature allows GDB to send, to GDBserver, the file descriptor
> numbers of the terminal to which GDB is connected. The inferior is
> then started connected to the same terminal as GDB. This allows the
> inferior run by local GDBserver to read from GDB's STDIN and write
> its output to GDB's STOUT/ERR the same way as native target.
>
>
>
> Alexandra Hájková (6):
> gdb.server/non-existing-program.exp: Use gdbserver_start.
> gdb/ser-pipe.c: Duplicate the file descriptors
> Add new vDefaultInferiorFd packet
> gdbserver/linux-low.cc: Connect the inferior to the terminal
> remote.c: Add terminal handling functions
> Add defaultinf.exp test to the testsuite
>
> gdb/doc/gdb.texinfo | 32 +++++
> gdb/remote.c | 83 +++++++++++
> gdb/ser-pipe.c | 25 ++++
> gdb/serial.c | 4 +
> gdb/serial.h | 4 +
> gdb/testsuite/gdb.server/defaultinf.c | 39 ++++++
> gdb/testsuite/gdb.server/defaultinf.exp | 59 ++++++++
> .../gdb.server/non-existing-program.exp | 54 ++-----
> gdb/testsuite/lib/gdbserver-support.exp | 62 +++++---
> gdbserver/linux-low.cc | 32 ++++-
> gdbserver/server.cc | 132 +++++++++++++++++-
> gdbserver/server.h | 12 ++
> 12 files changed, 476 insertions(+), 62 deletions(-)
> create mode 100644 gdb/testsuite/gdb.server/defaultinf.c
> create mode 100644 gdb/testsuite/gdb.server/defaultinf.exp
>
> --
> 2.41.0
>
>
[-- Attachment #2: Type: text/html, Size: 2746 bytes --]
next prev parent reply other threads:[~2023-11-27 10:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-17 11:18 Alexandra Hájková
2023-11-17 11:18 ` [PATCH 1/6] gdb.server/non-existing-program.exp: Use gdbserver_start Alexandra Hájková
2023-11-17 11:18 ` [PATCH 2/6] gdb/ser-pipe.c: Duplicate the file descriptors Alexandra Hájková
2023-12-12 19:42 ` Tom Tromey
2023-11-17 11:18 ` [PATCH 3/6] Add new vDefaultInferiorFd packet Alexandra Hájková
2023-11-17 12:09 ` Eli Zaretskii
2023-12-12 20:03 ` Tom Tromey
2023-11-17 11:18 ` [PATCH 4/6] gdbserver/linux-low.cc: Connect the inferior to the terminal Alexandra Hájková
2023-12-12 20:10 ` Tom Tromey
2023-11-17 11:18 ` [PATCH 5/6] remote.c: Add terminal handling functions Alexandra Hájková
2023-12-12 20:11 ` Tom Tromey
2023-11-17 11:18 ` [PATCH 6/6] Add defaultinf.exp test to the testsuite Alexandra Hájková
2023-11-27 10:01 ` Alexandra Petlanova Hajkova [this message]
2023-12-01 20:22 ` [PATCH 0/6] Add vDefaultInferiorFd feature Tom Tromey
2023-12-04 11:08 ` Andrew Burgess
2023-12-04 12:11 ` Alexandra Petlanova Hajkova
2023-12-05 16:00 ` Tom Tromey
2023-12-08 13:06 ` Andrew Burgess
2023-12-12 20:14 ` Tom Tromey
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=CAJVr-EMkTrz9zrV8i-mApqtLDUhsAxhCeb96bveam40PnpVipA@mail.gmail.com \
--to=ahajkova@redhat.com \
--cc=gdb-patches@sourceware.org \
/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