1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +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:
Mikhail Khodjaiants 2002-12-17 19:47:32 +00:00
parent a3ecdead60
commit 55d70715c7
2 changed files with 7 additions and 0 deletions

View file

@ -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
Changed the implementation of the 'refresh' method of CVariable.
* CVariable.java

View file

@ -180,6 +180,8 @@ public class CStackFrame extends CDebugElement
ISourceLocator locator = ((CDebugTarget)getDebugTarget()).getSourceLocator();
if ( locator != null && locator instanceof ICSourceLocator )
return ((ICSourceLocator)locator).getLineNumber( this );
if ( getCDIStackFrame() != null && getCDIStackFrame().getLocation() != null )
return getCDIStackFrame().getLocation().getLineNumber();
}
return -1;
}