1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 15:25:49 +02:00
This commit is contained in:
Alain Magloire 2004-10-18 22:38:52 +00:00
parent 121fe1e577
commit 442e988240

View file

@ -133,16 +133,21 @@ public class StackFrame extends CObject implements ICDIStackFrame {
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIStackFrame#getLocation() * @see org.eclipse.cdt.debug.core.cdi.model.ICDIStackFrame#getLocation()
*/ */
public ICDILocation getLocation() { public ICDILocation getLocation() {
BigInteger addr = BigInteger.ZERO;
if (frame != null) { if (frame != null) {
if (fLocation == null) { if (fLocation == null) {
String a = frame.getAddress();
if (a != null) {
addr = MIFormat.getBigInteger(a);
}
fLocation = new Location(frame.getFile(), fLocation = new Location(frame.getFile(),
frame.getFunction(), frame.getFunction(),
frame.getLine(), frame.getLine(),
MIFormat.getBigInteger(frame.getAddress())); addr);
} }
return fLocation; return fLocation;
} }
return new Location("", "", 0, BigInteger.ZERO); //$NON-NLS-1$ //$NON-NLS-2$ return new Location("", "", 0, addr); //$NON-NLS-1$ //$NON-NLS-2$
} }
/** /**