This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Don't call Insight hooks when not appropriate
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: andrew dot stubbs at st dot com
- Cc: gdb-patches at sourceware dot org, insight at sourceware dot org
- Date: Thu, 9 Mar 2006 20:10:56 +0100 (CET)
- Subject: Re: [PATCH] Don't call Insight hooks when not appropriate
- References: <44104BB2.6000108@st.com>
> Date: Thu, 09 Mar 2006 15:37:22 +0000
> From: Andrew STUBBS <andrew.stubbs@st.com>
>
> 2006-03-09 Andrew Stubbs <andrew.stubbs@st.com>
>
> * cli/cli-script.c (execute_user_command): Set instream to -1, not 0.
> (read_command_lines): Check instream before calling the prompt hook.
I think this usage of -1 is a bad idea.
Mark