1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Cleanup the breakpoints properly when the gdb session is terminated because of an error.

This commit is contained in:
Mikhail Khodjaiants 2002-09-30 22:25:39 +00:00
parent 22c5a65551
commit ff7d4412e4

View file

@ -1093,6 +1093,13 @@ public class CDebugTarget extends CDebugElement
try
{
bm.deleteBreakpoints( cdiBreakpoints );
}
catch( CDIException e )
{
logError( e );
}
try
{
Iterator it = getBreakpoints().keySet().iterator();
while( it.hasNext() )
{
@ -1102,11 +1109,7 @@ public class CDebugTarget extends CDebugElement
}
catch( CoreException ce )
{
requestFailed( "Operation failed. Reason: ", ce );
}
catch( CDIException e )
{
requestFailed( "Operation failed. Reason: ", e );
logError( ce );
}
}
}