1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

support "*" as platform and change local to native

This commit is contained in:
David Inglis 2002-11-04 20:05:14 +00:00
parent 194b859756
commit 97bd508eb1
3 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,8 @@
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.

View file

@ -106,9 +106,9 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
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())) {

View file

@ -266,13 +266,15 @@ public class CMainTab extends CLaunchConfigurationTab {
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]);
}