1
0
Fork 0
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:
Mikhail Khodjaiants 2003-01-30 16:23:48 +00:00
parent 8a80bf63a0
commit a012a6a095
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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 )
{