mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
support "*" as platform and change local to native
This commit is contained in:
parent
194b859756
commit
97bd508eb1
3 changed files with 11 additions and 4 deletions
|
@ -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
|
2002-11-04 David Inglis
|
||||||
* src/.../launch/internal/ui/LocalCLaunchCOnfigurationTabGroup.java
|
* src/.../launch/internal/ui/LocalCLaunchCOnfigurationTabGroup.java
|
||||||
don't filter tab list based on mode since the configuration is shared with debug mode.
|
don't filter tab list based on mode since the configuration is shared with debug mode.
|
||||||
|
|
|
@ -106,9 +106,9 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
|
||||||
if (debugConfigs[i].supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN)
|
if (debugConfigs[i].supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN)
|
||||||
|| debugConfigs[i].supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_ATTACH) ) {
|
|| debugConfigs[i].supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_ATTACH) ) {
|
||||||
String supported[] = debugConfigs[i].getPlatforms();
|
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++) {
|
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.add(debugConfigs[i].getName());
|
||||||
fDCombo.setData(Integer.toString(x), debugConfigs[i]);
|
fDCombo.setData(Integer.toString(x), debugConfigs[i]);
|
||||||
if (selection.equals(debugConfigs[i].getID())) {
|
if (selection.equals(debugConfigs[i].getID())) {
|
||||||
|
|
|
@ -266,13 +266,15 @@ public class CMainTab extends CLaunchConfigurationTab {
|
||||||
protected ICProject[] getCProjects() {
|
protected ICProject[] getCProjects() {
|
||||||
ICProject cproject[] = CoreModel.getDefault().getCRoot().getCProjects();
|
ICProject cproject[] = CoreModel.getDefault().getCRoot().getCProjects();
|
||||||
ArrayList list = new ArrayList(cproject.length);
|
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++) {
|
for (int i = 0; i < cproject.length; i++) {
|
||||||
ICDescriptor cdesciptor = null;
|
ICDescriptor cdesciptor = null;
|
||||||
try {
|
try {
|
||||||
cdesciptor = CCorePlugin.getDefault().getCProjectDescription((IProject) cproject[i].getResource());
|
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) {
|
|| filterPlatform.equalsIgnoreCase(cdesciptor.getPlatform()) == true) {
|
||||||
list.add(cproject[i]);
|
list.add(cproject[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue