mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +02:00
The 'getLineNumber' method of CStackFrame should return the line number associated with the stack frame if the current source locator does not implement 'ICSourceLocator'.
This commit is contained in:
parent
a3ecdead60
commit
55d70715c7
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-12-17 Mikhail Khodjaiants
|
||||||
|
The 'getLineNumber' method of CStackFrame should return the line number associated with the stack frame if the current source locator
|
||||||
|
does not implement 'ICSourceLocator'.
|
||||||
|
* CStackFrame.java
|
||||||
|
|
||||||
2002-12-17 Mikhail Khodjaiants
|
2002-12-17 Mikhail Khodjaiants
|
||||||
Changed the implementation of the 'refresh' method of CVariable.
|
Changed the implementation of the 'refresh' method of CVariable.
|
||||||
* CVariable.java
|
* CVariable.java
|
||||||
|
|
|
@ -180,6 +180,8 @@ public class CStackFrame extends CDebugElement
|
||||||
ISourceLocator locator = ((CDebugTarget)getDebugTarget()).getSourceLocator();
|
ISourceLocator locator = ((CDebugTarget)getDebugTarget()).getSourceLocator();
|
||||||
if ( locator != null && locator instanceof ICSourceLocator )
|
if ( locator != null && locator instanceof ICSourceLocator )
|
||||||
return ((ICSourceLocator)locator).getLineNumber( this );
|
return ((ICSourceLocator)locator).getLineNumber( this );
|
||||||
|
if ( getCDIStackFrame() != null && getCDIStackFrame().getLocation() != null )
|
||||||
|
return getCDIStackFrame().getLocation().getLineNumber();
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue