mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 06:55:23 +02:00
Disassembly editor input fix.
This commit is contained in:
parent
8a80bf63a0
commit
a012a6a095
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-01-30 Mikhail Khodjaiants
|
||||
Disassembly editor input fix.
|
||||
* CDTDebugModelPresentation.java
|
||||
|
||||
2003-01-27 Mikhail Khodjaiants
|
||||
Managing breakpoints from the gdb console.
|
||||
* AddAddressBreakpointActionDelegate.java
|
||||
|
|
|
@ -826,7 +826,9 @@ public class CDTDebugModelPresentation extends LabelProvider
|
|||
try
|
||||
{
|
||||
long address = Long.parseLong( breakpoint.getAddress() );
|
||||
return new DisassemblyEditorInput( (IStorage)(((DisassemblyManager)targets[i].getAdapter( DisassemblyManager.class )).getSourceElement( address ) ) );
|
||||
IStorage storage = (IStorage)(((DisassemblyManager)targets[i].getAdapter( DisassemblyManager.class )).getSourceElement( address ) );
|
||||
if ( storage != null )
|
||||
return new DisassemblyEditorInput( storage );
|
||||
}
|
||||
catch( NumberFormatException e )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue