mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 16:55:38 +02:00
Moving the shared library search paths block to mi UI.
This commit is contained in:
parent
b3898357e2
commit
22e130fbe7
10 changed files with 29 additions and 16 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2003-11-10 Mikhail Khodjaiants
|
||||||
|
Moving the shared library search paths block to mi UI.
|
||||||
|
* ICDTLaunchConfigurationConstants.java: moved the 'ATTR_DEBUGGER_SOLIB_PATH' attribute to mi.
|
||||||
|
|
||||||
2003-09-10 Mikhail Khodjaiants
|
2003-09-10 Mikhail Khodjaiants
|
||||||
If breakpoint is a line breakpoint check if source locator contains this file
|
If breakpoint is a line breakpoint check if source locator contains this file
|
||||||
instead of container project.
|
instead of container project.
|
||||||
|
|
|
@ -101,11 +101,6 @@ public interface ICDTLaunchConfigurationConstants {
|
||||||
*/
|
*/
|
||||||
// public static final String ATTR_DEBUGGER_DEFERRED_BREAKPOINTS = CDT_LAUNCH_ID + ".DEFERRED_BREAKPOINTS"; //$NON-NLS-1$
|
// public static final String ATTR_DEBUGGER_DEFERRED_BREAKPOINTS = CDT_LAUNCH_ID + ".DEFERRED_BREAKPOINTS"; //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
|
||||||
* Launch configuration attribute key. The value is a List (array of String) directories for the search path of shared libraries.
|
|
||||||
*/
|
|
||||||
public static final String ATTR_DEBUGGER_SOLIB_PATH = CDT_LAUNCH_ID + ".SOLIB_PATH"; //$NON-NLS-1$
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Launch configuration attribute value. The key is ATTR_DEBUGGER_START_MODE.
|
* Launch configuration attribute value. The key is ATTR_DEBUGGER_START_MODE.
|
||||||
* Startup debugger running the program.
|
* Startup debugger running the program.
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
|
2003-11-10 Mikhail Khodjaiants
|
||||||
|
Moving the shared library search paths block to mi UI.
|
||||||
|
* IMILaunchConfigurationConstants.java: added the 'ATTR_DEBUGGER_SOLIB_PATH' attribute.
|
||||||
|
|
||||||
2003-09-11 Alain Magloire
|
2003-09-11 Alain Magloire
|
||||||
|
|
||||||
Fix to inf shared parsing.
|
Fix to info shared parsing.
|
||||||
|
|
||||||
* src/org/eclipse/cdt/debug/mi/core/outpu/MIInfoSharedLibary.java
|
* src/org/eclipse/cdt/debug/mi/core/outpu/MIInfoSharedLibary.java
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ import java.io.IOException;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
|
||||||
import org.eclipse.cdt.debug.core.ICDebugger;
|
import org.eclipse.cdt.debug.core.ICDebugger;
|
||||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDISession;
|
import org.eclipse.cdt.debug.core.cdi.ICDISession;
|
||||||
|
@ -37,7 +36,7 @@ public class GDBDebugger implements ICDebugger {
|
||||||
// it seems to be a real problem on many gdb platform
|
// it seems to be a real problem on many gdb platform
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
List p = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, Collections.EMPTY_LIST);
|
List p = config.getAttribute(IMILaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, Collections.EMPTY_LIST);
|
||||||
if (p.size() > 0) {
|
if (p.size() > 0) {
|
||||||
String[] oldPaths = mgr.getSharedLibraryPaths();
|
String[] oldPaths = mgr.getSharedLibraryPaths();
|
||||||
String[] paths = new String[oldPaths.length + p.size()];
|
String[] paths = new String[oldPaths.length + p.size()];
|
||||||
|
|
|
@ -16,7 +16,6 @@ import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
|
||||||
import org.eclipse.cdt.debug.core.ICDebugger;
|
import org.eclipse.cdt.debug.core.ICDebugger;
|
||||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDISession;
|
import org.eclipse.cdt.debug.core.cdi.ICDISession;
|
||||||
|
@ -41,7 +40,7 @@ public class GDBServerDebugger implements ICDebugger {
|
||||||
// ignore this one, cause problems for many gdb.
|
// ignore this one, cause problems for many gdb.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
List p = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, new ArrayList(1));
|
List p = config.getAttribute(IMILaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, new ArrayList(1));
|
||||||
if (p.size() > 0) {
|
if (p.size() > 0) {
|
||||||
String[] paths = (String[])p.toArray(new String[0]);
|
String[] paths = (String[])p.toArray(new String[0]);
|
||||||
mgr.setSharedLibraryPaths(paths);
|
mgr.setSharedLibraryPaths(paths);
|
||||||
|
|
|
@ -28,4 +28,9 @@ public interface IMILaunchConfigurationConstants {
|
||||||
* Launch configuration attribute key. Boolean value to set the 'stop on shared library events' flag of the debugger.
|
* Launch configuration attribute key. Boolean value to set the 'stop on shared library events' flag of the debugger.
|
||||||
*/
|
*/
|
||||||
public static final String ATTR_DEBUGGER_STOP_ON_SOLIB_EVENTS = MIPlugin.getUniqueIdentifier() + ".STOP_ON_SOLIB_EVENTS"; //$NON-NLS-1$
|
public static final String ATTR_DEBUGGER_STOP_ON_SOLIB_EVENTS = MIPlugin.getUniqueIdentifier() + ".STOP_ON_SOLIB_EVENTS"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Launch configuration attribute key. The value is a List (array of String) of directories for the search path of shared libraries.
|
||||||
|
*/
|
||||||
|
public static final String ATTR_DEBUGGER_SOLIB_PATH = MIPlugin.getUniqueIdentifier() + ".SOLIB_PATH"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2003-11-10 Mikhail Khodjaiants
|
||||||
|
Moving the shared library search paths block to mi UI.
|
||||||
|
* SolibSearchPathBlock.java: new
|
||||||
|
* GDBSolibBlock.java
|
||||||
|
|
||||||
2003-09-11 Mikhail Khodjaiants
|
2003-09-11 Mikhail Khodjaiants
|
||||||
Added the 'org.eclipse.cdt.debug.mi.internal.ui.dialogfields' package.
|
Added the 'org.eclipse.cdt.debug.mi.internal.ui.dialogfields' package.
|
||||||
* CheckedListDialogField.java: new
|
* CheckedListDialogField.java: new
|
||||||
|
|
|
@ -11,7 +11,6 @@ import java.util.Observer;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
||||||
import org.eclipse.cdt.debug.mi.core.IMILaunchConfigurationConstants;
|
import org.eclipse.cdt.debug.mi.core.IMILaunchConfigurationConstants;
|
||||||
import org.eclipse.cdt.debug.ui.SolibSearchPathBlock;
|
|
||||||
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.debug.core.ILaunchConfiguration;
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
|
|
@ -4,18 +4,18 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.eclipse.cdt.debug.ui;
|
package org.eclipse.cdt.debug.mi.internal.ui;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Observable;
|
import java.util.Observable;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
|
||||||
import org.eclipse.cdt.debug.internal.ui.PixelConverter;
|
import org.eclipse.cdt.debug.internal.ui.PixelConverter;
|
||||||
import org.eclipse.cdt.debug.internal.ui.dialogfields.DialogField;
|
import org.eclipse.cdt.debug.internal.ui.dialogfields.DialogField;
|
||||||
import org.eclipse.cdt.debug.internal.ui.dialogfields.IListAdapter;
|
import org.eclipse.cdt.debug.internal.ui.dialogfields.IListAdapter;
|
||||||
import org.eclipse.cdt.debug.internal.ui.dialogfields.LayoutUtil;
|
import org.eclipse.cdt.debug.internal.ui.dialogfields.LayoutUtil;
|
||||||
import org.eclipse.cdt.debug.internal.ui.dialogfields.ListDialogField;
|
import org.eclipse.cdt.debug.internal.ui.dialogfields.ListDialogField;
|
||||||
import org.eclipse.cdt.debug.internal.ui.dialogfields.Separator;
|
import org.eclipse.cdt.debug.internal.ui.dialogfields.Separator;
|
||||||
|
import org.eclipse.cdt.debug.mi.core.IMILaunchConfigurationConstants;
|
||||||
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.debug.core.ILaunchConfiguration;
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
@ -117,7 +117,7 @@ public class SolibSearchPathBlock extends Observable
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
fDirList.addElements( configuration.getAttribute( ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, Collections.EMPTY_LIST ) );
|
fDirList.addElements( configuration.getAttribute( IMILaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, Collections.EMPTY_LIST ) );
|
||||||
}
|
}
|
||||||
catch( CoreException e )
|
catch( CoreException e )
|
||||||
{
|
{
|
||||||
|
@ -127,14 +127,14 @@ public class SolibSearchPathBlock extends Observable
|
||||||
|
|
||||||
public void setDefaults( ILaunchConfigurationWorkingCopy configuration )
|
public void setDefaults( ILaunchConfigurationWorkingCopy configuration )
|
||||||
{
|
{
|
||||||
configuration.setAttribute( ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, Collections.EMPTY_LIST );
|
configuration.setAttribute( IMILaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, Collections.EMPTY_LIST );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void performApply( ILaunchConfigurationWorkingCopy configuration )
|
public void performApply( ILaunchConfigurationWorkingCopy configuration )
|
||||||
{
|
{
|
||||||
if ( fDirList != null )
|
if ( fDirList != null )
|
||||||
{
|
{
|
||||||
configuration.setAttribute( ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, fDirList.getElements() );
|
configuration.setAttribute( IMILaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, fDirList.getElements() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
2003-11-10 Mikhail Khodjaiants
|
||||||
|
Moving the shared library search paths block to mi UI.
|
||||||
|
* SolibSearchPathBlock.java: moved to mi UI.
|
||||||
|
|
||||||
2003-09-09 Mikhail Khodjaiants
|
2003-09-09 Mikhail Khodjaiants
|
||||||
New class - SolibSearchPathBlock. Implements the UI control block to set the shared library search path.
|
New class - SolibSearchPathBlock. Implements the UI control block to set the shared library search path.
|
||||||
* SolibSearchPathBlock.java
|
* SolibSearchPathBlock.java
|
||||||
|
|
Loading…
Add table
Reference in a new issue