1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for bug 49294: Source file doesn't change when switching between stack frames.

This commit is contained in:
Mikhail Khodjaiants 2003-12-23 19:01:37 +00:00
parent 7dc9ef21ba
commit 27f6d25ecb
2 changed files with 6 additions and 8 deletions

View file

@ -1,3 +1,8 @@
2003-12-23 Mikhail Khodjaiants
Fix for bug 49294: Source file doesn't change when switching between stack frames.
Do not use the breakpoint's markers for source lookup.
* CSourceManager.java
2003-12-08 Mikhail Khodjaiants
Reset the 'terminating' flag if 'terminate' fails.
* CDebugTarget.java

View file

@ -157,14 +157,7 @@ public class CSourceManager implements ICSourceLocator,
boolean autoDisassembly = CDebugCorePlugin.getDefault().getPluginPreferences().getBoolean( ICDebugConstants.PREF_AUTO_DISASSEMBLY );
if ( getMode() == ISourceMode.MODE_SOURCE && getSourceLocator() != null )
{
// if the target is suspended by a line breakpoint the source manager
// tries to retrieve the file resource from the breakpoint marker.
if ( getDebugTarget() != null )
result = getDebugTarget().getCurrentBreakpointFile();
if ( result == null )
result = getSourceLocator().getSourceElement( stackFrame );
}
result = getSourceLocator().getSourceElement( stackFrame );
if ( result == null &&
( autoDisassembly || getMode() == ISourceMode.MODE_DISASSEMBLY ) &&
getDisassemblyManager( stackFrame ) != null )