This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Is there a way to unset inferior-tty?
- From: Marc Khouzam <marc dot khouzam at ericsson dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>, Pedro Alves <palves at redhat dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Sat, 2 Jul 2016 14:04:39 +0000
- Subject: RE: Is there a way to unset inferior-tty?
- Authentication-results: sourceware.org; auth=none
- References: <E59706EF8DB1D147B15BECA3322E4BDC22AF1378 at eusaamb103 dot ericsson dot se> <302246af-a394-4a76-5223-5cac924bda9a at redhat dot com>,<9560791fd070c79f7ab54e5e7b63d433 at simark dot ca>
> > I think this should just be fixed to work.
> >
> > The fix should be very similar to this:
> >
> >
> > https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=811a659a779fdf93293fe1105d99e9db171a8b68
> >
> > Thanks,
> > Pedro Alves
>
> Hi Marc,
>
> Here's a patch. If you like it I'll submit it to gdb-patches with
> ChangeLog and all.
Thanks! Might as well submit it.
In the end I moved to a more complete solution for eclipse. Right
after an inferior starts, eclipse will reset the tty to a new and
valid value; that way, if the user does a 'run', the tty will already
be properly set _and_ will direct inferior output to a valid eclipse
console.
FWIW, this also led me to automatically set the tty for an inferior
that is created using the GDB console with the 'add-inferior' command
(thanks to the =thread-group-added event). I think this will make for
an improved user experience with the GDB console in eclipse.
Marc