mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 00:36:16 +02:00
Fix for bug 49294: Source file doesn't change when switching between stack frames.
This commit is contained in:
parent
7dc9ef21ba
commit
27f6d25ecb
2 changed files with 6 additions and 8 deletions
|
@ -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
|
2003-12-08 Mikhail Khodjaiants
|
||||||
Reset the 'terminating' flag if 'terminate' fails.
|
Reset the 'terminating' flag if 'terminate' fails.
|
||||||
* CDebugTarget.java
|
* CDebugTarget.java
|
||||||
|
|
|
@ -157,14 +157,7 @@ public class CSourceManager implements ICSourceLocator,
|
||||||
boolean autoDisassembly = CDebugCorePlugin.getDefault().getPluginPreferences().getBoolean( ICDebugConstants.PREF_AUTO_DISASSEMBLY );
|
boolean autoDisassembly = CDebugCorePlugin.getDefault().getPluginPreferences().getBoolean( ICDebugConstants.PREF_AUTO_DISASSEMBLY );
|
||||||
|
|
||||||
if ( getMode() == ISourceMode.MODE_SOURCE && getSourceLocator() != null )
|
if ( getMode() == ISourceMode.MODE_SOURCE && getSourceLocator() != null )
|
||||||
{
|
result = getSourceLocator().getSourceElement( stackFrame );
|
||||||
// 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 );
|
|
||||||
}
|
|
||||||
if ( result == null &&
|
if ( result == null &&
|
||||||
( autoDisassembly || getMode() == ISourceMode.MODE_DISASSEMBLY ) &&
|
( autoDisassembly || getMode() == ISourceMode.MODE_DISASSEMBLY ) &&
|
||||||
getDisassemblyManager( stackFrame ) != null )
|
getDisassemblyManager( stackFrame ) != null )
|
||||||
|
|
Loading…
Add table
Reference in a new issue