Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] change to project/debugger in launch

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.launch/ChangeLog,v
retrieving revision 1.3
diff -u -r1.3 ChangeLog
--- ChangeLog	4 Nov 2002 20:01:11 -0000	1.3
+++ ChangeLog	4 Nov 2002 20:02:39 -0000
@@ -1,4 +1,9 @@
 2002-11-04 David Inglis
+	* src/.../launch/ui/CDebuggerTab.java
+	* src/.../launch/ui/CMainTab.java
+	change "local" to "native" and support "*" as a wildcard for platform.
+	
+2002-11-04 David Inglis
 	* src/.../launch/internal/ui/LocalCLaunchCOnfigurationTabGroup.java
 	don't filter tab list based on mode since the configuration is shared with debug mode.

Index: src/org/eclipse/cdt/launch/ui/CDebuggerTab.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java,v
retrieving revision 1.15
diff -u -r1.15 CDebuggerTab.java
--- src/org/eclipse/cdt/launch/ui/CDebuggerTab.java	4 Nov 2002 18:29:31 -0000	1.15
+++ src/org/eclipse/cdt/launch/ui/CDebuggerTab.java	4 Nov 2002 20:02:39 -0000
@@ -106,9 +106,9 @@
 			if (debugConfigs[i].supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN)
 				|| debugConfigs[i].supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_ATTACH) ) {
 				String supported[] = debugConfigs[i].getPlatforms();
-				boolean isLocal = platform.equals(BootLoader.getOS());
+				boolean isNative = platform.equals(BootLoader.getOS());
 				for (int j = 0; j < supported.length; j++) {
-					if (supported[j].equalsIgnoreCase(platform) || (isLocal && supported[j].equalsIgnoreCase("local"))) {
+					if (supported[j].equalsIgnoreCase(platform) || (isNative && supported[j].equalsIgnoreCase("native"))) {
 						fDCombo.add(debugConfigs[i].getName());
 						fDCombo.setData(Integer.toString(x), debugConfigs[i]);
 						if (selection.equals(debugConfigs[i].getID())) {
Index: src/org/eclipse/cdt/launch/ui/CMainTab.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CMainTab.java,v
retrieving revision 1.9
diff -u -r1.9 CMainTab.java
--- src/org/eclipse/cdt/launch/ui/CMainTab.java	26 Sep 2002 12:57:45 -0000	1.9
+++ src/org/eclipse/cdt/launch/ui/CMainTab.java	4 Nov 2002 20:02:40 -0000
@@ -266,13 +266,15 @@
 	protected ICProject[] getCProjects() {
 		ICProject cproject[] = CoreModel.getDefault().getCRoot().getCProjects();
 		ArrayList list = new ArrayList(cproject.length);
-		boolean isLocal = filterPlatform.equals(BootLoader.getOS());
+		boolean isNative = filterPlatform.equals(BootLoader.getOS());

 		for (int i = 0; i < cproject.length; i++) {
 			ICDescriptor cdesciptor = null;
 			try {
 				cdesciptor = CCorePlugin.getDefault().getCProjectDescription((IProject) cproject[i].getResource());
-				if (filterPlatform.equals("*") || (isLocal && cdesciptor.getPlatform().equalsIgnoreCase("local"))
+				String projectPlatform = cdesciptor.getPlatform();
+				if (filterPlatform.equals("*") || projectPlatform.equals("*") ||
+				    (isNative && cdesciptor.getPlatform().equalsIgnoreCase("native"))
 					|| filterPlatform.equalsIgnoreCase(cdesciptor.getPlatform()) == true) {
 					list.add(cproject[i]);
 				}



Back to the top