1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 09:45:39 +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 String getFile() { return getMIFrame().getFile(); }
public int getLine() { return getMIFrame().getLine(); } public int getLine() { return getMIFrame().getLine(); }
public String getFunction() { return getMIFrame().getFunction(); } public String getFunction() { return getMIFrame().getFunction(); }
public String getModule() { return ""; }//$NON-NLS-1$
@Override @Override
public String toString() { return getMIFrame().toString(); } public String toString() { return getMIFrame().toString(); }

View file

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

View file

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

View file

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