1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Bug 262917.

This commit is contained in:
Ken Ryall 2009-02-22 19:47:27 +00:00
parent abe9cb4822
commit b81800cca4
4 changed files with 20 additions and 2 deletions

View file

@ -394,6 +394,7 @@ public class MIStack extends AbstractDsfService
public String getFile() { return getMIFrame().getFile(); }
public int getLine() { return getMIFrame().getLine(); }
public String getFunction() { return getMIFrame().getFunction(); }
public String getModule() { return ""; }//$NON-NLS-1$
@Override
public String toString() { return getMIFrame().toString(); }

View file

@ -353,8 +353,10 @@ public class StackFramesVMNode extends AbstractDMVMNode
label.append("()"); //$NON-NLS-1$
}
boolean hasFileName = dmData.getFile() != null && dmData.getFile().length() != 0;
// Add full file name
if (dmData.getFile() != null && dmData.getFile().length() != 0) {
if (hasFileName) {
label.append(" at "); //$NON-NLS-1$
label.append(dmData.getFile());
}
@ -365,7 +367,14 @@ public class StackFramesVMNode extends AbstractDMVMNode
label.append(dmData.getLine());
label.append(" "); //$NON-NLS-1$
}
// Add module
if (!hasFileName && (dmData.getModule() != null && dmData.getModule().length() != 0)) {
label.append(" "); //$NON-NLS-1$
label.append(dmData.getModule());
label.append(" "); //$NON-NLS-1$
}
// Add the address
if (dmData.getAddress() != null) {
label.append("- 0x" + dmData.getAddress().toString(16)); //$NON-NLS-1$

View file

@ -40,6 +40,10 @@ public interface IStack extends IDMService {
String getFunction();
int getLine();
int getColumn();
/**
* @since 2.0
*/
String getModule();
}
/**

View file

@ -117,6 +117,10 @@ public class PDAStack extends AbstractDsfService implements IStack2, ICachingSer
public IAddress getAddress() {
return null;
}
public String getModule() {
return "";//$NON-NLS-1$
}
}
/**