From d632d9b5307581479824a65f07db572287cb59d8 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Sun, 19 Jan 2003 19:28:38 +0000 Subject: [PATCH] Set the start or end address value in the shared libraries view to 'Not available' if the address value is 0. --- debug/org.eclipse.cdt.debug.ui/ChangeLog | 4 ++++ .../cdt/debug/internal/ui/CDTDebugModelPresentation.java | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.ui/ChangeLog b/debug/org.eclipse.cdt.debug.ui/ChangeLog index 6851d68c7fd..cce02e1819b 100644 --- a/debug/org.eclipse.cdt.debug.ui/ChangeLog +++ b/debug/org.eclipse.cdt.debug.ui/ChangeLog @@ -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 diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java index 1a6be01b98f..30d3c001128 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java @@ -495,10 +495,13 @@ public class CDTDebugModelPresentation extends LabelProvider String label = new String(); IPath path = new Path( library.getFileName() ); 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}'')", - new String[] { CDebugUtils.toHexAddressString( library.getStartAddress() ), - CDebugUtils.toHexAddressString( library.getEndAddress() ) } ); + new String[] { startAddress, endAddress } ); } /**