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:
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
|
||||
Changed the implementation of the 'refresh' method of CVariable.
|
||||
* CVariable.java
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue