mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 01:35:39 +02:00
[304380] Line breakpoints are set with a simple file namein Cygwin session; fails to support same named files
This commit is contained in:
parent
c29c05bc25
commit
1941123178
1 changed files with 31 additions and 0 deletions
|
@ -59,6 +59,8 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
|
|||
private IMILaunchConfigurationComponent fSolibBlock;
|
||||
|
||||
private boolean fIsInitializing = false;
|
||||
|
||||
private Button fBreakpointsFullPath;
|
||||
|
||||
public void createControl( Composite parent ) {
|
||||
Composite comp = new Composite( parent, SWT.NONE );
|
||||
|
@ -124,6 +126,14 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
|
|||
}
|
||||
}
|
||||
fProtocolCombo.select( index );
|
||||
|
||||
boolean useFullPath = IMILaunchConfigurationConstants.DEBUGGER_FULLPATH_BREAKPOINTS_DEFAULT;
|
||||
try {
|
||||
useFullPath = configuration.getAttribute(IMILaunchConfigurationConstants.ATTR_DEBUGGER_FULLPATH_BREAKPOINTS, useFullPath);
|
||||
}
|
||||
catch (CoreException e) {}
|
||||
fBreakpointsFullPath.setSelection(useFullPath);
|
||||
|
||||
setInitializing( false );
|
||||
}
|
||||
|
||||
|
@ -139,6 +149,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
|
|||
str = "mi"; //$NON-NLS-1$
|
||||
}
|
||||
configuration.setAttribute( IMILaunchConfigurationConstants.ATTR_DEBUGGER_PROTOCOL, str );
|
||||
configuration.setAttribute( IMILaunchConfigurationConstants.ATTR_DEBUGGER_FULLPATH_BREAKPOINTS, fBreakpointsFullPath.getSelection() );
|
||||
if ( fSolibBlock != null )
|
||||
fSolibBlock.performApply( configuration );
|
||||
}
|
||||
|
@ -270,7 +281,13 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
|
|||
gd.horizontalSpan = 3;
|
||||
gd.widthHint = 200;
|
||||
label.setLayoutData( gd );
|
||||
|
||||
createProtocolCombo( subComp );
|
||||
|
||||
createBreakpointFullPathName(subComp);
|
||||
GridData gd2 = new GridData();
|
||||
gd2.horizontalSpan = 3;
|
||||
fBreakpointsFullPath.setLayoutData(gd2);
|
||||
}
|
||||
|
||||
public void createSolibTab( TabFolder tabFolder ) {
|
||||
|
@ -331,4 +348,18 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
|
|||
}
|
||||
} );
|
||||
}
|
||||
|
||||
protected void createBreakpointFullPathName( Composite parent ) {
|
||||
fBreakpointsFullPath = createCheckButton( parent, MIUIMessages.getString( "StandardGDBDebuggerPage.14" ) ); //$NON-NLS-1$
|
||||
fBreakpointsFullPath.addSelectionListener( new SelectionListener() {
|
||||
public void widgetDefaultSelected( SelectionEvent e ) {
|
||||
if ( !isInitializing() )
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
public void widgetSelected( SelectionEvent e ) {
|
||||
if ( !isInitializing() )
|
||||
updateLaunchConfigurationDialog();
|
||||
}
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue