1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52: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 try
{ {
bm.deleteBreakpoints( cdiBreakpoints ); bm.deleteBreakpoints( cdiBreakpoints );
}
catch( CDIException e )
{
logError( e );
}
try
{
Iterator it = getBreakpoints().keySet().iterator(); Iterator it = getBreakpoints().keySet().iterator();
while( it.hasNext() ) while( it.hasNext() )
{ {
@ -1102,11 +1109,7 @@ public class CDebugTarget extends CDebugElement
} }
catch( CoreException ce ) catch( CoreException ce )
{ {
requestFailed( "Operation failed. Reason: ", ce ); logError( ce );
}
catch( CDIException e )
{
requestFailed( "Operation failed. Reason: ", e );
} }
} }
} }