This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix restoring of inferior terminal settings
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 22 Aug 2018 11:12:33 -0400
- Subject: Re: [PATCH] Fix restoring of inferior terminal settings
- References: <20180724021643.16041-1-simon.marchi@polymtl.ca> <87bmavystx.fsf@tromey.com>
On 2018-07-25 16:16, Tom Tromey wrote:
"Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
Simon> I noticed that the child_terminal_save_inferior function was not
used
Simon> since the commit f6ac5f3d63e0 ("Convert struct target_ops to
C++"). I
Simon> was able to make a little test program to illustrate the problem
(see
Simon> test case).
Simon> I think we're just missing the override of the
terminal_save_inferior
Simon> method in inf_child_target (along with the other
terminal-related
Simon> methods).
Simon> Instead of creating a new test, I thought that gdb.base/term.exp
was a
Simon> good candidate for testing that gdb restores properly the
inferior's
Simon> terminal settings.
Thanks, this patch looks good to me.
Thanks, I pushed it.
I wonder if this is related to the suspend bug that Tom de Vries
referred to.
I don't know, I have seen a few cases of GDB getting suspended like
that, especially in error cases. I think it's more that we miss calling
target_terminal::{ours,ours_for_output} in these situations.
Simon