This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Initialize terminal_state to terminal_is_ours
- From: Pedro Alves <palves at redhat dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>, gdb-patches at sourceware dot org
- Date: Wed, 29 Jul 2015 00:24:45 +0100
- Subject: Re: [PATCH] Initialize terminal_state to terminal_is_ours
- Authentication-results: sourceware.org; auth=none
- References: <1438107473-10965-1-git-send-email-patrick at parcs dot ath dot cx>
On 07/28/2015 07:17 PM, Patrick Palka wrote:
> Right now this variable is initialized to 0 i.e. terminal_is_inferior
> and does not get set to terminal_is_ours until target_terminal_init() is
> called. This function only gets called when an inferiro is first
> created. In the meantime however, terminal_state would wrongly remain
> terminal_is_inferior.
>
> Tested on x86_64 Debian Stretch -- native, gdbserver and
> extended-gdbserver.
>
> gdb/ChangeLog:
>
> * target.c (terminal_state): Initialize to terminal_is_ours.
Whoops. OK.
Thanks,
Pedro Alves