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:
parent
22c5a65551
commit
ff7d4412e4
1 changed files with 8 additions and 5 deletions
|
@ -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 );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue