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:
parent
e8323dc92c
commit
d632d9b530
2 changed files with 10 additions and 3 deletions
|
@ -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
|
2003-01-17 Mikhail Khodjaiants
|
||||||
Use the C editor instead of the default editor for files without extensions.
|
Use the C editor instead of the default editor for files without extensions.
|
||||||
* CDTDebugModelPresentation.java
|
* CDTDebugModelPresentation.java
|
||||||
|
|
|
@ -495,10 +495,13 @@ public class CDTDebugModelPresentation extends LabelProvider
|
||||||
String label = new String();
|
String label = new String();
|
||||||
IPath path = new Path( library.getFileName() );
|
IPath path = new Path( library.getFileName() );
|
||||||
if ( !path.isEmpty() )
|
if ( !path.isEmpty() )
|
||||||
label += ( qualified ? path.toOSString() : path.lastSegment() );
|
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}'')",
|
return label + MessageFormat.format( " (Start address: ''{0}'' End address: ''{1}'')",
|
||||||
new String[] { CDebugUtils.toHexAddressString( library.getStartAddress() ),
|
new String[] { startAddress, endAddress } );
|
||||||
CDebugUtils.toHexAddressString( library.getEndAddress() ) } );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue