This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Make attach_command exception-safe
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 29 Aug 2008 10:24:18 -0400
- Subject: Re: [RFA] Make attach_command exception-safe
- References: <200808291110.43091.vladimir@codesourcery.com>
On Fri, Aug 29, 2008 at 07:10:42AM +0000, Vladimir Prus wrote:
>
> When attach_command executes, it might disable stdin. It further might
> throw, and does not enable stdin in that case. For CLI case, top-level
> event loop will catch the exception and enable stdin. For MI case, MI
> interpreter catches the exception in order to print the error message,
> and of course it has no idea about any stdin disabling.
>
> This patch makes attach_command exception-safe, enabling stdin on
> throw.
>
> OK?
OK.
> ChangeLog.csl | 6 ++++++
Not that bit :-)
--
Daniel Jacobowitz
CodeSourcery