[RFA] Make attach_command exception-safe

Daniel Jacobowitz drow@false.org
Fri Aug 29 15:23:00 GMT 2008


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



More information about the Gdb-patches mailing list