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

Set the start or end address value in the shared libraries view to 'Not available' if the address value is 0.

This commit is contained in:
Mikhail Khodjaiants 2003-01-19 19:28:38 +00:00
parent e8323dc92c
commit d632d9b530
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2003-01-19 Mikhail Khodjaiants
Set the start or end address value in the shared libraries view to 'Not available' if the address value is 0.
* CDTDebugModelPresentation.java
2003-01-17 Mikhail Khodjaiants
Use the C editor instead of the default editor for files without extensions.
* CDTDebugModelPresentation.java

View file

@ -496,9 +496,12 @@ public class CDTDebugModelPresentation extends LabelProvider
IPath path = new Path( library.getFileName() );
if ( !path.isEmpty() )
label += ( qualified ? path.toOSString() : path.lastSegment() );
String startAddress = ( library.getStartAddress() > 0 ) ?
CDebugUtils.toHexAddressString( library.getStartAddress() ) : "Not available";
String endAddress = ( library.getEndAddress() > 0 ) ?
CDebugUtils.toHexAddressString( library.getEndAddress() ) : "Not available";
return label + MessageFormat.format( " (Start address: ''{0}'' End address: ''{1}'')",
new String[] { CDebugUtils.toHexAddressString( library.getStartAddress() ),
CDebugUtils.toHexAddressString( library.getEndAddress() ) } );
new String[] { startAddress, endAddress } );
}
/**