mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +02:00
Implementing the 'Switch to disassembly mode' action.
This commit is contained in:
parent
736dbc1bec
commit
92c7884bc3
3 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2002-10-11 Mikhail Khodjaiants
|
||||||
|
* CDebugTarget.java: Added return for ISourceMode to 'getAdapter'.
|
||||||
|
* CSourceManager.java: Set the real mode when setting the source mode.
|
||||||
|
|
||||||
2002-10-11 Mikhail Khodjaiants
|
2002-10-11 Mikhail Khodjaiants
|
||||||
* DisassemblyStorage.java: Changed the format of the disassembly view's output.
|
* DisassemblyStorage.java: Changed the format of the disassembly view's output.
|
||||||
|
|
||||||
|
|
|
@ -790,6 +790,13 @@ public class CDebugTarget extends CDebugElement
|
||||||
return this;
|
return this;
|
||||||
if ( adapter.equals( ICDebugTargetType.class ) )
|
if ( adapter.equals( ICDebugTargetType.class ) )
|
||||||
return this;
|
return this;
|
||||||
|
if ( adapter.equals( ISourceMode.class ) )
|
||||||
|
{
|
||||||
|
if ( getSourceLocator() instanceof ISourceMode )
|
||||||
|
{
|
||||||
|
return getSourceLocator();
|
||||||
|
}
|
||||||
|
}
|
||||||
return super.getAdapter( adapter );
|
return super.getAdapter( adapter );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,6 +109,7 @@ public class CSourceManager implements ICSourceLocator, ISourceMode, IAdaptable
|
||||||
public void setMode( int mode )
|
public void setMode( int mode )
|
||||||
{
|
{
|
||||||
fMode = mode;
|
fMode = mode;
|
||||||
|
setRealMode( mode );
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getRealMode()
|
public int getRealMode()
|
||||||
|
|
Loading…
Add table
Reference in a new issue