[RFC] lib/mi-support.exp: kill SID inferior prior to reconnecting

Daniel Jacobowitz drow@false.org
Mon Jul 23 19:02:00 GMT 2007


On Fri, Jul 20, 2007 at 02:18:02PM -0700, Kevin Buettner wrote:
> Below is another SID related patch.   This patch was motivated by
> gdb.mi/mi-var-cp.exp which uses the inline test support in
> lib/mi-support.exp.   The first inline test runs okay, but subsequent
> tests run into trouble when attempting to reconnect to SID using the
> same port as the existing connection.  This patch simply kills (or
> attempts to kill) the inferior first to avoid that problem.
> 
> Comments?

I've had to do similar things for gdbserver, so I think this is
probably right.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list