public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdbserver stdout/stderr redirection (or tty)
@ 2014-10-02 13:46 Cleber Rosa
  2014-10-04 18:59 ` Doug Evans
  0 siblings, 1 reply; 2+ messages in thread
From: Cleber Rosa @ 2014-10-02 13:46 UTC (permalink / raw)
  To: gdb

Hi all,

Short story:

While I'm aware that gdbserver is not inteded to be a "daemonized" 
version of gdb itself, I wonder if the absence of input/output 
redirection[1] in gdbserver can be considered a limitation/bug and what 
is the interest level in having that limitation/bug addressed.

Long story:

We're working on a test framework that already provides some initial 
integration with GDB[2].

The architecture used is based on gdbserver+gdb (speaking MI). It starts 
a gdbserver per debugged process, and a gdb process to interact with it 
using MI. If an a noteworthy event occurs, it disconnects gdb from the 
gdbserver, and allows the use to connect to the gdbserver.

This architecture was chosen because a very important requirement is 
allowing users to use *regular*, *unmodified* gdb binaries for this 
interaction.

While this architecture works OK, it does not provide one fundamental 
feature: getting the output (and less importantly for now, input) right.

References:

1 - 
https://sourceware.org/gdb/current/onlinedocs/gdb/Input_002fOutput.html#Input_002fOutput
2 - http://avocado-framework.readthedocs.org/en/latest/DebuggingWithGDB.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gdbserver stdout/stderr redirection (or tty)
  2014-10-02 13:46 gdbserver stdout/stderr redirection (or tty) Cleber Rosa
@ 2014-10-04 18:59 ` Doug Evans
  0 siblings, 0 replies; 2+ messages in thread
From: Doug Evans @ 2014-10-04 18:59 UTC (permalink / raw)
  To: Cleber Rosa; +Cc: gdb

On Thu, Oct 2, 2014 at 6:46 AM, Cleber Rosa <crosa@redhat.com> wrote:
> Hi all,
>
> Short story:
>
> While I'm aware that gdbserver is not inteded to be a "daemonized" version
> of gdb itself, I wonder if the absence of input/output redirection[1] in
> gdbserver can be considered a limitation/bug and what is the interest level
> in having that limitation/bug addressed.
>
> Long story:
>
> We're working on a test framework that already provides some initial
> integration with GDB[2].
>
> The architecture used is based on gdbserver+gdb (speaking MI). It starts a
> gdbserver per debugged process, and a gdb process to interact with it using
> MI. If an a noteworthy event occurs, it disconnects gdb from the gdbserver,
> and allows the use to connect to the gdbserver.
>
> This architecture was chosen because a very important requirement is
> allowing users to use *regular*, *unmodified* gdb binaries for this
> interaction.
>
> While this architecture works OK, it does not provide one fundamental
> feature: getting the output (and less importantly for now, input) right.
>
> References:
>
> 1 -
> https://sourceware.org/gdb/current/onlinedocs/gdb/Input_002fOutput.html#Input_002fOutput
> 2 - http://avocado-framework.readthedocs.org/en/latest/DebuggingWithGDB.html

Hi.
I think there is interest in making this work better,
but it would be good to get more details on the capabilities you need.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-04 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-02 13:46 gdbserver stdout/stderr redirection (or tty) Cleber Rosa
2014-10-04 18:59 ` Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).