mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Apply the breakpoint's condition changes to the associated gdb breakpoint only if there are differences.
This commit is contained in:
parent
5e2af5b84f
commit
0b13d54499
2 changed files with 19 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-11-12 Mikhail Khodjaiants
|
||||
Apply the breakpoint's condition changes to the associated gdb breakpoint
|
||||
only if there are differences.
|
||||
* CBreakpointManager.java
|
||||
|
||||
2004-11-12 Mikhail Khodjaiants
|
||||
Compare breakpoint source handles as pathes.
|
||||
* CDIDebugModel.java
|
||||
|
|
|
@ -353,7 +353,7 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
|
|||
String condition = breakpoint.getCondition();
|
||||
String oldCondition = ( delta != null ) ? delta.getAttribute( ICBreakpoint.CONDITION, "" ) : condition; //$NON-NLS-1$
|
||||
String[] newThreadIs = getThreadNames( breakpoint );
|
||||
if ( enabled != oldEnabled ) {
|
||||
if ( enabled != oldEnabled && enabled != cdiBreakpoint.isEnabled() ) {
|
||||
DebugPlugin.getDefault().asyncExec( new Runnable() {
|
||||
public void run() {
|
||||
try {
|
||||
|
@ -366,6 +366,7 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
|
|||
}
|
||||
if ( ignoreCount != oldIgnoreCount || condition.compareTo( oldCondition ) != 0 || areThreadFiltersChanged( newThreadIs, cdiBreakpoint ) ) {
|
||||
final ICDICondition cdiCondition = cdiTarget.createCondition( ignoreCount, condition, newThreadIs );
|
||||
if ( ! cdiCondition.equals( cdiBreakpoint.getCondition() ) ) {
|
||||
DebugPlugin.getDefault().asyncExec( new Runnable() {
|
||||
public void run() {
|
||||
try {
|
||||
|
@ -377,9 +378,13 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
|
|||
} );
|
||||
}
|
||||
}
|
||||
}
|
||||
catch( CoreException e ) {
|
||||
requestFailed( MessageFormat.format( InternalDebugCoreMessages.getString( "CBreakpointManager.4" ), new String[] { e.getMessage() } ), e ); //$NON-NLS-1$
|
||||
}
|
||||
catch( CDIException e ) {
|
||||
requestFailed( MessageFormat.format( InternalDebugCoreMessages.getString( "CBreakpointManager.4" ), new String[] { e.getMessage() } ), e ); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
private void handleBreakpointCreatedEvent( final ICDIBreakpoint cdiBreakpoint ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue