diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 838cae2234a..21c74101190 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,1731 +1,1741 @@ -2004-03-09 David Inglis - Added PLATFORM_NATIVE const to ICDebugCongifuration - ICDebugConfiguration.java - -2004-02-20 Mikhail Khodjaiants - Fire the "suspend" event when the target is suspended because of an error. - * CDebugTarget.java - -2004-02-17 Mikhail Khodjaiants - Reset the current thread flag when resume. - * CThread.java - -2004-02-16 Mikhail Khodjaiants - Fix for bug 52135: Debugger should indicate which thread triggered breakpoint. - * CThread.java - -2004-02-11 Mikhail Khodjaiants - In the 'reset' method check if value is an instance of CValue before type casting. - * CVariable.java - -2004-02-10 Mikhail Khodjaiants - Cache the endianness flag. - * CDebugTarget.java - -2004-01-30 Mikhail Khodjaiants - Fix for bug 50981: In the 'getValue' method of CVariable 'getType' should be only called once. - * CVariable.java - -2004-01-29 Mikhail Khodjaiants - Fire sets of debug events instead of firing it one by one. - * CDebugTarget.java - * CThread.java - -2004-01-29 Mikhail Khodjaiants - Added DebugEvent factory methods to 'CDebugElement'. - * CDebugElement.java - -2004-01-15 Mikhail Khodjaiants - Fix for bug 48682: IThread.getBreakpoints() stubbed out. - * CDebugTarget.java - * CThread.java - -2003-12-23 Mikhail Khodjaiants - Fix for bug 49294: Source file doesn't change when switching between stack frames. - Do not use the breakpoint's markers for source lookup. - * CSourceManager.java - -2003-12-08 Mikhail Khodjaiants - Reset the 'terminating' flag if 'terminate' fails. - * CDebugTarget.java - -2003-11-26 Mikhail Khodjaiants - Extracted the main part of the 'breakpointAdded' method into a separate method to avoid - double checking. - * CDebugTarget.java - -2003-11-26 Mikhail Khodjaiants - Cleanup. - * CDebugModel.java - * CDebugUtils.java - * CRegisterManager.java - * CSharedLibraryManager.java - * CSignalManager.java - * CUpdateManager.java - * CDebugTarget.java - * CThread.java - * CVariable.java - -2003-11-10 Mikhail Khodjaiants - Ensure that all breakpoint creation and modification operations are running in the UI thread. - * CBreakpointManager.java - -2003-11-10 Mikhail Khodjaiants - Added synchronization to some of the 'CBreakpoint' methods. - * CBreakpoint.java - -2003-11-07 Mikhail Khodjaiants - Fix for PR 46358: NPE in the "setCurrentThread" method of "CDebugTarget". - 'setCurrentThread': check if the old current thread is not null. - * CDebugTarget.java - -2003-11-07 Mikhail Khodjaiants - Use the corresponding methods of 'ICBreakpoint' to set breakpoint properties. - * CBreakpointManager.java - -2003-11-07 Mikhail Khodjaiants - Fix for PR 46303: Exception when selecting Debug... menu. - Check if the string passed to the 'getCommonSourceLocationsFromMemento' method is not empty. - * SourceUtils.java - -2003-11-05 Mikhail Khodjaiants - 'getCDIBreakpointFile' returns wrong file for address breakpoints. - * CBreakpointManager.java - -2003-11-05 Mikhail Khodjaiants - Changed the handling of the breakpoint created event to reflect the CDI changes for deferred - breakpoints support. - * CBreakpointManager.java - * CSharedLibraryManager.java - * CDebugTarget.java - -2003-11-05 Mikhail Khodjaiants - Moved all breakpoint-related functionality to the new class - 'CBreakpointManager'. - * CBreakpointManager.java - -2003-11-05 Mikhail Khodjaiants - The argument type of the 'getBreakpointAddress' method of 'ICBreakpointManager' is changed from - 'ICBreakpoint' to 'ICBreakpointManager'. - * ICBreakpointMaanger.java - -2003-10-30 Mikhail Khodjaiants - * CSourceManager.java: implements adapters for 'ISourceMode' and 'IPersistableSourceLocator'. - -2003-10-30 Mikhail Khodjaiants - Fix for PR 45818 doesn't solve the problem. Fall back to the previous version. - * CDebugElement.java - -2003-10-30 Mikhail Khodjaiants - Fix for PR 45818: NPE when closing the workbench. - * CDebugElement.java - -2003-10-29 Mikhail Khodjaiants - * CProjectSourceLocation.java: check if the searched element name is not null or empty. - -2003-10-29 Mikhail Khodjaiants - Added the 'dispose' method to 'ICSourceLocation'. - * ICSourceLocation.java - * CDirectorySourceLocation.java - * CProjectSourceLocation.java: made 'dispose' public. - -2003-10-29 Mikhail Khodjaiants - * CProjectSourceLocation.java: added 'toString' method. - -2003-10-28 Mikhail Khodjaiants - Search only in the parent folders if the given file path is absolute. - Return a list only if the number of resulting files is > 1. - * CDirectorySourceLocation.java - -2003-10-27 Mikhail Khodjaiants - Renamed 'SourceLocationFactory' to 'SourceLookupFactory'. - Added the 'createSourceLocator' method to 'SourceLookupFactory'. - * SourceLookupFactory.java - * CSourceLocator.java - -2003-10-27 Mikhail Khodjaiants - Changed the 'getAdapter' method of 'CSourceManager' to return the adapter of - the 'ICSourceLocator' class. - * CSourceManager.java - -2003-10-26 Mikhail Khodjaiants - Fix for PR 45534: gdb/MI error in retrieving a register can lead to an empty register pane. - * CRegister.java - * CRegisterGroup.java - -2003-10-23 Mikhail Khodjaiants - Core support of the new workbench preferences: 'Source Locations' and 'Search - For Duplicate Source Files'. - * CDebugCorePlugin.java - * ICDebugConstants.java - * SourceUtils.java: new - -2003-10-20 Mikhail Khodjaiants - Core support of the "Search subfolders" option for directory source locations. - * IDirectorySourceLocation.java - * SourceLocationFactory.java - * CDirectorySourceLocation.java - -2003-10-20 Mikhail Khodjaiants - Do not interrupt the initialization of all additional source locations - if the initialization of one fails. - * CSourceLocator.java - -2003-10-17 Alain Magloire - - ICDIBreakpointManager new method - setLocationBreakpoint(...., deferred); - The new boolean "deferred" indicate if yes or not the breakpoint - should be on the deferred list if the setting fails. - - * ICDIBreakpointManager.java - -2003-10-17 Mikhail Khodjaiants - Core support of the 'Search for duplicate source files' option. - * ICSourceLocation.java - * ICSourceLocator.java - * CDirectorySourceLocation.java - * CProjectSourceLocation.java - * CSourceLocator.java - * CSourceManager.java - -2003-10-17 Mikhail Khodjaiants - If the target is suspended by a line breakpoint the source manager tries to retrieve - the file resource from the breakpoint marker. - * CSourceManager.java - * CDebugTarget.java - -2003-10-15 Mikhail Khodjaiants - Improving the source search algorithms. - * CDirectorySourceLocation.java - * CProjectSourceLocation.java - * CSourceLocator.java - -2003-10-14 Mikhail Khodjaiants - Improved the source search algorithm. - * CProjectSourceLocation.java - -2003-10-13 Mikhail Khodjaiants - Fix for bug 43372: changed the source lookup procedures to avoid the usage of 'getCanonicalPath'. - * CDirectorySourceLocation.java - * CProjectSourceLocation.java - -2003-10-07 Mikhail Khodjaiants - All methods of 'IRuntimeOptions' should throw CDI exceptions in case of failure. - * ICDIRuntimeOptions.java - -2003-10-06 Mikhail Khodjaiants - Added the "isArgument" method to ICVariable. This method is used to distinguish - the arguments in the Variables View. - * ICVariable.java - * CVariable.java - -2003-09-30 Mikhail Khodjaiants - Use the new 'equals' method of ICDIVaraiableObject to compare variables. - * CVariable.java - -2003-09-30 Alain Magloire - - ICDIVariableObject been updated with a new method. - * CVariable.java - * ICDIVariable.java - -2003-09-29 Mikhail Khodjaiants - Fix for PR 43856: Format doesn't work for wchar_t. - * CValue.java - -2003-09-23 Mikhail Khodjaiants - Changed the 'hasStackFrames' method of the 'CThread' class to return true regardless if - the thread contains stack frames or not. This method is only used by UI to update the thread label. - * CThread.java - -2003-09-17 Mikhail Khodjaiants - Temporary fix for PR 39061: Attach source does not work for applications compiled in CygWin. - * CDirectorySourceLocation.java - -2003-09-16 Mikhail Khodjaiants - Fix for PR 38468: Error in files location. - Use the 'getCanonicalPath' method of the 'File' class to obtain the file name. - * CDirectorySourceLocation.java - * CProjectSourceLocation.java - * CSourceLocator.java - -2003-09-15 Mikhail Khodjaiants - Fix for PR 43101: Breakpoint exception when source doesn't exist. - The 'fireBreakpointChanged' method of 'BreakpointManager' is used to notify - the UI components that a breakpoint is added. This is a part of new implementation - to support deffered breakpoints. For new breakpoints the 'delta' argument is null. - Check if delta is not null to avoid this problem. - * CDebugTarget.java - -2003-09-11 Mikhail Khodjaiants - Detail Pane values for casted variables. - * CVariable.java: the qualified name should be chached in the InternalVariable instance - * CArrayPartition.java: added new field to store the chached value of the qualified name - -2003-10-11 Mikhail Khodjaiants - Moving the shared library search paths block to mi UI. - * ICDTLaunchConfigurationConstants.java: moved the 'ATTR_DEBUGGER_SOLIB_PATH' attribute to mi. - -2003-09-10 Mikhail Khodjaiants - If breakpoint is a line breakpoint check if source locator contains this file - instead of container project. - * CDebugTarget.java - -2003-09-10 Mikhail Khodjaiants - Fix for PR 42790: Memory view is not cleared when target is terminated. - * CFormattedMemoryBlock.java: fire 'terminate' event when block is disposing. - * CMemoryManager.java: implementation of 'dispose'. - -2003-09-09 Mikhail Khodjaiants - Fix for PR 39680: Gash in error message for memory view. - * CDebugModel.java - -2003-09-09 Mikhail Khodjaiants - Final fix for PR 39484: Move 'getType' method from ICDIVariable to ICDIVaraibleObject. - * CArrayPartition.java - * CVariable.java - -2003-09-09 Mikhail Khodjaiants - Regrouping the launch configuration constants. - * ICDTLaunchConfigurationConstants.java - -2003-09-09 Mikhail Khodjaiants - Removed the internal handling of the 'stop-on-shared-library-events' option - - will be moved to the mi. - Try to set the deferred breakpoints only when: - - a shared library is loaded - - the symbols of shared library are loaded - * CSharedLibararyManager.java - * CDebugTarget.java - * CThread.java - -2003-09-09 Mikhail Khodjaiants - Added the 'getSharedLibraryPaths' and 'setSharedLibraryPaths' methods - to the 'ICDISharedLibraryManager' interface. - * ICDISharedLibraryManager.java - -2003-08-29 Mikhail Khodjaiants - Implementation of deferred breakpoints. - * CDebugTarget.java - * CThread.java - -2003-08-29 Mikhail Khodjaiants - Moving shared library features from mi to CDI. - Added new launch configuration constants to ICDTLaunchConfigurationConstants. - -2003-08-29 Mikhail Khodjaiants - Moving shared library features from mi to CDI. - Added new methods to ICDISharedLibraryManager: - - isAutoLoadSymbols - - isStopOnSolibEvents - - setAutoLoadSymbols - - setStopOnSolibEvents - - supportsAutoLoadSymbols - - supportsStopOnSolibEvents - * ICDISharedLibraryManager.java - -2003-08-21 Mikhail Khodjaiants - Removed the 'isAccessSpecifier' method from CVaraiable. - * CArrayPartitionValue.java - * CValue.java - * CVariable.java - -2003-08-21 Mikhail Khodjaiants - Use the names of array's elements returned by CDI. - * CVariable.java - -2003-08-20 Mikhail Khodjaiants - Unable to terminate post mortem debugging session. - Extended the 'CDebugTarget' class to overload the 'terminate' and 'canTerminate' methods. - * CDebugModel.java - * CCoreFileDebugTarget.java: new - -2003-08-19 Mikhail Khodjaiants - Create ICDIVariableObject for each array partition to compute a detail panel's value. - * CArrayPartition.java - * CVariable.java - -2003-08-18 Alain Magloire - - ICDISharedLibraryEvent.java: - New file, to notify a breakpoint from a shared lib event. - -2003-08-13 Mikhail Khodjaiants - * ICDIVariableManager.java: removed the 'type' parameter from the 'getVariableObjectAsArray' method - * ICastToArray.java: removed the 'type' parameter from the 'castToArray' method - * CVariable.java: changed the implementation of the 'ICastToArray' interface - -2003-08-13 Mikhail Khodjaiants - * ICDIVariable.java: removed the 'isEditable' method - * ICDIVariableObject.java: added the 'isEditable', 'getQualifiedName' and 'sizeof' methods - * ICDIArrayValue.java: added the 'getVariables(int start, int length)' method - * ICType.java: added the 'isReference' method - * ICValue.java: added the 'dispose' method - * CArrayPartition.java - * CArrayPartitionValue.java - * CGlobalVariable.java - * CType.java - * CValue.java - * CValueFactory.java - * CVariable.java - Create 'var-objects' only for the requested array partitions. - -2003-08-07 Alain Magloire - - * ICDIVariableManager.java: - Remove the unused method getVariableObject(ICDIStackframe, String) - and getArgumentObject(ICDIStackframe, String). - Rename getVariableObject(String, String, String) to - getGlobalVariableObject. - - * CDebugModel.java: Refactoring of ICDIVariableManager. - -2003-08-06 Mikhail Khodjaiants - Added the implementation of the 'getType' and 'getTypeName' methods of the 'CVaraible:ErrorVariable' class. - * CVariable.java - -2003-08-06 Mikhail Khodjaiants - Uncommented the 'sizeof' method of 'ICDIVariableObject'. - * ICDIVariableObject.java - * CVariable.java - -2003-08-06 Alain Magloire - - Move some of the methods in ICDIVariableObject. - - * src/org/eclipse/cdt/debug/core/cdi/ICDIVariable.java - * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableObject.java - -2003-08-05 Mikhail Khodjaiants - Use the 'getReferencedProject' method to obtain all referenced projects. - * CDebugUtils.java - -2003-08-05 Mikhail Khodjaiants - Invalidate error variables when the session is resumed. - * CVariable.java - -2003-07-30 Mikhail Khodjaiants - Moved the 'getReferencedProject' method to 'CDebugUtils'. Added the cycle checking. - * CDebugUtils.java - * CSourceLocator.java - -2003-07-28 Mikhail Khodjaiants - Minimize the number of the "evaluate expression" requests when changing the value of the floating point types. - * CDebugUtils.java - -2003-07-28 Mikhail Khodjaiants - Refactoring: moved the 'isNaN', 'isPositiveInfinity' and 'isNegativeInfinity' to the 'CDebugUtils' class. - * ICValue.java - * CValue.java - * CDebugUtils.java - -2003-07-28 Mikhail Khodjaiants - Refactoring: moved the 'CDebugUtils' class to the 'org.eclipse.cdt.debug.core' package - - the methods of this class are mostly used in UI plugins. - * CDebugUtils.java - * CDebugModel.java - * DisassemblyStorage.java - * CAddressBreakpoint.java - * CDebugTarget.java - * CFormattedMemoryBlock.java - * CDebugElement.java - * CDirectorySourceLocation.java - * CProjectSourceLocation.java - * CSourceLocator.java - -2003-07-28 Mikhail Khodjaiants - Cleanup. Removed the unused 'getNumberOfChildren' method from the 'CValue' class. - * CValue.java - -2003-07-28 Mikhail Khodjaiants - Cleanup. Removed the 'reset' and 'getQualifiedName' methods from the 'ICVaraible' interface. - * ICVariable.java - * CVariable.java - -2003-07-24 Mikhail Khodjaiants - Fix for PR 40696. If the project contains the reference to a project that is - deleted from the workspace the source locator tries to get the location of deleted project. - * CProjectSourceLocation.java - -2003-07-22 Mikhail Khodjaiants - Create a special type of ICDIVariable (ErrorVariable) if request to gdb fails. - * CVariable.java - * CValue.java - -2003-07-22 Mikhail Khodjaiants - Use the 'getReferencedProjects' method of 'CSourceLocator' to obtain the list of referenced projects. - Use the correct tag for additional source locations. - * CSourceLocator.java - -2003-07-17 Mikhail Khodjaiants - Fix for PR 39936: GDB hits modified conditional breakpoints when condition not satisfied. - This is a work around for GDB PR MI/1289. - * CDebugTarget.java - -2003-07-17 Mikhail Khodjaiants - Automatically update the list of source locations when the list of the referenced - projects is modified. - * ICSourceLocator.java: added new method - 'getProject' - * IProjectSourceLocation.java: added new method - 'isGeneric' - * SourceLocationFactory.java: new class factory for source locations. - * CSourceLocator.java - * CDirectorySourceLocation.java - * CProjectSourceLocation.java - * CSourceManager.java - * CDebugTarget.java - -2003-06-30 Mikhail Khodjaiants - Fix for PR 39372: Breakpoints don't get activated when symbols are loaded. - -2003-06-30 Mikhail Khodjaiants - Fix for PR 39100: CDT/Debug core is asking value 16 times. - * CValue.java - -2003-06-30 Mikhail Khodjaiants - Fix for PR 39087: Cache the MI answer once we know if the variable is writable. - * CVariable.java - -2003-06-24 Mikhail Khodjaiants - All local var_objects are destroyed when a thread other than current is selected. - CVariable has to be invalidated if a "destroyed" event has been received. - * CVariable.java - -2003-06-23 Mikhail Khodjaiants - Fix for ClassCastException in CStackFrame. - * CStackFrame.java - -2003-06-20 Mikhail Khodjaiants - Variable bookkeeping (phase 0.1). - * ICDTLaunchConfigurationConstants.java: add a new attribute - ATTR_DEBUGGER_ENABLE_VARIABLE_BOOKKEEPING. - * ICVariable.java: added the 'canEnableDisable', 'isEnabled' and 'setEnabled' methods - * CArrayPartition.java - * CExpression.java - * CModificationVariable.java - * CRegister.java - * CStackFrame.java - * CVariable.java - -2003-06-18 Mikhail Khodjaiants - Incorrect casting in the 'setChanged' method of CVariable. - * CVariable.java - -2003-06-11 Mikhail Khodjaiants - The unused 'getUnderlyingValueString' method has been removed from ICValue and CValue. - The methods 'setChanged' and 'getUnderlyingValue' are only for internal usage and - have been removed from ICValue. - * ICValue.java - * CArrayPartitionValue.java - * CValueFactory.java - * CValue.java - * CVariable.java - -2003-06-10 Mikhail Khodjaiants - Refactoring: moved the type and value related methods from ICVariable to ICType and ICValue. - * ICType.java: new - * ICVariable.java - * ICValue.java - * CArrayPartitionValue.java - * CType.java - * CValue.java - * CVariable.java - -2003-06-09 Mikhail Khodjaiants - Added default format preferences for variables, registers and expressions. - * CExpression.java - * CRegister.java - * CVariable.java - -2003-06-09 Mikhail Khodjaiants - Renamed the 'refresh' method of ICVariable to 'reset'. Added new method - - 'reset' to CValue instead of using the 'setChanged' method. - * ICVariable.java - * CValue.java - * CVariable.java - -2003-06-06 Mikhail Khodjaiants - Mark as changed parent variables. - * CVariable.java - -2003-06-06 Mikhail Khodjaiants - Refresh only the state of variable when handling a change event. - * CVariable.java - -2003-06-06 Mikhail Khodjaiants - Correct presentation of the full names of variables that contain pointers. - * CVariable.java - -2003-06-06 Mikhail Khodjaiants - Changed the implementation of the'getName' method of CVariable to return - the actual names of array members. - * CArrayPartition.java - * CArrayPartitionValue.java - * CVariable.java - -2003-06-05 Mikhail Khodjaiants - Core support of infinite values of the floating point types. - * ICVariable.java - * CVariable.java - -2003-06-05 Mikhail Khodjaiants - Renamed the 'computeDetail' method of the 'ICValue' interface to 'evaluateAsExpression'. - * ICValue.java - * CArrayPartitionValue.java - * CValue.java - -2003-06-05 Mikhail Khodjaiants - Removed the redundant methods from the 'ICDIFloatingPointValue' interface. - * ICDIFloatingPointValue.java - * CValue.java - * CVariable.java - -2003-06-04 Mikhail Khodjaiants - Implementing the core support of the detail panel. - * ICValue.java - * ICVariable.java - * CArrayPartitionValue.java - * CValue.java - * CVariable.java - -2003-06-04 Mikhail Khodjaiants - Added the processing of reference values. - * CValue.java - -2003-06-04 Mikhail Khodjaiants - Implementing the core support of UI features for types and internal formating - (instead of using the format features provided by gdb). - * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIFloatingPointValue.java - * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIPointerValue.java - * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIReferenceValue.java - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIPointerValue.java: removed - * src/org/eclipse/cdt/debug/core/model/ICVariable.java - * src/org/eclipse/cdt/debug/internal/core/model/CVariable.java - * src/org/eclipse/cdt/debug/core/model/CValue.java - -2003-05-29 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIIntegralValue.java: - public long longValue() throws CDIException; - public int intValue() throws CDIException; - public short shortValue() throws CDIException; - public int byteValue() throws CDIException; - -2003-05-29 Mikhail Khodjaiants - Added new methods to ICVariable to vizualize arrays and structures based - on the new CDI types. - * ICVariable.java - * CVariable.java - -2003-05-27 Mikhail Khodjaiants - Check if the location of breakpoint is eligible for the target - when setting, removing or changing the propeties. - * CDebugTarget.java - -2003-03-23 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIVariable.java: - (getType): New method. - -2003-05-26 Mikhail Khodjaiants - First draft of the tracepoints in the CDI. - * ICDITraceManager.java - * ICDITraceSnapshot.java - * ICDITracepoint.java - -2003-05-23 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIType.java: extends - ICDIObject. - -2003-05-23 Alain Magloire - - First draft of the implementing the types, org.eclipse.cdt.debug.core.cdi.model.type.* - in the CDI interface. - -2003-05-14 Mikhail Khodjaiants - Created preference for the maximum number of disassembly instructions. - * CDebugTarget.java - * ICDebugConstants.java - * DisassemblyManager.java - -2003-05-12 Mikhail Khodjaiants - Moved the generation of expressions for global variables to the mi plugin. - * CDebugTarget.java - * CExpression.java - * CDebugModel.java - -2003-05-12 Mikhail Khodjaiants - When generating disassembly instructions by file name and line number check - if the frame address is in the address range of the instruction set. - If the instruction set doesn't contain the frame address generate a new instruction set - based on the frame address. - * DisassemblyManager.java - -2003-05-08 Mikhail Khodjaiants - In the "terminate" event handler of the session manager check the targets that - belong to the current session. - * SessionManager.java - -2003-05-07 Mikhail Khodjaiants - Set the error status if the debug target is suspended because of an error. - * CDebugTarget.java - -2003-05-06 Mikhail Khodjaiants - Check if the underlying debugger supports expression evaluation in the "canEvaluate" method. - * CDebugTarget.java - -2003-05-06 Mikhail Khodjaiants - Added tooltips to breakpoints and watchpoints. - * CAddressBreakpoint.java - * CBreakpoint.java - * CFunctionBreakpoint.java - * CLineBreakpoint.java - * CWatchpoint.java - -2003-05-05 Mikhail Khodjaiants - Added a status functionality to the CDebugElement class. - This allows to reflect the problems occured in the element in UI. - * ICDebugElementErrorStatus.java: new - * CDebugElement.java: implementation - * CThread.java - * CDebugTarget.java - -2003-05-05 Mikhail Khodjaiants - New method in ICBreakpoint - "isConditional". - * ICBreakpoint.java - * CBreakpoint.java - -2003-05-02 Mikhail Khodjaiants - Notify the Launch view about stack changes when handling the 'Resumed' event. - * CThread.java - -2003-05-01 Mikhail Khodjaiants - Implementation of termination policy. - * ICDIConfiguration.java: new "terminateSessionOnExit" method added. - * SessionManager.java: terminates the launch when all targets are terminated or disconnected. - * CDebugCorePlugin.java: provides an access to the current session managers. - * CDebugTarget.java - -2003-04-25 Mikhail Khodjaiants - Fix for bug 36909 - * DisassemblyManager.java: check if the address of a stack frame is not 0; - -2003-04-23 Mikhail Khodjaiants - Check for null pointer in 'isCharacter' and 'isCharPointer'. - * CValue.java - -2003-04-23 Mikhail Khodjaiants - Throw DebugException when getSignals() fails. - * CSignalManager.java - -2003-04-23 Mikhail Khodjaiants - Additional checks for the situation when the stack depth is not 0 and - the frame array is empty. - * CThread.java - -2003-04-22 Mikhail Khodjaiants - Disconnect: terminate should be called from the disconnect event handler. - * CDebugTarget.java - -2003-04-21 Mikhail Khodjaiants - Disconnnect: target should be disconnected before terminate the session - because of race condition. - * CDebugTarget.java - -2003-04-21 Mikhail Khodjaiants - Unnecessary error logging (bug 36682). - * CValue.java - -2003-04-21 Mikhail Khodjaiants - Temporary fix for character values. - * CValue.java - -2003-04-20 Alain Magloire - - * CValue.java: - Was throwing a IndexOutOfBoundException. - -2003-04-17 Mikhail Khodjaiants - Check if the underlying cdi variable is not null before accessing it. - * CVariable.java - -2003-04-16 Mikhail Khodjaiants - Quick fix for variable values. - * CValue.java - -2003-04-14 Alain Magloire - - StringBuffer.indexOf() is 1.4.x only - - * CDebugUtils.java - -2003-04-11 Mikhail Khodjaiants - Core support of function and method breakpoints. - * CDebugModel.java - * ICFunctionBreakpoint.java - * CDebugUtils.java - * CFunctionBreakpoint.java - * CDebugTarget.java - -2003-04-09 Mikhail Khodjaiants - Core support of function breakpoints. - * CDebugModel.java - * ICFunctionBreakpoint.java - * CDebugTarget.java - -2003-04-07 Mikhail Khodjaiants - Changed the message text in the 'getStackDepth' method. - * CThread.java - -2003-04-07 Mikhail Khodjaiants - Changed the message generated in the 'targetRequestFailed' methods of CDebugElement. - * CDebugElement.java - -2003-04-07 Mikhail Khodjaiants - Replaced 'toString()' by 'getMessage()' for CDI exceptions. - * CSharedLibraryManager.java - * CUpdateManager.java - * CDebugTarget.java - * CStackFrame.java - * CThread.java - * CVariable.java - -2003-04-01 Mikhail Khodjaiants - Moved the 'Auto-Refresh' preferences from CDebugUIPlugin to use it for initialization of update managers. - * ICDebugConstants.java - * CRegisterManager.java - * CSharedLibraryManager.java - -2003-04-01 Mikhail Khodjaiants - Removed the 'fDebugTarget' field from CSharedLibraryManager. - * CSharedLibraryManager.java - -2003-03-31 Mikhail Khodjaiants - The new abstract class ('CUpdateManager') is added to provide a basic implementation of ICUpdateManager. - CSignalManager, CSharedLibraryManager and CRegisterManager extend this class. - * ICRegisterManager.java: new - * CRegisterManager.java: new - * CSharedLibraryManager.java - * CSignalManager.java - * CUpdateManager.java: new - * CDebugTarget.java - * CRegisterGroup.java - -2003-03-28 Mikhail Khodjaiants - Use the 'exists' method of the 'IFile' interface instead of using 'toFile().exists()' for 'IPath'. - * CDirectorySourceLocation.java - * CSourceLocator.java - -2003-03-28 Mikhail Khodjaiants - Do not log the exceptions thrown by the breakpoint setting methods. - * CDebugTarget.java - -2003-03-28 Mikhail Khodjaiants - Added default format preference constants for variables, expressions and registers. - * ICDebugConstants.java - -2003-03-28 Mikhail Khodjaiants - Core support of the 'Run To C/C++ Line' and 'Resume At C/C++ Line' actions for external files. - * IJumpToLine.java - * IRunToLine.java - * CDebugTarget.java - * CThread.java - -2003-03-27 Mikhail Khodjaiants - Applied patch from Chris Songer: Assembly View Fixups - * ICDIInstruction.java - * DisassemblyStorage.java - -2003-03027 Alain Magloire - - Adjust the code refactor in the CoreModel for IBinary - * CDebugTarget.java - -2003-03-18 Mikhail Khodjaiants - Removed the gdb-specific variable parsing. - * ICValue.java - * CArrayPartition.java - * CArrayPartitionValue.java - * CModificationVariable.java - * CStackFrame.java - * CValue.java - * CVariable.java - * CArrayEntryVariable.java: removed - * CLocalVariable.java: removed - -2003-03-17 Mikhail Khodjaiants - Replace range by start index and length in 'Display As Array' action. - * ICDIVariableManager.java - * ICastToArray.java - * CVariable.java - -2003-03-14 Mikhail Khodjaiants - Added the 'isEditable' and 'hasChildren' methods to the 'ICVariable' interface. - * ICVariable.java - * CVariable.java - * CModificationVariable.java - -2003-03-14 Mikhail Khodjaiants - Cross-referencing projects cause the debugger to go into a stack overflow exception. - Make sure that there is only one source location for each referenced project. - * CSourceLocator.java - -2003-03-13 Alain Magloire - - No longer throw exceptions. - * src/org/eclipse/cdt/internal/core/model/CFormattedMemoryBlock.java - * src/org/eclipse/cdt/internal/core/model/CVariable.java - -2003-03-13 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIVariable.java: - Also extends ICDIVariableObject. - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIArgument.java: - Also extends ICDIArgumentObject. - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIRegister.java: - Also extends ICDIRegisterObject - * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableManager.java: - getLocalVariableObject() new method. - -2003-03-09 Mikhail Khodjaiants - New ICDIVariableManager methods for the 'DisplayAsArray' and 'CastToType' actions. - * CVariable.java - -2003-03-11 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableManager.java: - New methods getVariableObjectAsArray(), getVariableObjectAsType(). - -2003-03-09 Mikhail Khodjaiants - Core support of the "Display As Array" action. - * ICastToArray.java - * CLocalVariable.java - * CVariable.java - -2003-03-09 Mikhail Khodjaiants - Core support of the "Cast To Type" and "Restore Default Type" actions. - * ICastToType.java: new - * CLocalVariable.java - * CStackFrame.java - * CVariable.java - -2003-02-24 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/ICDIRegisterObject.java: - * src/org/eclipse/cdt/debug/core/cdi/ICDIArgumentObject.java: - Reorganized imports. - -2003-02-20 Mikhail Khodjaiants - No need to set the source search path to the debugger. - * ICSourceLocation.java - * CDirectorySourceLocation.java - * CProjectSourceLocation.java - * CDebugTarget.java - -2003-02-20 Mikhail Khodjaiants - Changed to 'public' the access modifier of the 'setAssocition' method. - * CDirectorySourceLocation.java - -2003-02-18 Mikhail Khodjaiants - Added persistency to the source locator. - * plugin.xml: added dependency on the 'org.apache.xerces' plugin - * ICSourceLocation.java - * CDebugUtils.java - * CDirectorySourceLocation.java - * CProjectSourceLocation.java - * CSourceLocator.java - * CSourceManager.java - -2003-02-13 Mikhail Khodjaiants - Undo changes because the 'asyncExec' method of the 'DebugPlugin' class has added since version 2.1. - * IAsyncExecutor.java: removed - * CDebugCorePlugin.java - -2003-02-13 Mikhail Khodjaiants - Use the 'asyncExec' method of the 'DebugPlugin' class. - * IAsyncExecutor.java: removed - * CDebugCorePlugin.java - -2003-02-12 Mikhail Khodjaiants - The gdb-specific 'setAutoSolibMethod' method is removed from ICDISharedLibraryManager. - * ICDISharedLibraryManager.java - * CSharedLibraryManager.java - -2003-02-12 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/mode/ICDITarget.java (getSharedLibraries): - Remove action done via the manager. - -2003-02-12 Mikhail Khodjaiants - Use ICDIRegisterManager instead of ICDITarget. - * ICDITarget.java - * CDebugTarget.java - * CRegisterGroup.java - -2003-02-11 Mikhail Khodjaiants - The 'auto load symbols' action support in ICSharedLibraryManager. - * ICSharedLibraryManager.java - * CSharedLibraryManager.java - -2003-02-11 Mikhail Khodjaiants - The 'load symbols' actions support in ICSharedLibraryManager. - * ICSharedLibraryManager.java - * CSharedLibraryManager.java - -2003-02-10 Mikhail Khodjaiants - Support of update ('Refresh', 'Auto-Refresh) actions. - * ICUpdateManager.java: new - * ICSharedLibraryManager.java - * CSharedLibraryManager.java - -2003-02-10 Mikhail Khodjaiants - Disable the address breakpoints to prevent the debugger to insert them prematurely. - * CDebugTarget.java - -2003-02-05 David Inglis - - Refactor Constants to debug.core - * src/org/eclipse/cdt/debug/core/ICDTLaunchConfigurationConstants.java - - -2003-02-05 Mikhail Khodjaiants - Support of the 'Resume At C/C++ Line' action. - * IJumpToLine.java: new - * IJumpToAddress.java: new - * ICDebugTarget.java - * CDebugTarget.java - -2003-02-04 Mikhail Khodjaiants - Support of the 'Resume Without Signal' action. - * IResumeWithoutSignal.java: new - * ICDebugTarget.java - * CDebugTarget.java - * CThread.java - * CStackFrame.java - * CSignal.java - -2003-02-03 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java: - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java: - Added methods, signal(), jump() stepReturn(boolean) to - mimic gdb "return/finish". - -2003-02-03 Mikhail Khodjaiants - Filter out breakpoints set in unrelated projects. - * CDebugTarget.java - * CDebugUtils.java - -2003-02-03 Mikhail Khodjaiants - Implemention of the 'handle' command of the 'Signals' view. - * ICDISignal.java: added the 'handle' method - * CSignal.java: implementation of the 'handle' command. - -2003-02-03 Mikhail Khodjaiants - Implementing the 'Signals' view. - * CSignalManager.java: new - * CSignal.java: new - -2003-02-03 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/event/ICDIExitEvent.java: - Extends ICDIDestroyedEvent. - (getReason): New method. - * src/org/eclipse/cdt/debug/core/cdi/ICDISignalExitInfo.java: - New file. - * src/org/eclipse/cdt/debug/internal/core/CDebugTarget.java (handleExitEvent): - Change to conform to new ICDIExitEvent changes. - -2003-02-03 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/ICDISignal.java: - (getDescription): new Method replace getMeaning(). - (isStopSet): new method. - (isIgnore): new method. - -2003-01-31 Mikhail Khodjaiants - Implementing the 'Signals' view. - * ICSharedLibraryManager.java - * ICSignalManager.java: new - * ICSignal.java: new - * CSignalManager.java: new - * CSignal.java: new - * CDebugTarget.java - -2003-01-30 Mikhail Khodjaiants - Create an address breakpoint if the source locator can not find the file specified by gdb. - * CDebugTarget.java - -2003-01-29 Mikhail Khodjaiants - Managing breakpoints from the gdb console (fixes). - * CDebugModel.java - * CAddressBreakpoint.java - * CBreakpoint.java - * CFunctionBreakpoint.java - * CLineBreakpoint.java - * CWatchpoint.java - * CDebugTarget.java - -2003-01-29 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/ICDISharedLibraryManger.java (getSharedLibraryPaths): - New method. - (setSharedLibraryPaths): New method. - (setAutoLoadSymbols): New method. - -2003-01-28 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java (setCurrentFrame): - New method. - -2003-01-27 Mikhail Khodjaiants - Managing breakpoints from the gdb console. - * CDebugCorePlugin.java - * CDebugModel.java - * IAsyncExecutor.java - * ICSourceLocator.java - * CAddressBreakpoint.java - * CBreakpoint.java - * CFunctionBreakpoint.java - * CLineBreakpoint.java - * CWatchpoint.java - * CDebugTarget.java - * CSourceLocator.java - * CSourceManager.java - -2003-01-27 Mikhail Khodjaiants - Use 'equals' to compare CDI variables instead of names. - * CStackFrame.java - -2003-01-27 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIVariableObject.java: - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIArgumentObject.java: - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIRegisterObject.java: - Move to model package. - * src/org/eclipse/cdt/debug/core/cdi/ICDIRegisterManager.java: - * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableManager.java: - * src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java: - * src/org/eclipse/cdt/debug/internal/core/model/CRegisterGroup.java: - Refactor/move of the ICDIRegisterObject and ICDIVariableObject - -2003-01-25 Alain Magloire - - Added new Managers: - ICDIVariableManager - ICDIExpressionManager - ICDIRegisterManager - ICDIManager. - - Refactor of CSession to Session, CTarget to Target - and CThread to Thread. - * src/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java (getGlobalVariables): - Removed. - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java (getCurrentStackFrame): - New method. - * src/org/eclipse/cdt/debug/core/cdi/ICDIManger.java: - New interface for the managers. - * src/org/eclipse/cdt/debug/core/cdi/ICDIBreakpointManger.java: - * src/org/eclipse/cdt/debug/core/cdi/ICDIExpressionManger.java: - * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableManger.java: - * src/org/eclipse/cdt/debug/core/cdi/ICDIRegisterManger.java: - * src/org/eclipse/cdt/debug/core/cdi/ICDISignalManger.java: - * src/org/eclipse/cdt/debug/core/cdi/ICDISourceManger.java: - * src/org/eclipse/cdt/debug/core/cdi/ICDISharedLibraryManger.java: - Extends ICDIManager. - * src/org/eclipse/cdt/debug/core/cdi/ICDISession.java: - New method to return the managers. - - * src/org/eclipse/cdt/debug/internal/core/model/CDebuTarget.java: - * src/org/eclipse/cdt/debug/internal/core/model/CFormattedMemoryBlock.java: - Use the destroyEvent - - -2003-01-21 Alain Magloire - * src/org/eclipse/cdt/debug/core/cdi/event/ICDIConfiguration.java - (supportsSharedLibary): New method. - -2003-01-21 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/event/ICDISuspendedEvent.java: - Use ICDISignalReceived instead. - * src/org/eclipse/cdt/debug/core/cdi/model/ICDISignal.java: - New file, element of the SignalManager. - * src/org/eclipse/cdt/debug/core/cdi/model/ICDISignalManager.java: - Return model/ICDISignal. - * src/org/eclipse/cdt/debug/core/cdi/model/ICDISignalReceived.java: - New file. - * src/org/eclipse/cdt/debug/core/internal/core/model/CDebugTarget.java: - Use ICDISignalReceived. - * src/org/eclipse/cdt/debug/core/internal/core/model/CThread.java: - Use ICDISignalReceived. - -2003-01-21 Mikhail Khodjaiants - Retry to set breakpoints if shared library's symbols are loaded. - * CDebugTarget.java - * CThread.java - * CSharedLibraryManager.java - -2003-01-20 Mikhail Khodjaiants - Fix for the 'Show breakpoints supported by selected target' action. - * CDebugTarget.java - -2003-01-20 Alain Maglorei - - * src/build.properties: Add schema in soure.cdtdebugcore.jar - variable. - -2003-01-17 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/ICDISharedLibraryManager.java - (loadSymbols): new method takes an array of IShareLibrary - (loadSymbols): no arguments. - -2003-01-16 Mikhail Khodjaiants - Implementing the Shared Libraries view. - * ICSharedLibrary.java - * ICSharedLibraryManager.java - * CDebugElement.java - * CDebugTarget.java - * CSharedLibrary.java - * CSharedLibraryManager.java - -2003-01-16 Mikhail Khodjaiants - * ICDILoadedEvent.java: Removed. - -2003-01-16 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIStringValue.java: Removed. - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIArrayValue.java: Removed. - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIStructureValue.java: Removed. - -2003-01-16 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/ICDISession.java (getSharedLibraryManager): - New method. - * src/org/eclipse/cdt/debug/core/cdi/model/ICDISharedLibrary.java (areSymbolsLoaded): - Rename symbolsRead() to areSymbolsLoaded(). - -2003-01-15 Mikhail Khodjaiants - Added the 'ICDISharedLibraryManager' interface. - * ICDISharedLibraryManager.java - -2003-01-15 Mikhail Khodjaiants - Added new methods to the 'ICDISharedLibrary' interface. - * ICDISharedLibarary.java - -2003-01-14 Mikhail Khodjaiants - Check if thread is already disposed in the CDI event handler because the array of listeners used by EventManager - in some situations is not up to date. - * CThread.java - -2003-01-14 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableManager.java: New file. - * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableObject.java: New file. - * src/org/eclipse/cdt/debug/core/cdi/ICDIArgumentObject.java: New file. - -2003-01-13 Mikhail Khodjaiants - Added the 'IRunToAddress' interface to support the 'Run To Line' action in disassembly. - * ICDebugTarget.java: extends IRunToAddress - * IRunToAddress.java: new interface - * CDebugTarget.java: implementation - -2003-01-13 Mikhail Khodjaiants - Fix in the thread created event handler: do nothing if thread has already created. - * CDebugTarget.java - -2003-01-10 Mikhail Khodjaiants - Implementation of address breakpoints. - * ICAddressBreakpoint.java - * ICDebugTarget.java - * IDisassemblyStorage.java - * CDebugModel.java - * ICBreakpointManager.java - * CAddressBreakpoint.java - * CFunctionBreakpoint.java - * CDebugTarget.java - * CStackFrame.java - * DisassemblyManager.java - * DisassemblyStorage.java - -2003-01-06 Alain Magloire - - * build.properties: Patch from Judy Green. - -2003-01-06 Mikhail Khodjaiants - Check if project exists when generating the source locations. - * CSourceLocator.java - -2003-01-06 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/ICDIBreakpointManager.java (createLocation): - New method to take an address. - -2003-01-02 Mikhail Khodjaiants - The 'DisassemblyStorage' class implements an adapter for the 'IResource' class and returns the executable file. - * IExecFileInfo.java: added a new method: 'getExecFile' - * CDebugTarget.java - * DisassemblyStorage.java - -2003-01-02 Mikhail Khodjaiants - If breakpoint or watchpoint has been disabled before launching the debugger doesn't disable it. - * CDebugTarget.java - -2002-12-29 Mikhail Khodjaiants - Implementation of the 'Source Lookup' property page. - * IDirectorySourceLocation.java: new interface - * IProjectSourceLocation.java: new interface - * CDirectorySourceLocation.java - * CProjectSourceLocation.java - * CSourceLocator.java - -2002-12-29 Mikhail Khodjaiants - Fix in the 'supportsBreakpoints' method of CDebugTarget - * CDebugTarget.java: No need to check if the breakpoint file belongs to the source locator. - -2002-12-18 Mikhail Khodjaiants - Implementing the 'Source Lookup' property page. - * CDirectorySourceLocation.java - * CProjectSourceLocation.java - -2002-12-18 Mikhail Khodjaiants - Check if CValue has variables before calling 'getCDIVariables'. - * CValue.java - -2002-12-17 Mikhail Khodjaiants - Formatting 'char' types. - * CValue.java - * CModificationVariable.java - -2002-12-17 Mikhail Khodjaiants - The core support of the prompting source locator. - * ICSourceLocator.java - * CDebugTarget.java - * CDirectorySourceLocation.java - * CSourceLocator.java - * CSourceManager.java - * DisassemblyManager.java - -2002-12-17 Mikhail Khodjaiants - The 'getLineNumber' method of CStackFrame should return the line number associated with the stack frame if the current source locator - does not implement 'ICSourceLocator'. - * CStackFrame.java - -2002-12-17 Mikhail Khodjaiants - Changed the implementation of the 'refresh' method of CVariable. - * CVariable.java - -2002-12-16 Mikhail Khodjaiants - Added support of variable formatting. - * ICValue.java: new type - TYPE_UNKNOWN - * ICVariable: new interface for object contribution, set/get format and refresh methods - * CValue.java - * CVariable.java - -2002-12-13 Mikhail Khodjaiants - Display message when 'getStackDepth' is timed out. - * CThread.java - -2002-12-10 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIVariable.java (setFormat): - New method to change the variable formats(hexa, octal, etc..) - -2002-12-10 Mikhail Khodjaiants - If the given source file path is absolute and the source locator can not find it in the all specified locations return a FileStorage object. - * CSourceLocator.java - -2002-12-09 Mikhail Khodjaiants - Split the detail message of ICDIErrorInfo into tokens and trancate aech token if it is too long. - * CDebugTarget.java - -2002-12-08 Mikhail Khodjaiants - Display the error message with details when program is suspended because of ICDIErrorInfo. - * CDebugTarget.java - -2002-12-05 Alain Magloire - - Some debuggers like gdb/mi can provide detail information, for example - gdb/mi dumps errors in mi "log stream" output. - - * src/.../cdi/CDIException.java (getDetailMessage): New method to provide - more information it need be. - * src/.../cdi/ICDIErrorInfo.java (getDetailMessage: New method. - -2002-12-04 Mikhail Khodjaiants - Added the 'setChanged' method to ICValue. This method should common for CValue and - CArrayPartitionValue to implement 'setChanged' of CVariable correctly. - * ICValue.java - * CArrayPartitionValue.java - * CVariable.java - -2002-12-02 Mikhail Khodjaiants - Refactoring - files moved from org.eclipse.cdt.debug.core to the new package: org.eclipse.cdt.debug.core.model: - * ICBreakpoint.java - * ICDebugTarget.java - * ICExpressionEvaluator.java - * ICFunctionBreakpoint.java - * ICLineBreakpoint.java - * ICValue.java - * ICWatchpoint.java - * IDebuggerProcessSupport.java - * IDummyStackFrame.java - * IExecFileInfo.java - * IFormattedMemoryBlock.java - * IFormattedMemoryBlockRow.java - * IGlobalVariable.java - * IInstructionStep.java - * IRestart.java - * IRunToLine.java - * IStackFrameInfo.java - * IState.java - * ISwitchToFrame.java - * ISwitchToThread.java - * ICDebugTargetType.java: new interface - * IFormattedMemoryRetrieval: removed - - -2002-12-02 Mikhail Khodjaiants - Check if the underlying IFile exists when retrieving the path of global variable. - * CDebugTarget.java - -2002-12-02 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/ICDIErrorInfo.java: New file. - -2002-11-28 Mikhail Khodjaiants - 'exec-until' instead of temporary breakpoints for 'run to line'. - * CDebugTarget.java - * CThread.java - -2002-11-28 Mikhail Khodjaiants - Live editing of the memory view: removed support of the 'Save Changes' action. - * IFormattedMemoryBlock.java - * CFormattedMemoryBlock.java - -2002-11-27 Alain Magloire - - * src/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java (runUntil): new method. - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java (runUntil): new method. - -2002-11-27 Mikhail Khodjaiants - Typo in plugin.properties. - -2002-11-27 Mikhail Khodjaiants - Fire suspend event for debug target that doesn't have threads. - * CDebugTarget.java - -2002-11-27 Alain Magloire - - * src/.../debug/internal/core/model/CDebugTarget.java (isLittleEndian): - Use CoreModel.getDefault(). - (getGlobals): Use CoreModel.getDefault(). - -2002-11-24 Mikhail Khodjaiants - Fix for watchpoints. - * CSourceLocator.java - -2002-11-22 Mikhail Khodjaiants - Cache source elements to optimize search. - * CProjectSourceLocator.java - -2002-11-22 Mikhail Khodjaiants - Fix in the source locator's search algorithm. - * CProjectSourceLocator.java - -2002-11-21 Mikhail Khodjaiants - The memory view does not display values if the address expression is '0xFFFFFFFF'. - * CFormattedMemoryBlock.java - -2002-11-21 Mikhail Khodjaiants - Added the handler of ICDIDestroyedEvent to 'CFormattedMemoryBlock. - * CFormattedMemoryBlock.java - -2002-11-20 Mikhail Khodjaiants - Fix for bug 26595. - The type of the address expression has been changed from String to ICDIExpression to handle - changes of the start address. - * CDebugModel.java - * CFormattedMemoryBlock.java - * IFormattedMemoryBlock.java: added the 'isStartAddressChanged' method. - -2002-11-15 Mikhail Khodjaiants - Partial fix for bug 25956. - * DisassemblyManager.java: Filter out the instructions that do not belong to the function. - -2002-11-15 Mikhail Khodjaiants - If the backtrace is very deep the debugger is unable to parse MI output. - The limited number of stack frames will be displayed. - * IDummyStackFrame.java - * CDummyStackFrame.java - * CStackFrame.java - * CThread.java - -2002-11-14 Alain Magloire - - This is needed in post-mortem, application doing a - very deep recursion and crashing the stack size, for example - on GNU/Linux it may reach 200000 levels deep. Trying to - bring in the UI a bactrace tree of 200000 nodes is useless. - The UI could check the count and do the appropriate action - by showing ranges etc .. - - * src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java (getStackFrames): - New method to provide a range lowFrame and highFrame. - (getStackFrameCount): New method returns the depth level - of the stackframes. - -2002-11-13 Mikhail Khodjaiants - Fix for the stepping problem if the selected stack frame is not the topmost one. - * CStackFrame.java: The 'stepToFrame' method is temporary replaced by corresponding step method. - -2002-11-13 - * schema/CDebugger.exsd - * src/org/eclipse/cdt/debug/core/ICDebugConfiguration.java - * src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java - Added supported CPU to Debugger extension. - -2002-11-07 Mikhail Khodjaiants - When a referenced project is deleted it's location is null. The source locator should - check this when it returns the path array. - * CProjectSourceLocation.java - -2002-11-05 Mikhail Khodjaiants - Added support of the 'Add Global Variables' action of the Expressions view. - * IExecFileInfo.java - * IGlobalVariable.java - * CDebugTarget.java - -2002-11-03 Mikhail Khodjaiants - Added support of the formatting actions of the Memory view. - * IFormattedMemoryBlock.java - * CFormattedMemoryBlock.java - * CDebugTarget.java - * CDebugUtils.java - -2002-11-01 Mikhail Khodjaiants - Added conversion utilities to support decimal format in the Memory View. - * CDebugUtils.java - -2002-11-01 Mikhail Khodjaiants - Added the 'IExecFileInfo' interface to provide access to the executable file information. - * IExecFileInfo.java: definition - * CDebugTarget.java: implementation - -2002-10-31 Mikhail Khodjaiants - Replaced the 'IProject' argument by 'IFile' in the debug target factory methods - second phase. - * CDebugModel.java: removed unused debug target factory methods. - * CDebugTarget.java: removed unused constructor. - -2002-10-31 Mikhail Khodjaiants - Replaced the 'IProject' argument by 'IFile' in the debug target factory methods. - * CDebugModel.java - * CDebugTarget.java - -2002-10-31 Mikhail Khodjaiants - Fixed the synchronization bug. - * CFormattedMemoryBlock.java - -2002-10-30 Mikhail Khodjaiants - Implementing the 'Refresh Memory' action. - * IFormattedMemoryBlock.java: added the 'refresh' method. - * CFormattedMemoryBlock.java: implementation of the 'refresh' method. - -2002-10-30 Mikhail Khodjaiants - Implementation of the 'SaveMemoryChanges' action. - * IFormattedMemoryBlock.java: added the 'saveChanges' method. - * CFormattedMemoryBlock.java: implementation of the 'saveChanges' method. - -2002-10-30 Mikhail Khodjaiants - Fix for bug 25283. - * CDebugTarget.java: in 'setCurrentThread' method set the 'isCurrent' flag to false for the currently current thread. - -2002-10-29 Mikhail Khodjaiants - Implementing editing features of the memory view. - * IFormattedMemoryBlockRow.java - * IFormattedMemoryBlock.java - * CFormattedMemoryBlock.java - -2002-10-28 Mikhail Khodjaiants - Implementing editing features of the memory view. - * IFormattedMemoryBlockRow.java - * CFormattedMemoryBlock.java - -2002-10-27 Mikhail Khodjaiants - * IFormattedMemoryBlock.java: added the 'setItemValue' method. - * CFormattedMemoryBlock.java: implementation of the 'setItemValue' method. - -2002-10-16 Alain Magloire - - * src/.../core/cdi/model/ICDIMemoryBlock.java (refresh): - New method. - -2002-10-25 Mikhail Khodjaiants - * CDebugUtils.java: Added utilities to convert textual presentation of memory to bytes. - -2002-10-25 Mikhail Khodjaiants - * IFormattedMemoryBlock.java: Replaced 'MEMORY_BYTES_PER_ROW_...' constants by 'MEMORY_NUMBER_OF_COLUMNS_...'. - -2002-10-25 Mikhail Khodjaiants - Remove the 'setWordSize' method from 'IFormattedMemoryBlock' and use 'reformat' instead. - * IFormattedMemoryBlock.java: removed the 'setWordSize' method. - * CFormattedMemoryBlock.java: removed the implementation of 'setWordSize' method. - -2002-10-24 Mikhail Khodjaiants - Support of the "Memory Unit Size" action. - * IFormattedMemoryBlock.java: added the 'setWordsize' method. - * CFormattedMemoryBlock.java: implementation of the 'setWordSize' method. - -2002-10-24 Mikhail Khodjaiants - Moved the memory format constants from IFormattedMemoryRetrieval.java - to IFormattedMemoryBlock.java. - * IFormattedMemoryRetrieval.java - * IFormattedMemoryBlock.java - -2002-10-24 David Inglis - * CDebugTarget.java - fix exception on shutdown with a connected target, CDI session - was not terminated. - -2002-10-23 Mikhail Khodjaiants - Support for debugger console. - * CDebugModel.java: new factory methods for CDebugTarget - * IDebuggerProcessSupport: new interface that defines the debugger - process support functionality. - * CDebugTarget.java: implementation of IDebuggerProcessSupport interface. - -2002-10-22 Alain Magloire - - * src/.../cdi/ICDISession.java (getSessionProcess): - New method to let user acess directly the debugger. - -2002-10-20 Mikhail Khodjaiants - Added a functionality needed to process ICDIMemoryChangedEvent. - * IFormattedMemoryBlock.java - * CFormattedMemoryBlock.java - -2002-10-20 Alain Magloire - - * src/.../cdi/model/ICDITarget.java (getMemoryBlock): Remove - we use the MemoryManager instead. - (evaluateExpressionToValue): Remove not used. - * src/.../cdi/model/ICDISourceManager.java (getFile): Remove not use. - (setFile): Remove not use. - (reset): Remove not use. - -2002-10-19 Alain Magloire - - The UI needs to be told when the memory changes - so it can update the memory view. The responsability - of this been push to the CDI implementation to generate - events(ICDIMemoryChangedEvent) for modified memories. The - getSource() method of the class should return an ICDIMemoryBlock. - Note that the CDI implementation will only try to generate - the event for ICDIMemoryBlock that are not frozen(setFrozen()) since this - is a potentially very time consuming operation. - - * src/.../cdi/event/ICDIMemoryChangedEvent.java: New Class. - -2002-10-17 Mikhail Khodjaiants - Implementing the memory view support: - * CFormattedMemoryBlock.java: implementation of the 'dispose' method added. - -2002-10-17 Mikhail Khodjaiants - Implementing the memory view support: - * CDebugModel.java - * ICMemoryManager.java - * IFormattedMemoryBlock.java - * CFormattedMemoryBlock.java - * CDebugUtils.java - * CMemoryManager.java - -2002-10-16 Alain Magloire - - In the memory manager a string should be allowed to - create a block since an expression can be use. - - * src/.../debug.core.cdi/ICDIMemoryManager.java (createMemoryBlock): - New method that takes a string as the first argument. - -2002-10-15 Mikhail Khodjaiants - * CDebugModel.java: Implementing the memory view support. - * ICMemoryManager: Implementing the memory view support. - * IFormattedMemoryBlock.java: Implementing the memory view support. - * CDebugTarget.java: Implementing the memory view support. - * CFormattedMemoryBlock.java: Implementing the memory view support. - * CMemoryManager.java: Implementing the memory view support. - -2002-10-15 Mikhail Khodjaiants - * ICDebugConstants.java: New interface that contains the constant definitions for C/C++ debug plug-in. - * CSourceManager.java: Implementation of the 'Automatically switch to disassembly mode' preference. - -2002-10-15 Mikhail Khodjaiants - * CThread.java: The previous fix should be done only when switching between frames of the same thread. - -2002-10-14 Mikhail Khodjaiants - * CThread.java: Reset the register's change flag before switching to another frame. - -2002-10-14 Mikhail Khodjaiants - * CThread.java: Set the correct detail for 'resume' event to prevent collapsing of the variable's and - register's trees after stepping. - -2002-10-14 Mikhail Khodjaiants - * ISwitchToThread.java: New method to get the current thread. - * CDebugTarget.java: Implemented the 'getCurrentThread' method of the 'ISwitchToThread' interface. - * CDebugTarget.java: Fix in the 'setCurrentThread' method. - -2002-10-12 Alain Magloire - - * core/cdi/model/ICDIMemoryBlock (supportValueModification): - Remove the method, it should be part of a ICDIConfiguration. - - * core/cdi/ICDIMemoryManager (getBlock): Rename to getMemoryBlock - (createMemoryBlock): New method to get a memory block. - -2002-10-12 Alain Magloire - - * core/cdi/ICDILocation (getInstructions): Methods - removed is now part of SourceManager. - -2002-10-11 Mikhail Khodjaiants - * CDebugTarget.java: Added return for ISourceMode to 'getAdapter'. - * CSourceManager.java: Set the real mode when setting the source mode. - -2002-10-11 Mikhail Khodjaiants - * DisassemblyStorage.java: Changed the format of the disassembly view's output. -2002-10-11 Alain Magloire - - * ICDISourceManager.java (getMixedInstructions): Three - new methods to get the src and the intructions. - - * ICIDMixedInstruction: New Class that return the mixed - of source location and assembly instructions. - -2002-10-10 Mikhail Khodjaiants - * CVariable.java: Made the 'fChanged' field protected to access to it from the derived class (CRegister). - * CRegister.java: Added the 'hasValueChanged' method to 'CRegister'. - -2002-10-10 Mikhail Khodjaiants - * CThread.java: Check if the selected frame is current before calling 'setCurrentStackFrame'. - -2002-10-10 Mikhail Khodjaiants - * CStackFrame.java: Added Getter and Setter for 'fRefreshVariables'. - -2002-10-10 Mikhail Khodjaiants - * DisassemblyManager.java: Replaced 'getInstructions( String fileName, int lineNumber )' - by 'getInstructions( String fileName, int lineNumber, int maxLineCount )'. - -2002-10-10 Mikhail Khodjaiants - * CDebugTarget.java: Implementing the disassembly mode. - * CThread.java: Implementing the disassembly mode. - -2002-10-10 Mikhail Khodjaiants - * CSourceManager.java: Implementing the disassembly mode. - * DisassemblyManager.java: Implementing the disassembly mode. - * DisassemblyStorage.java: Implementing the disassembly mode. - * CDebugUtils.java: Added the 'toHexAddressString' method. - -2002-10-10 Alain Magloire - - * ICDISourceManager.java: Changing the getInstructions() - method to take long instead of String. +2004-03-10 Tanya Wolff + Externalized strings and marked non-translatable strings + Packages affected: + org.eclipse.cdt.debug.core + org.eclipse.cdt.debug.core.cdi + org.eclipse.cdt.debug.internal.core + org.eclipse.cdt.debug.internal.core.breakpoints + org.eclipse.cdt.debug.internal.core.model + org.eclipse.cdt.debug.internal.core.sourcelookup + +2004-03-09 David Inglis + Added PLATFORM_NATIVE const to ICDebugCongifuration + ICDebugConfiguration.java + +2004-02-20 Mikhail Khodjaiants + Fire the "suspend" event when the target is suspended because of an error. + * CDebugTarget.java + +2004-02-17 Mikhail Khodjaiants + Reset the current thread flag when resume. + * CThread.java + +2004-02-16 Mikhail Khodjaiants + Fix for bug 52135: Debugger should indicate which thread triggered breakpoint. + * CThread.java + +2004-02-11 Mikhail Khodjaiants + In the 'reset' method check if value is an instance of CValue before type casting. + * CVariable.java + +2004-02-10 Mikhail Khodjaiants + Cache the endianness flag. + * CDebugTarget.java + +2004-01-30 Mikhail Khodjaiants + Fix for bug 50981: In the 'getValue' method of CVariable 'getType' should be only called once. + * CVariable.java + +2004-01-29 Mikhail Khodjaiants + Fire sets of debug events instead of firing it one by one. + * CDebugTarget.java + * CThread.java + +2004-01-29 Mikhail Khodjaiants + Added DebugEvent factory methods to 'CDebugElement'. + * CDebugElement.java + +2004-01-15 Mikhail Khodjaiants + Fix for bug 48682: IThread.getBreakpoints() stubbed out. + * CDebugTarget.java + * CThread.java + +2003-12-23 Mikhail Khodjaiants + Fix for bug 49294: Source file doesn't change when switching between stack frames. + Do not use the breakpoint's markers for source lookup. + * CSourceManager.java + +2003-12-08 Mikhail Khodjaiants + Reset the 'terminating' flag if 'terminate' fails. + * CDebugTarget.java + +2003-11-26 Mikhail Khodjaiants + Extracted the main part of the 'breakpointAdded' method into a separate method to avoid + double checking. + * CDebugTarget.java + +2003-11-26 Mikhail Khodjaiants + Cleanup. + * CDebugModel.java + * CDebugUtils.java + * CRegisterManager.java + * CSharedLibraryManager.java + * CSignalManager.java + * CUpdateManager.java + * CDebugTarget.java + * CThread.java + * CVariable.java + +2003-11-10 Mikhail Khodjaiants + Ensure that all breakpoint creation and modification operations are running in the UI thread. + * CBreakpointManager.java + +2003-11-10 Mikhail Khodjaiants + Added synchronization to some of the 'CBreakpoint' methods. + * CBreakpoint.java + +2003-11-07 Mikhail Khodjaiants + Fix for PR 46358: NPE in the "setCurrentThread" method of "CDebugTarget". + 'setCurrentThread': check if the old current thread is not null. + * CDebugTarget.java + +2003-11-07 Mikhail Khodjaiants + Use the corresponding methods of 'ICBreakpoint' to set breakpoint properties. + * CBreakpointManager.java + +2003-11-07 Mikhail Khodjaiants + Fix for PR 46303: Exception when selecting Debug... menu. + Check if the string passed to the 'getCommonSourceLocationsFromMemento' method is not empty. + * SourceUtils.java + +2003-11-05 Mikhail Khodjaiants + 'getCDIBreakpointFile' returns wrong file for address breakpoints. + * CBreakpointManager.java + +2003-11-05 Mikhail Khodjaiants + Changed the handling of the breakpoint created event to reflect the CDI changes for deferred + breakpoints support. + * CBreakpointManager.java + * CSharedLibraryManager.java + * CDebugTarget.java + +2003-11-05 Mikhail Khodjaiants + Moved all breakpoint-related functionality to the new class - 'CBreakpointManager'. + * CBreakpointManager.java + +2003-11-05 Mikhail Khodjaiants + The argument type of the 'getBreakpointAddress' method of 'ICBreakpointManager' is changed from + 'ICBreakpoint' to 'ICBreakpointManager'. + * ICBreakpointMaanger.java + +2003-10-30 Mikhail Khodjaiants + * CSourceManager.java: implements adapters for 'ISourceMode' and 'IPersistableSourceLocator'. + +2003-10-30 Mikhail Khodjaiants + Fix for PR 45818 doesn't solve the problem. Fall back to the previous version. + * CDebugElement.java + +2003-10-30 Mikhail Khodjaiants + Fix for PR 45818: NPE when closing the workbench. + * CDebugElement.java + +2003-10-29 Mikhail Khodjaiants + * CProjectSourceLocation.java: check if the searched element name is not null or empty. + +2003-10-29 Mikhail Khodjaiants + Added the 'dispose' method to 'ICSourceLocation'. + * ICSourceLocation.java + * CDirectorySourceLocation.java + * CProjectSourceLocation.java: made 'dispose' public. + +2003-10-29 Mikhail Khodjaiants + * CProjectSourceLocation.java: added 'toString' method. + +2003-10-28 Mikhail Khodjaiants + Search only in the parent folders if the given file path is absolute. + Return a list only if the number of resulting files is > 1. + * CDirectorySourceLocation.java + +2003-10-27 Mikhail Khodjaiants + Renamed 'SourceLocationFactory' to 'SourceLookupFactory'. + Added the 'createSourceLocator' method to 'SourceLookupFactory'. + * SourceLookupFactory.java + * CSourceLocator.java + +2003-10-27 Mikhail Khodjaiants + Changed the 'getAdapter' method of 'CSourceManager' to return the adapter of + the 'ICSourceLocator' class. + * CSourceManager.java + +2003-10-26 Mikhail Khodjaiants + Fix for PR 45534: gdb/MI error in retrieving a register can lead to an empty register pane. + * CRegister.java + * CRegisterGroup.java + +2003-10-23 Mikhail Khodjaiants + Core support of the new workbench preferences: 'Source Locations' and 'Search + For Duplicate Source Files'. + * CDebugCorePlugin.java + * ICDebugConstants.java + * SourceUtils.java: new + +2003-10-20 Mikhail Khodjaiants + Core support of the "Search subfolders" option for directory source locations. + * IDirectorySourceLocation.java + * SourceLocationFactory.java + * CDirectorySourceLocation.java + +2003-10-20 Mikhail Khodjaiants + Do not interrupt the initialization of all additional source locations + if the initialization of one fails. + * CSourceLocator.java + +2003-10-17 Alain Magloire + + ICDIBreakpointManager new method + setLocationBreakpoint(...., deferred); + The new boolean "deferred" indicate if yes or not the breakpoint + should be on the deferred list if the setting fails. + + * ICDIBreakpointManager.java + +2003-10-17 Mikhail Khodjaiants + Core support of the 'Search for duplicate source files' option. + * ICSourceLocation.java + * ICSourceLocator.java + * CDirectorySourceLocation.java + * CProjectSourceLocation.java + * CSourceLocator.java + * CSourceManager.java + +2003-10-17 Mikhail Khodjaiants + If the target is suspended by a line breakpoint the source manager tries to retrieve + the file resource from the breakpoint marker. + * CSourceManager.java + * CDebugTarget.java + +2003-10-15 Mikhail Khodjaiants + Improving the source search algorithms. + * CDirectorySourceLocation.java + * CProjectSourceLocation.java + * CSourceLocator.java + +2003-10-14 Mikhail Khodjaiants + Improved the source search algorithm. + * CProjectSourceLocation.java + +2003-10-13 Mikhail Khodjaiants + Fix for bug 43372: changed the source lookup procedures to avoid the usage of 'getCanonicalPath'. + * CDirectorySourceLocation.java + * CProjectSourceLocation.java + +2003-10-07 Mikhail Khodjaiants + All methods of 'IRuntimeOptions' should throw CDI exceptions in case of failure. + * ICDIRuntimeOptions.java + +2003-10-06 Mikhail Khodjaiants + Added the "isArgument" method to ICVariable. This method is used to distinguish + the arguments in the Variables View. + * ICVariable.java + * CVariable.java + +2003-09-30 Mikhail Khodjaiants + Use the new 'equals' method of ICDIVaraiableObject to compare variables. + * CVariable.java + +2003-09-30 Alain Magloire + + ICDIVariableObject been updated with a new method. + * CVariable.java + * ICDIVariable.java + +2003-09-29 Mikhail Khodjaiants + Fix for PR 43856: Format doesn't work for wchar_t. + * CValue.java + +2003-09-23 Mikhail Khodjaiants + Changed the 'hasStackFrames' method of the 'CThread' class to return true regardless if + the thread contains stack frames or not. This method is only used by UI to update the thread label. + * CThread.java + +2003-09-17 Mikhail Khodjaiants + Temporary fix for PR 39061: Attach source does not work for applications compiled in CygWin. + * CDirectorySourceLocation.java + +2003-09-16 Mikhail Khodjaiants + Fix for PR 38468: Error in files location. + Use the 'getCanonicalPath' method of the 'File' class to obtain the file name. + * CDirectorySourceLocation.java + * CProjectSourceLocation.java + * CSourceLocator.java + +2003-09-15 Mikhail Khodjaiants + Fix for PR 43101: Breakpoint exception when source doesn't exist. + The 'fireBreakpointChanged' method of 'BreakpointManager' is used to notify + the UI components that a breakpoint is added. This is a part of new implementation + to support deffered breakpoints. For new breakpoints the 'delta' argument is null. + Check if delta is not null to avoid this problem. + * CDebugTarget.java + +2003-09-11 Mikhail Khodjaiants + Detail Pane values for casted variables. + * CVariable.java: the qualified name should be chached in the InternalVariable instance + * CArrayPartition.java: added new field to store the chached value of the qualified name + +2003-10-11 Mikhail Khodjaiants + Moving the shared library search paths block to mi UI. + * ICDTLaunchConfigurationConstants.java: moved the 'ATTR_DEBUGGER_SOLIB_PATH' attribute to mi. + +2003-09-10 Mikhail Khodjaiants + If breakpoint is a line breakpoint check if source locator contains this file + instead of container project. + * CDebugTarget.java + +2003-09-10 Mikhail Khodjaiants + Fix for PR 42790: Memory view is not cleared when target is terminated. + * CFormattedMemoryBlock.java: fire 'terminate' event when block is disposing. + * CMemoryManager.java: implementation of 'dispose'. + +2003-09-09 Mikhail Khodjaiants + Fix for PR 39680: Gash in error message for memory view. + * CDebugModel.java + +2003-09-09 Mikhail Khodjaiants + Final fix for PR 39484: Move 'getType' method from ICDIVariable to ICDIVaraibleObject. + * CArrayPartition.java + * CVariable.java + +2003-09-09 Mikhail Khodjaiants + Regrouping the launch configuration constants. + * ICDTLaunchConfigurationConstants.java + +2003-09-09 Mikhail Khodjaiants + Removed the internal handling of the 'stop-on-shared-library-events' option - + will be moved to the mi. + Try to set the deferred breakpoints only when: + - a shared library is loaded + - the symbols of shared library are loaded + * CSharedLibararyManager.java + * CDebugTarget.java + * CThread.java + +2003-09-09 Mikhail Khodjaiants + Added the 'getSharedLibraryPaths' and 'setSharedLibraryPaths' methods + to the 'ICDISharedLibraryManager' interface. + * ICDISharedLibraryManager.java + +2003-08-29 Mikhail Khodjaiants + Implementation of deferred breakpoints. + * CDebugTarget.java + * CThread.java + +2003-08-29 Mikhail Khodjaiants + Moving shared library features from mi to CDI. + Added new launch configuration constants to ICDTLaunchConfigurationConstants. + +2003-08-29 Mikhail Khodjaiants + Moving shared library features from mi to CDI. + Added new methods to ICDISharedLibraryManager: + - isAutoLoadSymbols + - isStopOnSolibEvents + - setAutoLoadSymbols + - setStopOnSolibEvents + - supportsAutoLoadSymbols + - supportsStopOnSolibEvents + * ICDISharedLibraryManager.java + +2003-08-21 Mikhail Khodjaiants + Removed the 'isAccessSpecifier' method from CVaraiable. + * CArrayPartitionValue.java + * CValue.java + * CVariable.java + +2003-08-21 Mikhail Khodjaiants + Use the names of array's elements returned by CDI. + * CVariable.java + +2003-08-20 Mikhail Khodjaiants + Unable to terminate post mortem debugging session. + Extended the 'CDebugTarget' class to overload the 'terminate' and 'canTerminate' methods. + * CDebugModel.java + * CCoreFileDebugTarget.java: new + +2003-08-19 Mikhail Khodjaiants + Create ICDIVariableObject for each array partition to compute a detail panel's value. + * CArrayPartition.java + * CVariable.java + +2003-08-18 Alain Magloire + + ICDISharedLibraryEvent.java: + New file, to notify a breakpoint from a shared lib event. + +2003-08-13 Mikhail Khodjaiants + * ICDIVariableManager.java: removed the 'type' parameter from the 'getVariableObjectAsArray' method + * ICastToArray.java: removed the 'type' parameter from the 'castToArray' method + * CVariable.java: changed the implementation of the 'ICastToArray' interface + +2003-08-13 Mikhail Khodjaiants + * ICDIVariable.java: removed the 'isEditable' method + * ICDIVariableObject.java: added the 'isEditable', 'getQualifiedName' and 'sizeof' methods + * ICDIArrayValue.java: added the 'getVariables(int start, int length)' method + * ICType.java: added the 'isReference' method + * ICValue.java: added the 'dispose' method + * CArrayPartition.java + * CArrayPartitionValue.java + * CGlobalVariable.java + * CType.java + * CValue.java + * CValueFactory.java + * CVariable.java + Create 'var-objects' only for the requested array partitions. + +2003-08-07 Alain Magloire + + * ICDIVariableManager.java: + Remove the unused method getVariableObject(ICDIStackframe, String) + and getArgumentObject(ICDIStackframe, String). + Rename getVariableObject(String, String, String) to + getGlobalVariableObject. + + * CDebugModel.java: Refactoring of ICDIVariableManager. + +2003-08-06 Mikhail Khodjaiants + Added the implementation of the 'getType' and 'getTypeName' methods of the 'CVaraible:ErrorVariable' class. + * CVariable.java + +2003-08-06 Mikhail Khodjaiants + Uncommented the 'sizeof' method of 'ICDIVariableObject'. + * ICDIVariableObject.java + * CVariable.java + +2003-08-06 Alain Magloire + + Move some of the methods in ICDIVariableObject. + + * src/org/eclipse/cdt/debug/core/cdi/ICDIVariable.java + * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableObject.java + +2003-08-05 Mikhail Khodjaiants + Use the 'getReferencedProject' method to obtain all referenced projects. + * CDebugUtils.java + +2003-08-05 Mikhail Khodjaiants + Invalidate error variables when the session is resumed. + * CVariable.java + +2003-07-30 Mikhail Khodjaiants + Moved the 'getReferencedProject' method to 'CDebugUtils'. Added the cycle checking. + * CDebugUtils.java + * CSourceLocator.java + +2003-07-28 Mikhail Khodjaiants + Minimize the number of the "evaluate expression" requests when changing the value of the floating point types. + * CDebugUtils.java + +2003-07-28 Mikhail Khodjaiants + Refactoring: moved the 'isNaN', 'isPositiveInfinity' and 'isNegativeInfinity' to the 'CDebugUtils' class. + * ICValue.java + * CValue.java + * CDebugUtils.java + +2003-07-28 Mikhail Khodjaiants + Refactoring: moved the 'CDebugUtils' class to the 'org.eclipse.cdt.debug.core' package - + the methods of this class are mostly used in UI plugins. + * CDebugUtils.java + * CDebugModel.java + * DisassemblyStorage.java + * CAddressBreakpoint.java + * CDebugTarget.java + * CFormattedMemoryBlock.java + * CDebugElement.java + * CDirectorySourceLocation.java + * CProjectSourceLocation.java + * CSourceLocator.java + +2003-07-28 Mikhail Khodjaiants + Cleanup. Removed the unused 'getNumberOfChildren' method from the 'CValue' class. + * CValue.java + +2003-07-28 Mikhail Khodjaiants + Cleanup. Removed the 'reset' and 'getQualifiedName' methods from the 'ICVaraible' interface. + * ICVariable.java + * CVariable.java + +2003-07-24 Mikhail Khodjaiants + Fix for PR 40696. If the project contains the reference to a project that is + deleted from the workspace the source locator tries to get the location of deleted project. + * CProjectSourceLocation.java + +2003-07-22 Mikhail Khodjaiants + Create a special type of ICDIVariable (ErrorVariable) if request to gdb fails. + * CVariable.java + * CValue.java + +2003-07-22 Mikhail Khodjaiants + Use the 'getReferencedProjects' method of 'CSourceLocator' to obtain the list of referenced projects. + Use the correct tag for additional source locations. + * CSourceLocator.java + +2003-07-17 Mikhail Khodjaiants + Fix for PR 39936: GDB hits modified conditional breakpoints when condition not satisfied. + This is a work around for GDB PR MI/1289. + * CDebugTarget.java + +2003-07-17 Mikhail Khodjaiants + Automatically update the list of source locations when the list of the referenced + projects is modified. + * ICSourceLocator.java: added new method - 'getProject' + * IProjectSourceLocation.java: added new method - 'isGeneric' + * SourceLocationFactory.java: new class factory for source locations. + * CSourceLocator.java + * CDirectorySourceLocation.java + * CProjectSourceLocation.java + * CSourceManager.java + * CDebugTarget.java + +2003-06-30 Mikhail Khodjaiants + Fix for PR 39372: Breakpoints don't get activated when symbols are loaded. + +2003-06-30 Mikhail Khodjaiants + Fix for PR 39100: CDT/Debug core is asking value 16 times. + * CValue.java + +2003-06-30 Mikhail Khodjaiants + Fix for PR 39087: Cache the MI answer once we know if the variable is writable. + * CVariable.java + +2003-06-24 Mikhail Khodjaiants + All local var_objects are destroyed when a thread other than current is selected. + CVariable has to be invalidated if a "destroyed" event has been received. + * CVariable.java + +2003-06-23 Mikhail Khodjaiants + Fix for ClassCastException in CStackFrame. + * CStackFrame.java + +2003-06-20 Mikhail Khodjaiants + Variable bookkeeping (phase 0.1). + * ICDTLaunchConfigurationConstants.java: add a new attribute - ATTR_DEBUGGER_ENABLE_VARIABLE_BOOKKEEPING. + * ICVariable.java: added the 'canEnableDisable', 'isEnabled' and 'setEnabled' methods + * CArrayPartition.java + * CExpression.java + * CModificationVariable.java + * CRegister.java + * CStackFrame.java + * CVariable.java + +2003-06-18 Mikhail Khodjaiants + Incorrect casting in the 'setChanged' method of CVariable. + * CVariable.java + +2003-06-11 Mikhail Khodjaiants + The unused 'getUnderlyingValueString' method has been removed from ICValue and CValue. + The methods 'setChanged' and 'getUnderlyingValue' are only for internal usage and + have been removed from ICValue. + * ICValue.java + * CArrayPartitionValue.java + * CValueFactory.java + * CValue.java + * CVariable.java + +2003-06-10 Mikhail Khodjaiants + Refactoring: moved the type and value related methods from ICVariable to ICType and ICValue. + * ICType.java: new + * ICVariable.java + * ICValue.java + * CArrayPartitionValue.java + * CType.java + * CValue.java + * CVariable.java + +2003-06-09 Mikhail Khodjaiants + Added default format preferences for variables, registers and expressions. + * CExpression.java + * CRegister.java + * CVariable.java + +2003-06-09 Mikhail Khodjaiants + Renamed the 'refresh' method of ICVariable to 'reset'. Added new method - + 'reset' to CValue instead of using the 'setChanged' method. + * ICVariable.java + * CValue.java + * CVariable.java + +2003-06-06 Mikhail Khodjaiants + Mark as changed parent variables. + * CVariable.java + +2003-06-06 Mikhail Khodjaiants + Refresh only the state of variable when handling a change event. + * CVariable.java + +2003-06-06 Mikhail Khodjaiants + Correct presentation of the full names of variables that contain pointers. + * CVariable.java + +2003-06-06 Mikhail Khodjaiants + Changed the implementation of the'getName' method of CVariable to return + the actual names of array members. + * CArrayPartition.java + * CArrayPartitionValue.java + * CVariable.java + +2003-06-05 Mikhail Khodjaiants + Core support of infinite values of the floating point types. + * ICVariable.java + * CVariable.java + +2003-06-05 Mikhail Khodjaiants + Renamed the 'computeDetail' method of the 'ICValue' interface to 'evaluateAsExpression'. + * ICValue.java + * CArrayPartitionValue.java + * CValue.java + +2003-06-05 Mikhail Khodjaiants + Removed the redundant methods from the 'ICDIFloatingPointValue' interface. + * ICDIFloatingPointValue.java + * CValue.java + * CVariable.java + +2003-06-04 Mikhail Khodjaiants + Implementing the core support of the detail panel. + * ICValue.java + * ICVariable.java + * CArrayPartitionValue.java + * CValue.java + * CVariable.java + +2003-06-04 Mikhail Khodjaiants + Added the processing of reference values. + * CValue.java + +2003-06-04 Mikhail Khodjaiants + Implementing the core support of UI features for types and internal formating + (instead of using the format features provided by gdb). + * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIFloatingPointValue.java + * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIPointerValue.java + * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIReferenceValue.java + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIPointerValue.java: removed + * src/org/eclipse/cdt/debug/core/model/ICVariable.java + * src/org/eclipse/cdt/debug/internal/core/model/CVariable.java + * src/org/eclipse/cdt/debug/core/model/CValue.java + +2003-05-29 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIIntegralValue.java: + public long longValue() throws CDIException; + public int intValue() throws CDIException; + public short shortValue() throws CDIException; + public int byteValue() throws CDIException; + +2003-05-29 Mikhail Khodjaiants + Added new methods to ICVariable to vizualize arrays and structures based + on the new CDI types. + * ICVariable.java + * CVariable.java + +2003-05-27 Mikhail Khodjaiants + Check if the location of breakpoint is eligible for the target + when setting, removing or changing the propeties. + * CDebugTarget.java + +2003-03-23 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIVariable.java: + (getType): New method. + +2003-05-26 Mikhail Khodjaiants + First draft of the tracepoints in the CDI. + * ICDITraceManager.java + * ICDITraceSnapshot.java + * ICDITracepoint.java + +2003-05-23 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIType.java: extends + ICDIObject. + +2003-05-23 Alain Magloire + + First draft of the implementing the types, org.eclipse.cdt.debug.core.cdi.model.type.* + in the CDI interface. + +2003-05-14 Mikhail Khodjaiants + Created preference for the maximum number of disassembly instructions. + * CDebugTarget.java + * ICDebugConstants.java + * DisassemblyManager.java + +2003-05-12 Mikhail Khodjaiants + Moved the generation of expressions for global variables to the mi plugin. + * CDebugTarget.java + * CExpression.java + * CDebugModel.java + +2003-05-12 Mikhail Khodjaiants + When generating disassembly instructions by file name and line number check + if the frame address is in the address range of the instruction set. + If the instruction set doesn't contain the frame address generate a new instruction set + based on the frame address. + * DisassemblyManager.java + +2003-05-08 Mikhail Khodjaiants + In the "terminate" event handler of the session manager check the targets that + belong to the current session. + * SessionManager.java + +2003-05-07 Mikhail Khodjaiants + Set the error status if the debug target is suspended because of an error. + * CDebugTarget.java + +2003-05-06 Mikhail Khodjaiants + Check if the underlying debugger supports expression evaluation in the "canEvaluate" method. + * CDebugTarget.java + +2003-05-06 Mikhail Khodjaiants + Added tooltips to breakpoints and watchpoints. + * CAddressBreakpoint.java + * CBreakpoint.java + * CFunctionBreakpoint.java + * CLineBreakpoint.java + * CWatchpoint.java + +2003-05-05 Mikhail Khodjaiants + Added a status functionality to the CDebugElement class. + This allows to reflect the problems occured in the element in UI. + * ICDebugElementErrorStatus.java: new + * CDebugElement.java: implementation + * CThread.java + * CDebugTarget.java + +2003-05-05 Mikhail Khodjaiants + New method in ICBreakpoint - "isConditional". + * ICBreakpoint.java + * CBreakpoint.java + +2003-05-02 Mikhail Khodjaiants + Notify the Launch view about stack changes when handling the 'Resumed' event. + * CThread.java + +2003-05-01 Mikhail Khodjaiants + Implementation of termination policy. + * ICDIConfiguration.java: new "terminateSessionOnExit" method added. + * SessionManager.java: terminates the launch when all targets are terminated or disconnected. + * CDebugCorePlugin.java: provides an access to the current session managers. + * CDebugTarget.java + +2003-04-25 Mikhail Khodjaiants + Fix for bug 36909 + * DisassemblyManager.java: check if the address of a stack frame is not 0; + +2003-04-23 Mikhail Khodjaiants + Check for null pointer in 'isCharacter' and 'isCharPointer'. + * CValue.java + +2003-04-23 Mikhail Khodjaiants + Throw DebugException when getSignals() fails. + * CSignalManager.java + +2003-04-23 Mikhail Khodjaiants + Additional checks for the situation when the stack depth is not 0 and + the frame array is empty. + * CThread.java + +2003-04-22 Mikhail Khodjaiants + Disconnect: terminate should be called from the disconnect event handler. + * CDebugTarget.java + +2003-04-21 Mikhail Khodjaiants + Disconnnect: target should be disconnected before terminate the session + because of race condition. + * CDebugTarget.java + +2003-04-21 Mikhail Khodjaiants + Unnecessary error logging (bug 36682). + * CValue.java + +2003-04-21 Mikhail Khodjaiants + Temporary fix for character values. + * CValue.java + +2003-04-20 Alain Magloire + + * CValue.java: + Was throwing a IndexOutOfBoundException. + +2003-04-17 Mikhail Khodjaiants + Check if the underlying cdi variable is not null before accessing it. + * CVariable.java + +2003-04-16 Mikhail Khodjaiants + Quick fix for variable values. + * CValue.java + +2003-04-14 Alain Magloire + + StringBuffer.indexOf() is 1.4.x only + + * CDebugUtils.java + +2003-04-11 Mikhail Khodjaiants + Core support of function and method breakpoints. + * CDebugModel.java + * ICFunctionBreakpoint.java + * CDebugUtils.java + * CFunctionBreakpoint.java + * CDebugTarget.java + +2003-04-09 Mikhail Khodjaiants + Core support of function breakpoints. + * CDebugModel.java + * ICFunctionBreakpoint.java + * CDebugTarget.java + +2003-04-07 Mikhail Khodjaiants + Changed the message text in the 'getStackDepth' method. + * CThread.java + +2003-04-07 Mikhail Khodjaiants + Changed the message generated in the 'targetRequestFailed' methods of CDebugElement. + * CDebugElement.java + +2003-04-07 Mikhail Khodjaiants + Replaced 'toString()' by 'getMessage()' for CDI exceptions. + * CSharedLibraryManager.java + * CUpdateManager.java + * CDebugTarget.java + * CStackFrame.java + * CThread.java + * CVariable.java + +2003-04-01 Mikhail Khodjaiants + Moved the 'Auto-Refresh' preferences from CDebugUIPlugin to use it for initialization of update managers. + * ICDebugConstants.java + * CRegisterManager.java + * CSharedLibraryManager.java + +2003-04-01 Mikhail Khodjaiants + Removed the 'fDebugTarget' field from CSharedLibraryManager. + * CSharedLibraryManager.java + +2003-03-31 Mikhail Khodjaiants + The new abstract class ('CUpdateManager') is added to provide a basic implementation of ICUpdateManager. + CSignalManager, CSharedLibraryManager and CRegisterManager extend this class. + * ICRegisterManager.java: new + * CRegisterManager.java: new + * CSharedLibraryManager.java + * CSignalManager.java + * CUpdateManager.java: new + * CDebugTarget.java + * CRegisterGroup.java + +2003-03-28 Mikhail Khodjaiants + Use the 'exists' method of the 'IFile' interface instead of using 'toFile().exists()' for 'IPath'. + * CDirectorySourceLocation.java + * CSourceLocator.java + +2003-03-28 Mikhail Khodjaiants + Do not log the exceptions thrown by the breakpoint setting methods. + * CDebugTarget.java + +2003-03-28 Mikhail Khodjaiants + Added default format preference constants for variables, expressions and registers. + * ICDebugConstants.java + +2003-03-28 Mikhail Khodjaiants + Core support of the 'Run To C/C++ Line' and 'Resume At C/C++ Line' actions for external files. + * IJumpToLine.java + * IRunToLine.java + * CDebugTarget.java + * CThread.java + +2003-03-27 Mikhail Khodjaiants + Applied patch from Chris Songer: Assembly View Fixups + * ICDIInstruction.java + * DisassemblyStorage.java + +2003-03027 Alain Magloire + + Adjust the code refactor in the CoreModel for IBinary + * CDebugTarget.java + +2003-03-18 Mikhail Khodjaiants + Removed the gdb-specific variable parsing. + * ICValue.java + * CArrayPartition.java + * CArrayPartitionValue.java + * CModificationVariable.java + * CStackFrame.java + * CValue.java + * CVariable.java + * CArrayEntryVariable.java: removed + * CLocalVariable.java: removed + +2003-03-17 Mikhail Khodjaiants + Replace range by start index and length in 'Display As Array' action. + * ICDIVariableManager.java + * ICastToArray.java + * CVariable.java + +2003-03-14 Mikhail Khodjaiants + Added the 'isEditable' and 'hasChildren' methods to the 'ICVariable' interface. + * ICVariable.java + * CVariable.java + * CModificationVariable.java + +2003-03-14 Mikhail Khodjaiants + Cross-referencing projects cause the debugger to go into a stack overflow exception. + Make sure that there is only one source location for each referenced project. + * CSourceLocator.java + +2003-03-13 Alain Magloire + + No longer throw exceptions. + * src/org/eclipse/cdt/internal/core/model/CFormattedMemoryBlock.java + * src/org/eclipse/cdt/internal/core/model/CVariable.java + +2003-03-13 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIVariable.java: + Also extends ICDIVariableObject. + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIArgument.java: + Also extends ICDIArgumentObject. + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIRegister.java: + Also extends ICDIRegisterObject + * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableManager.java: + getLocalVariableObject() new method. + +2003-03-09 Mikhail Khodjaiants + New ICDIVariableManager methods for the 'DisplayAsArray' and 'CastToType' actions. + * CVariable.java + +2003-03-11 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableManager.java: + New methods getVariableObjectAsArray(), getVariableObjectAsType(). + +2003-03-09 Mikhail Khodjaiants + Core support of the "Display As Array" action. + * ICastToArray.java + * CLocalVariable.java + * CVariable.java + +2003-03-09 Mikhail Khodjaiants + Core support of the "Cast To Type" and "Restore Default Type" actions. + * ICastToType.java: new + * CLocalVariable.java + * CStackFrame.java + * CVariable.java + +2003-02-24 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/ICDIRegisterObject.java: + * src/org/eclipse/cdt/debug/core/cdi/ICDIArgumentObject.java: + Reorganized imports. + +2003-02-20 Mikhail Khodjaiants + No need to set the source search path to the debugger. + * ICSourceLocation.java + * CDirectorySourceLocation.java + * CProjectSourceLocation.java + * CDebugTarget.java + +2003-02-20 Mikhail Khodjaiants + Changed to 'public' the access modifier of the 'setAssocition' method. + * CDirectorySourceLocation.java + +2003-02-18 Mikhail Khodjaiants + Added persistency to the source locator. + * plugin.xml: added dependency on the 'org.apache.xerces' plugin + * ICSourceLocation.java + * CDebugUtils.java + * CDirectorySourceLocation.java + * CProjectSourceLocation.java + * CSourceLocator.java + * CSourceManager.java + +2003-02-13 Mikhail Khodjaiants + Undo changes because the 'asyncExec' method of the 'DebugPlugin' class has added since version 2.1. + * IAsyncExecutor.java: removed + * CDebugCorePlugin.java + +2003-02-13 Mikhail Khodjaiants + Use the 'asyncExec' method of the 'DebugPlugin' class. + * IAsyncExecutor.java: removed + * CDebugCorePlugin.java + +2003-02-12 Mikhail Khodjaiants + The gdb-specific 'setAutoSolibMethod' method is removed from ICDISharedLibraryManager. + * ICDISharedLibraryManager.java + * CSharedLibraryManager.java + +2003-02-12 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/mode/ICDITarget.java (getSharedLibraries): + Remove action done via the manager. + +2003-02-12 Mikhail Khodjaiants + Use ICDIRegisterManager instead of ICDITarget. + * ICDITarget.java + * CDebugTarget.java + * CRegisterGroup.java + +2003-02-11 Mikhail Khodjaiants + The 'auto load symbols' action support in ICSharedLibraryManager. + * ICSharedLibraryManager.java + * CSharedLibraryManager.java + +2003-02-11 Mikhail Khodjaiants + The 'load symbols' actions support in ICSharedLibraryManager. + * ICSharedLibraryManager.java + * CSharedLibraryManager.java + +2003-02-10 Mikhail Khodjaiants + Support of update ('Refresh', 'Auto-Refresh) actions. + * ICUpdateManager.java: new + * ICSharedLibraryManager.java + * CSharedLibraryManager.java + +2003-02-10 Mikhail Khodjaiants + Disable the address breakpoints to prevent the debugger to insert them prematurely. + * CDebugTarget.java + +2003-02-05 David Inglis + + Refactor Constants to debug.core + * src/org/eclipse/cdt/debug/core/ICDTLaunchConfigurationConstants.java + + +2003-02-05 Mikhail Khodjaiants + Support of the 'Resume At C/C++ Line' action. + * IJumpToLine.java: new + * IJumpToAddress.java: new + * ICDebugTarget.java + * CDebugTarget.java + +2003-02-04 Mikhail Khodjaiants + Support of the 'Resume Without Signal' action. + * IResumeWithoutSignal.java: new + * ICDebugTarget.java + * CDebugTarget.java + * CThread.java + * CStackFrame.java + * CSignal.java + +2003-02-03 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java: + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java: + Added methods, signal(), jump() stepReturn(boolean) to + mimic gdb "return/finish". + +2003-02-03 Mikhail Khodjaiants + Filter out breakpoints set in unrelated projects. + * CDebugTarget.java + * CDebugUtils.java + +2003-02-03 Mikhail Khodjaiants + Implemention of the 'handle' command of the 'Signals' view. + * ICDISignal.java: added the 'handle' method + * CSignal.java: implementation of the 'handle' command. + +2003-02-03 Mikhail Khodjaiants + Implementing the 'Signals' view. + * CSignalManager.java: new + * CSignal.java: new + +2003-02-03 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/event/ICDIExitEvent.java: + Extends ICDIDestroyedEvent. + (getReason): New method. + * src/org/eclipse/cdt/debug/core/cdi/ICDISignalExitInfo.java: + New file. + * src/org/eclipse/cdt/debug/internal/core/CDebugTarget.java (handleExitEvent): + Change to conform to new ICDIExitEvent changes. + +2003-02-03 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/ICDISignal.java: + (getDescription): new Method replace getMeaning(). + (isStopSet): new method. + (isIgnore): new method. + +2003-01-31 Mikhail Khodjaiants + Implementing the 'Signals' view. + * ICSharedLibraryManager.java + * ICSignalManager.java: new + * ICSignal.java: new + * CSignalManager.java: new + * CSignal.java: new + * CDebugTarget.java + +2003-01-30 Mikhail Khodjaiants + Create an address breakpoint if the source locator can not find the file specified by gdb. + * CDebugTarget.java + +2003-01-29 Mikhail Khodjaiants + Managing breakpoints from the gdb console (fixes). + * CDebugModel.java + * CAddressBreakpoint.java + * CBreakpoint.java + * CFunctionBreakpoint.java + * CLineBreakpoint.java + * CWatchpoint.java + * CDebugTarget.java + +2003-01-29 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/ICDISharedLibraryManger.java (getSharedLibraryPaths): + New method. + (setSharedLibraryPaths): New method. + (setAutoLoadSymbols): New method. + +2003-01-28 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java (setCurrentFrame): + New method. + +2003-01-27 Mikhail Khodjaiants + Managing breakpoints from the gdb console. + * CDebugCorePlugin.java + * CDebugModel.java + * IAsyncExecutor.java + * ICSourceLocator.java + * CAddressBreakpoint.java + * CBreakpoint.java + * CFunctionBreakpoint.java + * CLineBreakpoint.java + * CWatchpoint.java + * CDebugTarget.java + * CSourceLocator.java + * CSourceManager.java + +2003-01-27 Mikhail Khodjaiants + Use 'equals' to compare CDI variables instead of names. + * CStackFrame.java + +2003-01-27 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIVariableObject.java: + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIArgumentObject.java: + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIRegisterObject.java: + Move to model package. + * src/org/eclipse/cdt/debug/core/cdi/ICDIRegisterManager.java: + * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableManager.java: + * src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java: + * src/org/eclipse/cdt/debug/internal/core/model/CRegisterGroup.java: + Refactor/move of the ICDIRegisterObject and ICDIVariableObject + +2003-01-25 Alain Magloire + + Added new Managers: + ICDIVariableManager + ICDIExpressionManager + ICDIRegisterManager + ICDIManager. + + Refactor of CSession to Session, CTarget to Target + and CThread to Thread. + * src/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java (getGlobalVariables): + Removed. + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java (getCurrentStackFrame): + New method. + * src/org/eclipse/cdt/debug/core/cdi/ICDIManger.java: + New interface for the managers. + * src/org/eclipse/cdt/debug/core/cdi/ICDIBreakpointManger.java: + * src/org/eclipse/cdt/debug/core/cdi/ICDIExpressionManger.java: + * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableManger.java: + * src/org/eclipse/cdt/debug/core/cdi/ICDIRegisterManger.java: + * src/org/eclipse/cdt/debug/core/cdi/ICDISignalManger.java: + * src/org/eclipse/cdt/debug/core/cdi/ICDISourceManger.java: + * src/org/eclipse/cdt/debug/core/cdi/ICDISharedLibraryManger.java: + Extends ICDIManager. + * src/org/eclipse/cdt/debug/core/cdi/ICDISession.java: + New method to return the managers. + + * src/org/eclipse/cdt/debug/internal/core/model/CDebuTarget.java: + * src/org/eclipse/cdt/debug/internal/core/model/CFormattedMemoryBlock.java: + Use the destroyEvent + + +2003-01-21 Alain Magloire + * src/org/eclipse/cdt/debug/core/cdi/event/ICDIConfiguration.java + (supportsSharedLibary): New method. + +2003-01-21 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/event/ICDISuspendedEvent.java: + Use ICDISignalReceived instead. + * src/org/eclipse/cdt/debug/core/cdi/model/ICDISignal.java: + New file, element of the SignalManager. + * src/org/eclipse/cdt/debug/core/cdi/model/ICDISignalManager.java: + Return model/ICDISignal. + * src/org/eclipse/cdt/debug/core/cdi/model/ICDISignalReceived.java: + New file. + * src/org/eclipse/cdt/debug/core/internal/core/model/CDebugTarget.java: + Use ICDISignalReceived. + * src/org/eclipse/cdt/debug/core/internal/core/model/CThread.java: + Use ICDISignalReceived. + +2003-01-21 Mikhail Khodjaiants + Retry to set breakpoints if shared library's symbols are loaded. + * CDebugTarget.java + * CThread.java + * CSharedLibraryManager.java + +2003-01-20 Mikhail Khodjaiants + Fix for the 'Show breakpoints supported by selected target' action. + * CDebugTarget.java + +2003-01-20 Alain Maglorei + + * src/build.properties: Add schema in soure.cdtdebugcore.jar + variable. + +2003-01-17 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/ICDISharedLibraryManager.java + (loadSymbols): new method takes an array of IShareLibrary + (loadSymbols): no arguments. + +2003-01-16 Mikhail Khodjaiants + Implementing the Shared Libraries view. + * ICSharedLibrary.java + * ICSharedLibraryManager.java + * CDebugElement.java + * CDebugTarget.java + * CSharedLibrary.java + * CSharedLibraryManager.java + +2003-01-16 Mikhail Khodjaiants + * ICDILoadedEvent.java: Removed. + +2003-01-16 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIStringValue.java: Removed. + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIArrayValue.java: Removed. + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIStructureValue.java: Removed. + +2003-01-16 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/ICDISession.java (getSharedLibraryManager): + New method. + * src/org/eclipse/cdt/debug/core/cdi/model/ICDISharedLibrary.java (areSymbolsLoaded): + Rename symbolsRead() to areSymbolsLoaded(). + +2003-01-15 Mikhail Khodjaiants + Added the 'ICDISharedLibraryManager' interface. + * ICDISharedLibraryManager.java + +2003-01-15 Mikhail Khodjaiants + Added new methods to the 'ICDISharedLibrary' interface. + * ICDISharedLibarary.java + +2003-01-14 Mikhail Khodjaiants + Check if thread is already disposed in the CDI event handler because the array of listeners used by EventManager + in some situations is not up to date. + * CThread.java + +2003-01-14 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableManager.java: New file. + * src/org/eclipse/cdt/debug/core/cdi/ICDIVariableObject.java: New file. + * src/org/eclipse/cdt/debug/core/cdi/ICDIArgumentObject.java: New file. + +2003-01-13 Mikhail Khodjaiants + Added the 'IRunToAddress' interface to support the 'Run To Line' action in disassembly. + * ICDebugTarget.java: extends IRunToAddress + * IRunToAddress.java: new interface + * CDebugTarget.java: implementation + +2003-01-13 Mikhail Khodjaiants + Fix in the thread created event handler: do nothing if thread has already created. + * CDebugTarget.java + +2003-01-10 Mikhail Khodjaiants + Implementation of address breakpoints. + * ICAddressBreakpoint.java + * ICDebugTarget.java + * IDisassemblyStorage.java + * CDebugModel.java + * ICBreakpointManager.java + * CAddressBreakpoint.java + * CFunctionBreakpoint.java + * CDebugTarget.java + * CStackFrame.java + * DisassemblyManager.java + * DisassemblyStorage.java + +2003-01-06 Alain Magloire + + * build.properties: Patch from Judy Green. + +2003-01-06 Mikhail Khodjaiants + Check if project exists when generating the source locations. + * CSourceLocator.java + +2003-01-06 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/ICDIBreakpointManager.java (createLocation): + New method to take an address. + +2003-01-02 Mikhail Khodjaiants + The 'DisassemblyStorage' class implements an adapter for the 'IResource' class and returns the executable file. + * IExecFileInfo.java: added a new method: 'getExecFile' + * CDebugTarget.java + * DisassemblyStorage.java + +2003-01-02 Mikhail Khodjaiants + If breakpoint or watchpoint has been disabled before launching the debugger doesn't disable it. + * CDebugTarget.java + +2002-12-29 Mikhail Khodjaiants + Implementation of the 'Source Lookup' property page. + * IDirectorySourceLocation.java: new interface + * IProjectSourceLocation.java: new interface + * CDirectorySourceLocation.java + * CProjectSourceLocation.java + * CSourceLocator.java + +2002-12-29 Mikhail Khodjaiants + Fix in the 'supportsBreakpoints' method of CDebugTarget + * CDebugTarget.java: No need to check if the breakpoint file belongs to the source locator. + +2002-12-18 Mikhail Khodjaiants + Implementing the 'Source Lookup' property page. + * CDirectorySourceLocation.java + * CProjectSourceLocation.java + +2002-12-18 Mikhail Khodjaiants + Check if CValue has variables before calling 'getCDIVariables'. + * CValue.java + +2002-12-17 Mikhail Khodjaiants + Formatting 'char' types. + * CValue.java + * CModificationVariable.java + +2002-12-17 Mikhail Khodjaiants + The core support of the prompting source locator. + * ICSourceLocator.java + * CDebugTarget.java + * CDirectorySourceLocation.java + * CSourceLocator.java + * CSourceManager.java + * DisassemblyManager.java + +2002-12-17 Mikhail Khodjaiants + The 'getLineNumber' method of CStackFrame should return the line number associated with the stack frame if the current source locator + does not implement 'ICSourceLocator'. + * CStackFrame.java + +2002-12-17 Mikhail Khodjaiants + Changed the implementation of the 'refresh' method of CVariable. + * CVariable.java + +2002-12-16 Mikhail Khodjaiants + Added support of variable formatting. + * ICValue.java: new type - TYPE_UNKNOWN + * ICVariable: new interface for object contribution, set/get format and refresh methods + * CValue.java + * CVariable.java + +2002-12-13 Mikhail Khodjaiants + Display message when 'getStackDepth' is timed out. + * CThread.java + +2002-12-10 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIVariable.java (setFormat): + New method to change the variable formats(hexa, octal, etc..) + +2002-12-10 Mikhail Khodjaiants + If the given source file path is absolute and the source locator can not find it in the all specified locations return a FileStorage object. + * CSourceLocator.java + +2002-12-09 Mikhail Khodjaiants + Split the detail message of ICDIErrorInfo into tokens and trancate aech token if it is too long. + * CDebugTarget.java + +2002-12-08 Mikhail Khodjaiants + Display the error message with details when program is suspended because of ICDIErrorInfo. + * CDebugTarget.java + +2002-12-05 Alain Magloire + + Some debuggers like gdb/mi can provide detail information, for example + gdb/mi dumps errors in mi "log stream" output. + + * src/.../cdi/CDIException.java (getDetailMessage): New method to provide + more information it need be. + * src/.../cdi/ICDIErrorInfo.java (getDetailMessage: New method. + +2002-12-04 Mikhail Khodjaiants + Added the 'setChanged' method to ICValue. This method should common for CValue and + CArrayPartitionValue to implement 'setChanged' of CVariable correctly. + * ICValue.java + * CArrayPartitionValue.java + * CVariable.java + +2002-12-02 Mikhail Khodjaiants + Refactoring - files moved from org.eclipse.cdt.debug.core to the new package: org.eclipse.cdt.debug.core.model: + * ICBreakpoint.java + * ICDebugTarget.java + * ICExpressionEvaluator.java + * ICFunctionBreakpoint.java + * ICLineBreakpoint.java + * ICValue.java + * ICWatchpoint.java + * IDebuggerProcessSupport.java + * IDummyStackFrame.java + * IExecFileInfo.java + * IFormattedMemoryBlock.java + * IFormattedMemoryBlockRow.java + * IGlobalVariable.java + * IInstructionStep.java + * IRestart.java + * IRunToLine.java + * IStackFrameInfo.java + * IState.java + * ISwitchToFrame.java + * ISwitchToThread.java + * ICDebugTargetType.java: new interface + * IFormattedMemoryRetrieval: removed + + +2002-12-02 Mikhail Khodjaiants + Check if the underlying IFile exists when retrieving the path of global variable. + * CDebugTarget.java + +2002-12-02 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/ICDIErrorInfo.java: New file. + +2002-11-28 Mikhail Khodjaiants + 'exec-until' instead of temporary breakpoints for 'run to line'. + * CDebugTarget.java + * CThread.java + +2002-11-28 Mikhail Khodjaiants + Live editing of the memory view: removed support of the 'Save Changes' action. + * IFormattedMemoryBlock.java + * CFormattedMemoryBlock.java + +2002-11-27 Alain Magloire + + * src/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java (runUntil): new method. + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java (runUntil): new method. + +2002-11-27 Mikhail Khodjaiants + Typo in plugin.properties. + +2002-11-27 Mikhail Khodjaiants + Fire suspend event for debug target that doesn't have threads. + * CDebugTarget.java + +2002-11-27 Alain Magloire + + * src/.../debug/internal/core/model/CDebugTarget.java (isLittleEndian): + Use CoreModel.getDefault(). + (getGlobals): Use CoreModel.getDefault(). + +2002-11-24 Mikhail Khodjaiants + Fix for watchpoints. + * CSourceLocator.java + +2002-11-22 Mikhail Khodjaiants + Cache source elements to optimize search. + * CProjectSourceLocator.java + +2002-11-22 Mikhail Khodjaiants + Fix in the source locator's search algorithm. + * CProjectSourceLocator.java + +2002-11-21 Mikhail Khodjaiants + The memory view does not display values if the address expression is '0xFFFFFFFF'. + * CFormattedMemoryBlock.java + +2002-11-21 Mikhail Khodjaiants + Added the handler of ICDIDestroyedEvent to 'CFormattedMemoryBlock. + * CFormattedMemoryBlock.java + +2002-11-20 Mikhail Khodjaiants + Fix for bug 26595. + The type of the address expression has been changed from String to ICDIExpression to handle + changes of the start address. + * CDebugModel.java + * CFormattedMemoryBlock.java + * IFormattedMemoryBlock.java: added the 'isStartAddressChanged' method. + +2002-11-15 Mikhail Khodjaiants + Partial fix for bug 25956. + * DisassemblyManager.java: Filter out the instructions that do not belong to the function. + +2002-11-15 Mikhail Khodjaiants + If the backtrace is very deep the debugger is unable to parse MI output. + The limited number of stack frames will be displayed. + * IDummyStackFrame.java + * CDummyStackFrame.java + * CStackFrame.java + * CThread.java + +2002-11-14 Alain Magloire + + This is needed in post-mortem, application doing a + very deep recursion and crashing the stack size, for example + on GNU/Linux it may reach 200000 levels deep. Trying to + bring in the UI a bactrace tree of 200000 nodes is useless. + The UI could check the count and do the appropriate action + by showing ranges etc .. + + * src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java (getStackFrames): + New method to provide a range lowFrame and highFrame. + (getStackFrameCount): New method returns the depth level + of the stackframes. + +2002-11-13 Mikhail Khodjaiants + Fix for the stepping problem if the selected stack frame is not the topmost one. + * CStackFrame.java: The 'stepToFrame' method is temporary replaced by corresponding step method. + +2002-11-13 + * schema/CDebugger.exsd + * src/org/eclipse/cdt/debug/core/ICDebugConfiguration.java + * src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java + Added supported CPU to Debugger extension. + +2002-11-07 Mikhail Khodjaiants + When a referenced project is deleted it's location is null. The source locator should + check this when it returns the path array. + * CProjectSourceLocation.java + +2002-11-05 Mikhail Khodjaiants + Added support of the 'Add Global Variables' action of the Expressions view. + * IExecFileInfo.java + * IGlobalVariable.java + * CDebugTarget.java + +2002-11-03 Mikhail Khodjaiants + Added support of the formatting actions of the Memory view. + * IFormattedMemoryBlock.java + * CFormattedMemoryBlock.java + * CDebugTarget.java + * CDebugUtils.java + +2002-11-01 Mikhail Khodjaiants + Added conversion utilities to support decimal format in the Memory View. + * CDebugUtils.java + +2002-11-01 Mikhail Khodjaiants + Added the 'IExecFileInfo' interface to provide access to the executable file information. + * IExecFileInfo.java: definition + * CDebugTarget.java: implementation + +2002-10-31 Mikhail Khodjaiants + Replaced the 'IProject' argument by 'IFile' in the debug target factory methods - second phase. + * CDebugModel.java: removed unused debug target factory methods. + * CDebugTarget.java: removed unused constructor. + +2002-10-31 Mikhail Khodjaiants + Replaced the 'IProject' argument by 'IFile' in the debug target factory methods. + * CDebugModel.java + * CDebugTarget.java + +2002-10-31 Mikhail Khodjaiants + Fixed the synchronization bug. + * CFormattedMemoryBlock.java + +2002-10-30 Mikhail Khodjaiants + Implementing the 'Refresh Memory' action. + * IFormattedMemoryBlock.java: added the 'refresh' method. + * CFormattedMemoryBlock.java: implementation of the 'refresh' method. + +2002-10-30 Mikhail Khodjaiants + Implementation of the 'SaveMemoryChanges' action. + * IFormattedMemoryBlock.java: added the 'saveChanges' method. + * CFormattedMemoryBlock.java: implementation of the 'saveChanges' method. + +2002-10-30 Mikhail Khodjaiants + Fix for bug 25283. + * CDebugTarget.java: in 'setCurrentThread' method set the 'isCurrent' flag to false for the currently current thread. + +2002-10-29 Mikhail Khodjaiants + Implementing editing features of the memory view. + * IFormattedMemoryBlockRow.java + * IFormattedMemoryBlock.java + * CFormattedMemoryBlock.java + +2002-10-28 Mikhail Khodjaiants + Implementing editing features of the memory view. + * IFormattedMemoryBlockRow.java + * CFormattedMemoryBlock.java + +2002-10-27 Mikhail Khodjaiants + * IFormattedMemoryBlock.java: added the 'setItemValue' method. + * CFormattedMemoryBlock.java: implementation of the 'setItemValue' method. + +2002-10-16 Alain Magloire + + * src/.../core/cdi/model/ICDIMemoryBlock.java (refresh): + New method. + +2002-10-25 Mikhail Khodjaiants + * CDebugUtils.java: Added utilities to convert textual presentation of memory to bytes. + +2002-10-25 Mikhail Khodjaiants + * IFormattedMemoryBlock.java: Replaced 'MEMORY_BYTES_PER_ROW_...' constants by 'MEMORY_NUMBER_OF_COLUMNS_...'. + +2002-10-25 Mikhail Khodjaiants + Remove the 'setWordSize' method from 'IFormattedMemoryBlock' and use 'reformat' instead. + * IFormattedMemoryBlock.java: removed the 'setWordSize' method. + * CFormattedMemoryBlock.java: removed the implementation of 'setWordSize' method. + +2002-10-24 Mikhail Khodjaiants + Support of the "Memory Unit Size" action. + * IFormattedMemoryBlock.java: added the 'setWordsize' method. + * CFormattedMemoryBlock.java: implementation of the 'setWordSize' method. + +2002-10-24 Mikhail Khodjaiants + Moved the memory format constants from IFormattedMemoryRetrieval.java + to IFormattedMemoryBlock.java. + * IFormattedMemoryRetrieval.java + * IFormattedMemoryBlock.java + +2002-10-24 David Inglis + * CDebugTarget.java + fix exception on shutdown with a connected target, CDI session + was not terminated. + +2002-10-23 Mikhail Khodjaiants + Support for debugger console. + * CDebugModel.java: new factory methods for CDebugTarget + * IDebuggerProcessSupport: new interface that defines the debugger + process support functionality. + * CDebugTarget.java: implementation of IDebuggerProcessSupport interface. + +2002-10-22 Alain Magloire + + * src/.../cdi/ICDISession.java (getSessionProcess): + New method to let user acess directly the debugger. + +2002-10-20 Mikhail Khodjaiants + Added a functionality needed to process ICDIMemoryChangedEvent. + * IFormattedMemoryBlock.java + * CFormattedMemoryBlock.java + +2002-10-20 Alain Magloire + + * src/.../cdi/model/ICDITarget.java (getMemoryBlock): Remove + we use the MemoryManager instead. + (evaluateExpressionToValue): Remove not used. + * src/.../cdi/model/ICDISourceManager.java (getFile): Remove not use. + (setFile): Remove not use. + (reset): Remove not use. + +2002-10-19 Alain Magloire + + The UI needs to be told when the memory changes + so it can update the memory view. The responsability + of this been push to the CDI implementation to generate + events(ICDIMemoryChangedEvent) for modified memories. The + getSource() method of the class should return an ICDIMemoryBlock. + Note that the CDI implementation will only try to generate + the event for ICDIMemoryBlock that are not frozen(setFrozen()) since this + is a potentially very time consuming operation. + + * src/.../cdi/event/ICDIMemoryChangedEvent.java: New Class. + +2002-10-17 Mikhail Khodjaiants + Implementing the memory view support: + * CFormattedMemoryBlock.java: implementation of the 'dispose' method added. + +2002-10-17 Mikhail Khodjaiants + Implementing the memory view support: + * CDebugModel.java + * ICMemoryManager.java + * IFormattedMemoryBlock.java + * CFormattedMemoryBlock.java + * CDebugUtils.java + * CMemoryManager.java + +2002-10-16 Alain Magloire + + In the memory manager a string should be allowed to + create a block since an expression can be use. + + * src/.../debug.core.cdi/ICDIMemoryManager.java (createMemoryBlock): + New method that takes a string as the first argument. + +2002-10-15 Mikhail Khodjaiants + * CDebugModel.java: Implementing the memory view support. + * ICMemoryManager: Implementing the memory view support. + * IFormattedMemoryBlock.java: Implementing the memory view support. + * CDebugTarget.java: Implementing the memory view support. + * CFormattedMemoryBlock.java: Implementing the memory view support. + * CMemoryManager.java: Implementing the memory view support. + +2002-10-15 Mikhail Khodjaiants + * ICDebugConstants.java: New interface that contains the constant definitions for C/C++ debug plug-in. + * CSourceManager.java: Implementation of the 'Automatically switch to disassembly mode' preference. + +2002-10-15 Mikhail Khodjaiants + * CThread.java: The previous fix should be done only when switching between frames of the same thread. + +2002-10-14 Mikhail Khodjaiants + * CThread.java: Reset the register's change flag before switching to another frame. + +2002-10-14 Mikhail Khodjaiants + * CThread.java: Set the correct detail for 'resume' event to prevent collapsing of the variable's and + register's trees after stepping. + +2002-10-14 Mikhail Khodjaiants + * ISwitchToThread.java: New method to get the current thread. + * CDebugTarget.java: Implemented the 'getCurrentThread' method of the 'ISwitchToThread' interface. + * CDebugTarget.java: Fix in the 'setCurrentThread' method. + +2002-10-12 Alain Magloire + + * core/cdi/model/ICDIMemoryBlock (supportValueModification): + Remove the method, it should be part of a ICDIConfiguration. + + * core/cdi/ICDIMemoryManager (getBlock): Rename to getMemoryBlock + (createMemoryBlock): New method to get a memory block. + +2002-10-12 Alain Magloire + + * core/cdi/ICDILocation (getInstructions): Methods + removed is now part of SourceManager. + +2002-10-11 Mikhail Khodjaiants + * CDebugTarget.java: Added return for ISourceMode to 'getAdapter'. + * CSourceManager.java: Set the real mode when setting the source mode. + +2002-10-11 Mikhail Khodjaiants + * DisassemblyStorage.java: Changed the format of the disassembly view's output. +2002-10-11 Alain Magloire + + * ICDISourceManager.java (getMixedInstructions): Three + new methods to get the src and the intructions. + + * ICIDMixedInstruction: New Class that return the mixed + of source location and assembly instructions. + +2002-10-10 Mikhail Khodjaiants + * CVariable.java: Made the 'fChanged' field protected to access to it from the derived class (CRegister). + * CRegister.java: Added the 'hasValueChanged' method to 'CRegister'. + +2002-10-10 Mikhail Khodjaiants + * CThread.java: Check if the selected frame is current before calling 'setCurrentStackFrame'. + +2002-10-10 Mikhail Khodjaiants + * CStackFrame.java: Added Getter and Setter for 'fRefreshVariables'. + +2002-10-10 Mikhail Khodjaiants + * DisassemblyManager.java: Replaced 'getInstructions( String fileName, int lineNumber )' + by 'getInstructions( String fileName, int lineNumber, int maxLineCount )'. + +2002-10-10 Mikhail Khodjaiants + * CDebugTarget.java: Implementing the disassembly mode. + * CThread.java: Implementing the disassembly mode. + +2002-10-10 Mikhail Khodjaiants + * CSourceManager.java: Implementing the disassembly mode. + * DisassemblyManager.java: Implementing the disassembly mode. + * DisassemblyStorage.java: Implementing the disassembly mode. + * CDebugUtils.java: Added the 'toHexAddressString' method. + +2002-10-10 Alain Magloire + + * ICDISourceManager.java: Changing the getInstructions() + method to take long instead of String. diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugCorePlugin.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugCorePlugin.java index 76e4ae846ca..49d59a6f20f 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugCorePlugin.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugCorePlugin.java @@ -6,7 +6,10 @@ package org.eclipse.cdt.debug.core; +import java.text.MessageFormat; import java.util.HashMap; +import java.util.MissingResourceException; +import java.util.ResourceBundle; import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocation; import org.eclipse.cdt.debug.internal.core.DebugConfiguration; @@ -26,6 +29,7 @@ import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.IBreakpointManager; import org.eclipse.debug.core.model.IBreakpoint; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; /** * The main plugin class to be used in the desktop. @@ -39,13 +43,21 @@ public class CDebugCorePlugin extends Plugin //The shared instance. private static CDebugCorePlugin plugin; + private static ResourceBundle fgResourceBundle; private HashMap fDebugConfigurations; private IAsyncExecutor fAsyncExecutor = null; private SessionManager fSessionManager = null; - + + static { + try { + fgResourceBundle = ResourceBundle.getBundle("org.eclipse.cdt.debug.core.CDebugCorePluginResources"); //$NON-NLS-1$ + } catch (MissingResourceException x) { + fgResourceBundle = null; + } + } /** * The constructor. */ @@ -92,6 +104,27 @@ public class CDebugCorePlugin extends Plugin return getDefault().getDescriptor().getUniqueIdentifier(); } + public static String getResourceString(String key) { + try { + return fgResourceBundle.getString(key); + } catch (MissingResourceException e) { + return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$ + } catch (NullPointerException e) { + return "#" + key + "#"; //$NON-NLS-1$ //$NON-NLS-2$ + } + } + public static String getFormattedString(String key, String arg) { + return MessageFormat.format(getResourceString(key), new String[] { arg }); + } + + public static String getFormattedString(String key, String[] args) { + return MessageFormat.format(getResourceString(key), args); + } + + public static ResourceBundle getResourceBundle() { + return fgResourceBundle; + } + /** * Logs the specified throwable with this plug-in's log. * @@ -140,7 +173,7 @@ public class CDebugCorePlugin extends Plugin private void initializeDebugConfiguration() { IPluginDescriptor descriptor= getDefault().getDescriptor(); - IExtensionPoint extensionPoint= descriptor.getExtensionPoint("CDebugger"); + IExtensionPoint extensionPoint= descriptor.getExtensionPoint("CDebugger"); //$NON-NLS-1$ IConfigurationElement[] infos= extensionPoint.getConfigurationElements(); fDebugConfigurations = new HashMap(infos.length); for (int i= 0; i < infos.length; i++) { @@ -163,7 +196,7 @@ public class CDebugCorePlugin extends Plugin } ICDebugConfiguration dbgCfg = (ICDebugConfiguration) fDebugConfigurations.get(id); if ( dbgCfg == null ) { - IStatus status = new Status(IStatus.ERROR, getUniqueIdentifier(), 100, "No such debugger", null); + IStatus status = new Status(IStatus.ERROR, getUniqueIdentifier(), 100, CDebugCorePlugin.getResourceString("core.CDebugCorePlugin.No_such_debugger"), null); //$NON-NLS-1$ throw new CoreException(status); } return dbgCfg; diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugCorePluginResources.properties b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugCorePluginResources.properties new file mode 100644 index 00000000000..2aec1acb4b4 --- /dev/null +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugCorePluginResources.properties @@ -0,0 +1,46 @@ +core.CDebugCorePlugin.No_such_debugger=No such debugger +core.CDebugCorePlugin.Unable_to_set_temp_brkpt=Unable to set temporary breakpoint in main.\nReason: {0}\nContinue? + +internal.core.sourcelookup.CSourceLocator.Unable_to_create_memento=Unable to create memento for C/C++ source locator. +internal.core.sourcelookup.CSourceLocator.Unable_to_restore_src_locator=Unable to restore C/C++ source locator - invalid format. +internal.core.sourcelookup.CSourceLocator.Exception_initializing_src_locator=Exception occurred initializing source locator. +internal.core.sourcelookup.CSourceLocator.Error_initializing_src_location=Error initializing directory source location. + +internal.core.sourcelookup.CProjectSourceLocation.Unable_to_initialize_src_location_no_project_name=Unable to initialize source location - missing project name +internal.core.sourcelookup.CProjectSourceLocation.Exception_intializing_src_location=Exception occurred initializing source location. +internal.core.sourcelookup.CProjectSourceLocation.Unable_to_create_memento_for_src_location=Unable to create memento for C/C++ project source location {0}. + +internal.core.sourcelookup.CDirectorySourceLocation.Unable_to_create_memento=Unable to create memento for C/C++ directory source location {0} +internal.core.sourcelookup.CDirectorySourceLocation.Unable_to_initialize_src_location_no_dir=Unable to initialize source location - missing directory path +internal.core.sourcelookup.CDirectorySourceLocation.Unable_to_initialize_src_location_invalid_dir=Unable to initialize source location - invalid directory path {0} +internal.core.sourcelookup.CDirectorySourceLocation.Exception_initializing_src_location=Exception occurred initializing source location. +internal.core.CBreakpointManager.Set_breakpoint_failed=Set breakpoint failed. Reason: +internal.core.CBreakpointManager.Delete_breakpoint_failed=Delete breakpoint failed. Reason: +internal.core.CBreakpointManager.Change_brkpt_properties_failed=Change breakpoint properties failed. Reason: +internal.core.breakpoints.CLineBreakpoint.Line_breakpoint=Line breakpoint: +internal.core.breakpoints.CLineBreakpoint.line=line: +internal.core.breakpoints.CBreakpoint.ignore_count=ignore count: +internal.core.breakpoints.CWatchpoint.Write_watchpoint=Write watchpoint +internal.core.breakpoints.CWatchpoint.Read_watchpoint=Read watchpoint +internal.core.breakpoints.CWatchpoint.Access_watchpoint=Access watchpoint +internal.core.breakpoints.CWatchpoint.Watchpoint=Watchpoint: +internal.core.breakpoints.CWatchpoint.at=at +internal.core.breakpoints.CAddressBreakpoint.Address_breakpoint=Address breakpoint: +internal.core.breakpoints.CAddressBreakpoint.address=\ [address: +internal.core.breakpoints.CFunctionBreakpoint.Function_breakpoint=Function breakpoint: +internal.core.breakpoints.CFunctionBreakpoint.function=function: +internal.core.breakpoints.CBreakpoint.if=\ if +internal.core.model.CStackFrame.function_at_file={0} at {1}: +internal.core.model.CArrayPartition.Type_not_available=Type is not available. +internal.core.model.CArrayPartition.Qualified_name_not_available=Qualified name is not available. +internal.core.model.CVariable.Value_modification_unsupported=Variable does not support value modification. +internal.core.model.CVariable.Qualified_name_unavailable=Qualified name is not available. +internal.core.model.CVariable.Type_unavailable=Type is not available. +internal.core.model.CVariable.not_available=not available: {0} +internal.core.model.CValue.Not_available=not available: +internal.core.model.CModificationVariable.Unable_to_set_value=Unable to set value. +internal.core.model.CThread.Stack_not_available=Stack is not available: +internal.core.model.CDebugTarget.Disconnect_session_unsupported=Session does not support \'disconnect\' +internal.core.model.CDebugTarget.Execution_suspended_because_of_error=The execution of program is suspended because of error. +internal.core.model.CDebugElement.Target_request_failed=Target request failed: +internal.core.DisassemblyStorage.disassembly=disassembly diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java index 0244754777b..5d0af3988d5 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java @@ -659,14 +659,15 @@ public class CDebugModel private static void stopInMain( CDebugTarget target ) throws DebugException { - ICDILocation location = target.getCDISession().getBreakpointManager().createLocation( "", "main", 0 ); + ICDILocation location = target.getCDISession().getBreakpointManager().createLocation( "", "main", 0 ); //$NON-NLS-1$ //$NON-NLS-2$ try { target.setInternalTemporaryBreakpoint( location ); } catch( DebugException e ) { - String message = MessageFormat.format( "Unable to set temporary breakpoint in main.\nReason: {0}\nContinue?", new String[] { e.getStatus().getMessage() } ); + //String message = MessageFormat.format( "Unable to set temporary breakpoint in main.\nReason: {0}\nContinue?", new String[] { e.getStatus().getMessage() } ); + String message = CDebugCorePlugin.getFormattedString("core.CDebugCorePlugin.Unable_to_set_temp_brkpt", new String[] { e.getStatus().getMessage() } ); //$NON-NLS-1$ IStatus newStatus = new Status( IStatus.WARNING, e.getStatus().getPlugin(), ICDebugInternalConstants.STATUS_CODE_QUESTION, diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugUtils.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugUtils.java index 180842d712e..8024d23c2c0 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugUtils.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugUtils.java @@ -93,7 +93,7 @@ public class CDebugUtils { String addressString = Long.toHexString( address ); StringBuffer sb = new StringBuffer( 10 ); - sb.append( "0x" ); + sb.append( "0x" ); //$NON-NLS-1$ for ( int i = 0; i < 8 - addressString.length(); ++i ) { sb.append( '0' ); @@ -276,7 +276,7 @@ public class CDebugUtils OutputFormat format = new OutputFormat(); format.setIndenting( true ); format.setLineSeparator( lineSeparator ); //$NON-NLS-1$ - Serializer serializer = SerializerFactory.getSerializerFactory( Method.XML ).makeSerializer( new OutputStreamWriter( s, "UTF8" ), format ); + Serializer serializer = SerializerFactory.getSerializerFactory( Method.XML ).makeSerializer( new OutputStreamWriter( s, "UTF8" ), format ); //$NON-NLS-1$ serializer.asDOMSerializer().serialize( doc ); return s.toString( "UTF8" ); //$NON-NLS-1$ } @@ -294,7 +294,7 @@ public class CDebugUtils OutputFormat format = new OutputFormat(); format.setIndenting( true ); format.setLineSeparator( System.getProperty( "line.separator" ) ); //$NON-NLS-1$ - Serializer serializer = SerializerFactory.getSerializerFactory( Method.XML ).makeSerializer( new OutputStreamWriter( s, "UTF8" ), format ); + Serializer serializer = SerializerFactory.getSerializerFactory( Method.XML ).makeSerializer( new OutputStreamWriter( s, "UTF8" ), format ); //$NON-NLS-1$ serializer.asDOMSerializer().serialize( doc ); return s.toString( "UTF8" ); //$NON-NLS-1$ } @@ -316,13 +316,13 @@ public class CDebugUtils { String functionName = function.getElementName(); StringBuffer name = new StringBuffer( functionName ); - if ( functionName.indexOf( "::" ) != -1 ) + if ( functionName.indexOf( "::" ) != -1 ) //$NON-NLS-1$ { String[] params = function.getParameterTypes(); name.append( '(' ); if ( params.length == 0 ) { - name.append( "void" ); + name.append( "void" ); //$NON-NLS-1$ } else { diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/ICDTLaunchConfigurationConstants.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/ICDTLaunchConfigurationConstants.java index 6c687b5c3c9..0b79757a741 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/ICDTLaunchConfigurationConstants.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/ICDTLaunchConfigurationConstants.java @@ -1,4 +1,5 @@ package org.eclipse.cdt.debug.core; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; /* * (c) Copyright QNX Software System 2002. @@ -8,12 +9,12 @@ package org.eclipse.cdt.debug.core; public interface ICDTLaunchConfigurationConstants { - public static final String CDT_LAUNCH_ID = "org.eclipse.cdt.launch"; + public static final String CDT_LAUNCH_ID = "org.eclipse.cdt.launch"; //$NON-NLS-1$ /** * This is the launch type id. */ - public static final String ID_LAUNCH_C_APP = "org.eclipse.cdt.launch.localCLaunch"; + public static final String ID_LAUNCH_C_APP = "org.eclipse.cdt.launch.localCLaunch"; //$NON-NLS-1$ /** * Launch configuration attribute key. The value is a name of @@ -105,19 +106,21 @@ public interface ICDTLaunchConfigurationConstants { * Launch configuration attribute value. The key is ATTR_DEBUGGER_START_MODE. * Startup debugger running the program. */ - public static String DEBUGGER_MODE_RUN = "run"; + public static String DEBUGGER_MODE_RUN = "run"; //$NON-NLS-1$ /** * Launch configuration attribute value. The key is ATTR_DEBUGGER_START_MODE. * Startup debugger and attach to running process. */ - public static String DEBUGGER_MODE_ATTACH = "attach"; + public static String DEBUGGER_MODE_ATTACH = "attach"; //$NON-NLS-1$ + /** * Launch configuration attribute value. The key is ATTR_DEBUGGER_START_MODE. * Startup debugger to view a core file. */ - public static String DEBUGGER_MODE_CORE = "core"; + public static String DEBUGGER_MODE_CORE = "core"; //$NON-NLS-1$ + /** * Status code indicating that the Eclipse runtime does not support diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/CDIException.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/CDIException.java index 27a53de8090..1d0142ffdf4 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/CDIException.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/CDIException.java @@ -14,7 +14,7 @@ package org.eclipse.cdt.debug.core.cdi; */ public class CDIException extends Exception { - String details = ""; + String details = ""; //$NON-NLS-1$ public CDIException() { super(); diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java index 8a2a2801715..a34971bcce7 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java @@ -333,15 +333,15 @@ public class CBreakpointManager implements ICBreakpointManager, ICDIEventListene } catch( CoreException e ) { - requestFailed( "Set breakpoint failed. Reason: " + e.getMessage(), e ); + requestFailed( CDebugCorePlugin.getResourceString("internal.core.CBreakpointManager.Set_breakpoint_failed") + e.getMessage(), e ); //$NON-NLS-1$ } catch( NumberFormatException e ) { - requestFailed( "Set breakpoint failed. Reason: " + e.getMessage(), e ); + requestFailed( CDebugCorePlugin.getResourceString("internal.core.CBreakpointManager.Set_breakpoint_failed") + e.getMessage(), e ); //$NON-NLS-1$ } catch( CDIException e ) { - targetRequestFailed( "Set breakpoint failed. Reason: " + e.getMessage(), e ); + targetRequestFailed( CDebugCorePlugin.getResourceString("internal.core.CBreakpointManager.Set_breakpoint_failed") + e.getMessage(), e ); //$NON-NLS-1$ } } @@ -375,7 +375,7 @@ public class CBreakpointManager implements ICBreakpointManager, ICDIEventListene } catch( CDIException e ) { - targetRequestFailed( "Delete breakpoint failed. Reason: " + e.getMessage(), e ); + targetRequestFailed( CDebugCorePlugin.getResourceString("internal.core.CBreakpointManager.Delete_breakpoint_failed") + e.getMessage(), e ); //$NON-NLS-1$ } } } @@ -411,7 +411,7 @@ public class CBreakpointManager implements ICBreakpointManager, ICDIEventListene int ignoreCount = breakpoint.getIgnoreCount(); int oldIgnoreCount = delta.getAttribute( ICBreakpoint.IGNORE_COUNT, 0 ); String condition = breakpoint.getCondition(); - String oldCondition = delta.getAttribute( ICBreakpoint.CONDITION, "" ); + String oldCondition = delta.getAttribute( ICBreakpoint.CONDITION, "" ); //$NON-NLS-1$ if ( enabled != oldEnabled ) { cdiBreakpoint.setEnabled( enabled ); @@ -424,11 +424,11 @@ public class CBreakpointManager implements ICBreakpointManager, ICDIEventListene } catch( CoreException e ) { - requestFailed( "Change breakpoint properties failed. Reason: " + e.getMessage(), e ); + requestFailed( CDebugCorePlugin.getResourceString("internal.core.CBreakpointManager.Change_brkpt_properties_failed") + e.getMessage(), e ); //$NON-NLS-1$ } catch( CDIException e ) { - targetRequestFailed( "Change breakpoint properties failed. Reason: " + e.getMessage(), e ); + targetRequestFailed( CDebugCorePlugin.getResourceString("internal.core.CBreakpointManager.Change_brkpt_properties_failed") + e.getMessage(), e ); //$NON-NLS-1$ } } @@ -631,7 +631,7 @@ public class CBreakpointManager implements ICBreakpointManager, ICDIEventListene { ICDIBreakpointManager bm = getCDIBreakpointManager(); String function = breakpoint.getFunction(); - String fileName = ( function != null && function.indexOf( "::" ) == -1 ) ? breakpoint.getFileName() : null; + String fileName = ( function != null && function.indexOf( "::" ) == -1 ) ? breakpoint.getFileName() : null; //$NON-NLS-1$ ICDILocation location = bm.createLocation( fileName, function, -1 ); ICDIBreakpoint cdiBreakpoint = bm.setLocationBreakpoint( ICDIBreakpoint.REGULAR, location, null, null, true ); getBreakpointMap().put( breakpoint, cdiBreakpoint ); diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CRegisterManager.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CRegisterManager.java index 2a2590a0cff..fab66bec753 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CRegisterManager.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CRegisterManager.java @@ -124,7 +124,7 @@ public class CRegisterManager extends CUpdateManager implements ICRegisterManage } if ( regObjects != null ) { - fRegisterGroups.add( new CRegisterGroup( getDebugTarget(), "Main", regObjects ) ); + fRegisterGroups.add( new CRegisterGroup( getDebugTarget(), "Main", regObjects ) ); //$NON-NLS-1$ } } diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java index 6a128f5c517..330b61f0109 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java @@ -13,6 +13,7 @@ import org.eclipse.cdt.debug.core.ICDebugger; import org.eclipse.core.boot.BootLoader; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IConfigurationElement; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; public class DebugConfiguration implements ICDebugConfiguration { /** @@ -21,7 +22,7 @@ public class DebugConfiguration implements ICDebugConfiguration { private IConfigurationElement fElement; private HashSet fModes; private HashSet fCPUs; - public static final String NATIVE = "native"; + public static final String NATIVE = "native"; //$NON-NLS-1$ public DebugConfiguration(IConfigurationElement element) { fElement = element; @@ -32,12 +33,12 @@ public class DebugConfiguration implements ICDebugConfiguration { } public ICDebugger getDebugger() throws CoreException { - return (ICDebugger) getConfigurationElement().createExecutableExtension("class"); + return (ICDebugger) getConfigurationElement().createExecutableExtension("class"); //$NON-NLS-1$ } public String getName() { String name = getConfigurationElement().getAttribute("name"); //$NON-NLS-1$ - return name != null ? name : ""; + return name != null ? name : ""; //$NON-NLS-1$ } public String getID() { @@ -45,7 +46,7 @@ public class DebugConfiguration implements ICDebugConfiguration { } public String getPlatform() { - String platform = getConfigurationElement().getAttribute("platform"); + String platform = getConfigurationElement().getAttribute("platform"); //$NON-NLS-1$ if (platform == null) { return NATIVE; } diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DisassemblyStorage.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DisassemblyStorage.java index 71f2b15d685..3cbad6d6589 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DisassemblyStorage.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DisassemblyStorage.java @@ -20,6 +20,7 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.model.IDebugTarget; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; /** * Enter type comment. @@ -110,7 +111,8 @@ public class DisassemblyStorage implements IDisassemblyStorage { // ignore } - return "disassembly"; + return CDebugCorePlugin.getResourceString("internal.core.DisassemblyStorage.disassembly"); //$NON-NLS-1$ + } /* (non-Javadoc) @@ -206,7 +208,7 @@ public class DisassemblyStorage implements IDisassemblyStorage sb.append( '+' ); sb.append( instruction.getOffset() ); } - sb.append( ">:" ); + sb.append( ">:" ); //$NON-NLS-1$ sb.append( spaces, 0, instrPosition - sb.length() ); } sb.append( instruction.getOpcode() ); diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CAddressBreakpoint.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CAddressBreakpoint.java index c80c255fedc..05107cd5c74 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CAddressBreakpoint.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CAddressBreakpoint.java @@ -13,6 +13,7 @@ import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.DebugException; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; /** * @@ -92,7 +93,7 @@ public class CAddressBreakpoint extends CBreakpoint implements ICAddressBreakpoi */ protected String getMarkerMessage() throws CoreException { - StringBuffer sb = new StringBuffer( "Address breakpoint:" ); + StringBuffer sb = new StringBuffer( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CAddressBreakpoint.Address_breakpoint") ); //$NON-NLS-1$ String name = ensureMarker().getResource().getName(); if ( name != null && name.length() > 0 ) { @@ -102,7 +103,7 @@ public class CAddressBreakpoint extends CBreakpoint implements ICAddressBreakpoi try { long address = Long.parseLong( getAddress() ); - sb.append( " [address: " ); + sb.append( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CAddressBreakpoint.address") ); //$NON-NLS-1$ sb.append( CDebugUtils.toHexAddressString( address ) ); sb.append( ']' ); } diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CBreakpoint.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CBreakpoint.java index aba10956ea6..a54d1877d73 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CBreakpoint.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CBreakpoint.java @@ -21,6 +21,7 @@ import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.IDebugEventSetListener; import org.eclipse.debug.core.model.Breakpoint; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; /** * @@ -107,7 +108,7 @@ public abstract class CBreakpoint extends Breakpoint */ public String getCondition() throws CoreException { - return ensureMarker().getAttribute( CONDITION, "" ); + return ensureMarker().getAttribute( CONDITION, "" ); //$NON-NLS-1$ } /* (non-Javadoc) @@ -265,8 +266,8 @@ public abstract class CBreakpoint extends Breakpoint int ignoreCount = getIgnoreCount(); if ( ignoreCount > 0 ) { - sb.append( " [" ); - sb.append( "ignore count:" ); + sb.append( " [" ); //$NON-NLS-1$ + sb.append( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CBreakpoint.ignore_count") ); //$NON-NLS-1$ sb.append( ' ' ); sb.append( ignoreCount ); sb.append( ']' ); @@ -274,7 +275,7 @@ public abstract class CBreakpoint extends Breakpoint String condition = getCondition(); if ( condition != null && condition.length() > 0 ) { - sb.append( " if " ); + sb.append( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CBreakpoint.if") ); //$NON-NLS-1$ sb.append( condition ); } return sb.toString(); diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CFunctionBreakpoint.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CFunctionBreakpoint.java index c3e2156abac..5e09694bf45 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CFunctionBreakpoint.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CFunctionBreakpoint.java @@ -13,6 +13,7 @@ import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.DebugException; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; /** * @@ -112,7 +113,7 @@ public class CFunctionBreakpoint extends CBreakpoint implements ICFunctionBreakp */ protected String getMarkerMessage() throws CoreException { - StringBuffer sb = new StringBuffer( "Function breakpoint:" ); + StringBuffer sb = new StringBuffer( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CFunctionBreakpoint.Function_breakpoint") ); //$NON-NLS-1$ String name = ensureMarker().getResource().getName(); if ( name != null && name.length() > 0 ) { @@ -122,8 +123,8 @@ public class CFunctionBreakpoint extends CBreakpoint implements ICFunctionBreakp String function = getFunction(); if ( function != null && function.trim().length() > 0 ) { - sb.append( " [" ); - sb.append( "function:" ); + sb.append( " [" ); //$NON-NLS-1$ + sb.append( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CFunctionBreakpoint.function") ); //$NON-NLS-1$ sb.append( ' ' ); sb.append( function.trim() ); sb.append( ']' ); diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CLineBreakpoint.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CLineBreakpoint.java index fc871430e20..93528d6615d 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CLineBreakpoint.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CLineBreakpoint.java @@ -12,6 +12,7 @@ import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.DebugException; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; /** * @@ -75,7 +76,7 @@ public class CLineBreakpoint extends CBreakpoint implements ICLineBreakpoint */ protected String getMarkerMessage() throws CoreException { - StringBuffer sb = new StringBuffer( "Line breakpoint:" ); + StringBuffer sb = new StringBuffer( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CLineBreakpoint.Line_breakpoint") ); //$NON-NLS-1$ String fileName = ensureMarker().getResource().getName(); if ( fileName != null && fileName.length() > 0 ) { @@ -85,8 +86,8 @@ public class CLineBreakpoint extends CBreakpoint implements ICLineBreakpoint int lineNumber = getLineNumber(); if ( lineNumber > 0 ) { - sb.append( " [" ); - sb.append( "line:" ); + sb.append( " [" ); //$NON-NLS-1$ + sb.append( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CLineBreakpoint.line") ); //$NON-NLS-1$ sb.append( ' ' ); sb.append( lineNumber ); sb.append( ']' ); diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CWatchpoint.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CWatchpoint.java index 220acac293f..6e12128ae05 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CWatchpoint.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CWatchpoint.java @@ -7,6 +7,7 @@ package org.eclipse.cdt.debug.internal.core.breakpoints; import java.util.Map; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; import org.eclipse.cdt.debug.core.model.ICWatchpoint; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; @@ -58,7 +59,7 @@ public class CWatchpoint extends CBreakpoint implements ICWatchpoint */ public String getExpression() throws CoreException { - return ensureMarker().getAttribute( EXPRESSION, "" ); + return ensureMarker().getAttribute( EXPRESSION, "" ); //$NON-NLS-1$ } /** @@ -76,12 +77,14 @@ public class CWatchpoint extends CBreakpoint implements ICWatchpoint { StringBuffer sb = new StringBuffer(); if ( isWriteType() && !isReadType() ) - sb.append( "Write " ); + sb.append( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CWatchpoint.Write_watchpoint") ); //$NON-NLS-1$ else if ( !isWriteType() && isReadType() ) - sb.append( "Read " ); + sb.append( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CWatchpoint.Read_watchpoint") ); //$NON-NLS-1$ else if ( isWriteType() && isReadType() ) - sb.append( "Access " ); - sb.append( "watchpoint: " ); + sb.append( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CWatchpoint.Access_watchpoint") ); //$NON-NLS-1$ + else + sb.append( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CWatchpoint.Watchpoint") ); //$NON-NLS-1$ + sb.append( ' ' ); String fileName = ensureMarker().getResource().getName(); if ( fileName != null && fileName.length() > 0 ) { @@ -91,7 +94,9 @@ public class CWatchpoint extends CBreakpoint implements ICWatchpoint String expression = getExpression(); if ( expression != null && expression.length() > 0 ) { - sb.append( " at \'" ); + sb.append( " " ); //$NON-NLS-1$ + sb.append( CDebugCorePlugin.getResourceString("internal.core.breakpoints.CWatchpoint.at") ); //$NON-NLS-1$ + sb.append( " \'" ); //$NON-NLS-1$ sb.append( expression ); sb.append( '\'' ); } diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CArrayPartition.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CArrayPartition.java index 3cc2463af4e..234860ec575 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CArrayPartition.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CArrayPartition.java @@ -18,6 +18,7 @@ import org.eclipse.cdt.debug.core.cdi.model.type.ICDIArrayValue; import org.eclipse.cdt.debug.core.model.ICType; import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.model.IValue; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; /** * @@ -69,7 +70,7 @@ public class CArrayPartition extends CVariable StringBuffer name = new StringBuffer(); name.append( '[' ); name.append( fStart ); - name.append( ".." ); + name.append( ".." ); //$NON-NLS-1$ name.append( fEnd ); name.append( ']' ); return name.toString(); @@ -177,7 +178,7 @@ public class CArrayPartition extends CVariable } catch (CDIException e) { - requestFailed( "Type is not available.", e ); + requestFailed( CDebugCorePlugin.getResourceString("internal.core.model.CArrayPartition.Type_not_available"), e ); //$NON-NLS-1$ } } return fType; @@ -207,7 +208,7 @@ public class CArrayPartition extends CVariable } catch( CDIException e ) { - requestFailed( "Qualified name is not available.", e ); + requestFailed( CDebugCorePlugin.getResourceString("internal.core.model.CArrayPartition.Qualified_name_not_available"), e ); //$NON-NLS-1$ } } return fQualifiedName; diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugElement.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugElement.java index 709539cbfcd..077ff03816f 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugElement.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugElement.java @@ -249,7 +249,7 @@ public class CDebugElement extends PlatformObject */ public void targetRequestFailed( String message, CDIException e ) throws DebugException { - requestFailed( "Target request failed: " + message, e, DebugException.TARGET_REQUEST_FAILED ); + requestFailed( CDebugCorePlugin.getResourceString("internal.core.model.CDebugElement.Target_request_failed") + message, e, DebugException.TARGET_REQUEST_FAILED ); //$NON-NLS-1$ } /** @@ -274,7 +274,7 @@ public class CDebugElement extends PlatformObject */ public void targetRequestFailed( String message, Throwable e ) throws DebugException { - throwDebugException( "Target request failed: " + message, DebugException.TARGET_REQUEST_FAILED, e ); + throwDebugException( CDebugCorePlugin.getResourceString("internal.core.model.CDebugElement.Target_request_failed") + message, DebugException.TARGET_REQUEST_FAILED, e ); //$NON-NLS-1$ } /** diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java index 037bfe19005..92a6fbd0462 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java @@ -856,7 +856,7 @@ public class CDebugTarget extends CDebugElement if ( !canDisconnect() ) { - notSupported( "Session does not support \'disconnect\'" ); + notSupported( CDebugCorePlugin.getResourceString("internal.core.model.CDebugTarget.Disconnect_session_unsupported") ); //$NON-NLS-1$ } try @@ -1108,7 +1108,7 @@ public class CDebugTarget extends CDebugElement try { - ICDILocation location = getCDISession().getBreakpointManager().createLocation( "", "main", 0 ); + ICDILocation location = getCDISession().getBreakpointManager().createLocation( "", "main", 0 ); //$NON-NLS-1$ //$NON-NLS-2$ setInternalTemporaryBreakpoint( location ); getCDITarget().restart(); restarted(); @@ -1529,9 +1529,8 @@ public class CDebugTarget extends CDebugElement { MultiStatus status = new MultiStatus( CDebugCorePlugin.getUniqueIdentifier(), ICDebugInternalConstants.STATUS_CODE_ERROR, - "The execution of program is suspended because of error.", - null ); - StringTokenizer st = new StringTokenizer( info.getDetailMessage(), "\n\r" ); + CDebugCorePlugin.getResourceString("internal.core.model.CDebugTarget.Execution_suspended_because_of_error"), null ); //$NON-NLS-1$ + StringTokenizer st = new StringTokenizer( info.getDetailMessage(), "\n\r" ); //$NON-NLS-1$ while( st.hasMoreTokens() ) { String token = st.nextToken(); @@ -2061,7 +2060,7 @@ public class CDebugTarget extends CDebugElement public IPath getPath() { - IPath path = new Path(""); + IPath path = new Path(""); //$NON-NLS-1$ ICElement parent = var.getParent(); if ( parent instanceof IBinaryModule ) { @@ -2372,7 +2371,7 @@ public class CDebugTarget extends CDebugElement */ public String toString() { - String result = ""; + String result = ""; //$NON-NLS-1$ try { result = getName(); diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDummyStackFrame.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDummyStackFrame.java index 0c0c892b2bd..9538d9432b9 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDummyStackFrame.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDummyStackFrame.java @@ -87,7 +87,7 @@ public class CDummyStackFrame extends CDebugElement implements IStackFrame, IDum */ public String getName() throws DebugException { - return "..."; + return "..."; //$NON-NLS-1$ } /* (non-Javadoc) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CGlobalVariable.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CGlobalVariable.java index 6902c8e6bb9..186151c3eee 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CGlobalVariable.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CGlobalVariable.java @@ -49,7 +49,7 @@ public class CGlobalVariable extends CModificationVariable } catch( CDIException e ) { - requestFailed( "", e ); + requestFailed( "", e ); //$NON-NLS-1$ } int[] dims = getType().getArrayDimensions(); if ( dims.length > 0 && dims[0] > 0 ) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CModificationVariable.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CModificationVariable.java index ab88d4f20c3..818aef15dc5 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CModificationVariable.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CModificationVariable.java @@ -12,6 +12,7 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIVariable; import org.eclipse.cdt.debug.core.cdi.model.ICDIVariableObject; import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.model.IValue; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; /** * @@ -69,7 +70,7 @@ public class CModificationVariable extends CVariable if ( cdiVariable != null ) cdiVariable.setValue( newExpression ); else - requestFailed( "Unable to set value.", null ); + requestFailed( CDebugCorePlugin.getResourceString("internal.core.model.CModificationVariable.Unable_to_set_value"), null ); //$NON-NLS-1$ } catch( CDIException e ) @@ -93,7 +94,7 @@ public class CModificationVariable extends CVariable if ( cdiVariable != null ) cdiVariable.setValue( value ); else - requestFailed( "Unable to set value.", null ); + requestFailed( CDebugCorePlugin.getResourceString("internal.core.model.CModificationVariable.Unable_to_set_value"), null ); //$NON-NLS-1$ } catch( CDIException e ) { diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CStackFrame.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CStackFrame.java index 33c4534b9e2..169446b1e6e 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CStackFrame.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CStackFrame.java @@ -6,6 +6,7 @@ package org.eclipse.cdt.debug.internal.core.model; +import java.text.NumberFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; @@ -205,16 +206,26 @@ public class CStackFrame extends CDebugElement public String getName() throws DebugException { ICDILocation location = getCDIStackFrame().getLocation(); - String name = new String(); + + String func = ""; //$NON-NLS-1$ + String file = ""; //$NON-NLS-1$ + String line = ""; //$NON-NLS-1$ + if ( location.getFunction() != null && location.getFunction().trim().length() > 0 ) - name += location.getFunction() + "() "; - if ( location.getFile() != null && location.getFile().trim().length() > 0 ) + func += location.getFunction() + "() "; //$NON-NLS-1$ + + if ( location.getFile() != null && location.getFile().trim().length() > 0 ) { - name += "at " + location.getFile() + ":" ; - if ( location.getLineNumber() != 0 ) - name += location.getLineNumber(); - } - return name.toString(); + file = location.getFile(); + + if ( location.getLineNumber() != 0 ) { + line = NumberFormat.getInstance().format(new Integer(location.getLineNumber())); + } + } else { + return func; + } + return CDebugCorePlugin.getFormattedString("internal.core.model.CStackFrame.function_at_file", new String[] {func, file}) + line; //$NON-NLS-1$ + } /* (non-Javadoc) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java index c3ecbc320e6..b23d449966c 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java @@ -45,6 +45,7 @@ import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.model.IBreakpoint; import org.eclipse.debug.core.model.IStackFrame; import org.eclipse.debug.core.model.IThread; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; /** * @@ -274,7 +275,7 @@ public class CThread extends CDebugElement } catch( CDIException e ) { - setStatus( ICDebugElementErrorStatus.WARNING, "Stack is not available: " + e.getMessage() ); + setStatus( ICDebugElementErrorStatus.WARNING, CDebugCorePlugin.getResourceString("internal.core.model.CThread.Stack_not_available") + e.getMessage() ); //$NON-NLS-1$ targetRequestFailed( e.getMessage(), null ); } return new ICDIStackFrame[0]; @@ -1103,7 +1104,7 @@ public class CThread extends CDebugElement } catch( CDIException e ) { - setStatus( ICDebugElementErrorStatus.WARNING, "Stack is not available: " + e.getMessage() ); + setStatus( ICDebugElementErrorStatus.WARNING, CDebugCorePlugin.getResourceString("internal.core.model.CThread.Stack_not_available") + e.getMessage() ); //$NON-NLS-1$ } return depth; } @@ -1184,7 +1185,7 @@ public class CThread extends CDebugElement */ public String toString() { - String result = ""; + String result = ""; //$NON-NLS-1$ try { result = getName(); diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java index c709652a7bf..3c98924908e 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java @@ -33,6 +33,7 @@ import org.eclipse.cdt.debug.core.model.ICExpressionEvaluator; import org.eclipse.cdt.debug.core.model.ICValue; import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.model.IVariable; +import org.eclipse.cdt.debug.core.CDebugCorePlugin; /** * @@ -186,7 +187,7 @@ public class CValue extends CDebugElement implements ICValue } catch( CDIException e ) { - requestFailed( "not available: ", e ); + requestFailed( CDebugCorePlugin.getResourceString("internal.core.model.CValue.Not_available"), e ); //$NON-NLS-1$ } return Arrays.asList( vars ); } @@ -260,7 +261,7 @@ public class CValue extends CDebugElement implements ICValue byteValue != '\t' && byteValue != '\n' && byteValue != '\f' && - byteValue != '\r' ) || byteValue < 0 ) ? "" : new String( new byte[] { '\'', byteValue, '\'' } ); + byteValue != '\r' ) || byteValue < 0 ) ? "" : new String( new byte[] { '\'', byteValue, '\'' } ); //$NON-NLS-1$ } case ICDIFormat.DECIMAL: { @@ -269,7 +270,7 @@ public class CValue extends CDebugElement implements ICValue } case ICDIFormat.HEXADECIMAL: { - StringBuffer sb = new StringBuffer( "0x" ); + StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ String stringValue = ( isUnsigned() ) ? Integer.toHexString( value.shortValue() ) : Integer.toHexString( (byte)value.byteValue() ); sb.append( ( stringValue.length() > 2 ) ? stringValue.substring( stringValue.length() - 2 ) : stringValue ); return sb.toString(); @@ -287,7 +288,7 @@ public class CValue extends CDebugElement implements ICValue return ( isUnsigned() ) ? Integer.toString( value.intValue() ) : Short.toString( value.shortValue() ); case ICDIFormat.HEXADECIMAL: { - StringBuffer sb = new StringBuffer( "0x" ); + StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ String stringValue = Integer.toHexString( ( isUnsigned() ) ? value.intValue() : value.shortValue() ); sb.append( ( stringValue.length() > 4 ) ? stringValue.substring( stringValue.length() - 4 ) : stringValue ); return sb.toString(); @@ -305,7 +306,7 @@ public class CValue extends CDebugElement implements ICValue return ( isUnsigned() ) ? Long.toString( value.longValue() ) : Integer.toString( value.intValue() ); case ICDIFormat.HEXADECIMAL: { - StringBuffer sb = new StringBuffer( "0x" ); + StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ String stringValue = ( isUnsigned() ) ? Long.toHexString( value.longValue() ) : Integer.toHexString( value.intValue() ); sb.append( ( stringValue.length() > 8 ) ? stringValue.substring( stringValue.length() - 8 ) : stringValue ); return sb.toString(); @@ -323,7 +324,7 @@ public class CValue extends CDebugElement implements ICValue return ( isUnsigned() ) ? Long.toString( value.longValue() ) : Integer.toString( value.intValue() ); case ICDIFormat.HEXADECIMAL: { - StringBuffer sb = new StringBuffer( "0x" ); + StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ String stringValue = Long.toHexString( ( isUnsigned() ) ? value.longValue() : value.intValue() ); sb.append( ( stringValue.length() > 8 ) ? stringValue.substring( stringValue.length() - 8 ) : stringValue ); return sb.toString(); @@ -349,7 +350,7 @@ public class CValue extends CDebugElement implements ICValue } case ICDIFormat.HEXADECIMAL: { - StringBuffer sb = new StringBuffer( "0x" ); + StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ if ( isUnsigned() ) { @@ -369,7 +370,7 @@ public class CValue extends CDebugElement implements ICValue float floatValue = value.floatValue(); Float flt = new Float( floatValue ); if ( flt.isNaN() || flt.isInfinite() ) - return ""; + return ""; //$NON-NLS-1$ long longValue = flt.longValue(); switch( getParentVariable().getFormat() ) { @@ -379,7 +380,7 @@ public class CValue extends CDebugElement implements ICValue return Long.toString( longValue ); case ICDIFormat.HEXADECIMAL: { - StringBuffer sb = new StringBuffer( "0x" ); + StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ String stringValue = Long.toHexString( longValue ); sb.append( ( stringValue.length() > 8 ) ? stringValue.substring( stringValue.length() - 8 ) : stringValue ); return sb.toString(); @@ -393,7 +394,7 @@ public class CValue extends CDebugElement implements ICValue double doubleValue = value.doubleValue(); Double dbl = new Double( doubleValue ); if ( dbl.isNaN() || dbl.isInfinite() ) - return ""; + return ""; //$NON-NLS-1$ long longValue = dbl.longValue(); switch( getParentVariable().getFormat() ) { @@ -403,7 +404,7 @@ public class CValue extends CDebugElement implements ICValue return Long.toString( longValue ); case ICDIFormat.HEXADECIMAL: { - StringBuffer sb = new StringBuffer( "0x" ); + StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ String stringValue = Long.toHexString( longValue ); sb.append( ( stringValue.length() > 16 ) ? stringValue.substring( stringValue.length() - 16 ) : stringValue ); return sb.toString(); @@ -422,7 +423,7 @@ public class CValue extends CDebugElement implements ICValue case ICDIFormat.NATURAL: case ICDIFormat.HEXADECIMAL: { - StringBuffer sb = new StringBuffer( "0x" ); + StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ String stringValue = Long.toHexString( longValue ); sb.append( ( stringValue.length() > 8 ) ? stringValue.substring( stringValue.length() - 8 ) : stringValue ); return sb.toString(); @@ -441,7 +442,7 @@ public class CValue extends CDebugElement implements ICValue case ICDIFormat.NATURAL: case ICDIFormat.HEXADECIMAL: { - StringBuffer sb = new StringBuffer( "0x" ); + StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ String stringValue = Long.toHexString( longValue ); sb.append( ( stringValue.length() > 8 ) ? stringValue.substring( stringValue.length() - 8 ) : stringValue ); return sb.toString(); @@ -464,7 +465,7 @@ public class CValue extends CDebugElement implements ICValue return ( isUnsigned() ) ? Integer.toString( value.intValue() ) : Short.toString( value.shortValue() ); case ICDIFormat.HEXADECIMAL: { - StringBuffer sb = new StringBuffer( "0x" ); + StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ String stringValue = Integer.toHexString( ( isUnsigned() ) ? value.intValue() : value.shortValue() ); sb.append( ( stringValue.length() > 4 ) ? stringValue.substring( stringValue.length() - 4 ) : stringValue ); return sb.toString(); @@ -480,7 +481,7 @@ public class CValue extends CDebugElement implements ICValue return ( isUnsigned() ) ? Long.toString( value.longValue() ) : Integer.toString( value.intValue() ); case ICDIFormat.HEXADECIMAL: { - StringBuffer sb = new StringBuffer( "0x" ); + StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ String stringValue = ( isUnsigned() ) ? Long.toHexString( value.longValue() ) : Integer.toHexString( value.intValue() ); sb.append( ( stringValue.length() > 8 ) ? stringValue.substring( stringValue.length() - 8 ) : stringValue ); return sb.toString(); diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java index a23afa45ffd..ccf8c97e7df 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java @@ -80,7 +80,7 @@ public abstract class CVariable extends CDebugElement */ public String getName() { - return ( fVariableObject != null ) ? fVariableObject.getName() : ""; + return ( fVariableObject != null ) ? fVariableObject.getName() : ""; //$NON-NLS-1$ } /* (non-Javadoc) @@ -88,7 +88,7 @@ public abstract class CVariable extends CDebugElement */ public String getTypeName() throws CDIException { - return ( fVariableObject != null ) ? fVariableObject.getTypeName() : ""; + return ( fVariableObject != null ) ? fVariableObject.getTypeName() : ""; //$NON-NLS-1$ } /* (non-Javadoc) @@ -207,7 +207,7 @@ public abstract class CVariable extends CDebugElement { fCDIVariable = new ErrorVariable( getCDIVariableObject(), e ); setStatus( ICDebugElementErrorStatus.ERROR, - MessageFormat.format( "not available: {0}", new String[] { e.getMessage() } ) ); + CDebugCorePlugin.getFormattedString( "internal.core.model.CVariable.not_available", new String[] { e.getMessage() } ) ); //$NON-NLS-1$ } } return fCDIVariable; @@ -412,7 +412,7 @@ public abstract class CVariable extends CDebugElement fShadow = null; if ( cdiVariableObject instanceof ErrorVariable ) setStatus( ICDebugElementErrorStatus.ERROR, - MessageFormat.format( "not available: {0}", new String[] { ((ErrorVariable)cdiVariableObject).getException().getMessage() } ) ); + CDebugCorePlugin.getFormattedString( "internal.core.model.CVariable.not_available", new String[] { ((ErrorVariable)cdiVariableObject).getException().getMessage() } ) ); //$NON-NLS-1$ fFormat = CDebugCorePlugin.getDefault().getPluginPreferences().getInt( ICDebugConstants.PREF_DEFAULT_VARIABLE_FORMAT ); getCDISession().getEventManager().addEventListener( this ); } @@ -453,7 +453,7 @@ public abstract class CVariable extends CDebugElement } catch( CDIException e ) { - requestFailed( "", e ); + requestFailed( "", e ); //$NON-NLS-1$ } int[] dims = type.getArrayDimensions(); if ( dims.length > 0 && dims[0] > 0 ) @@ -482,7 +482,7 @@ public abstract class CVariable extends CDebugElement */ public void setValue( String expression ) throws DebugException { - notSupported( "Variable does not support value modification." ); + notSupported( CDebugCorePlugin.getResourceString("internal.core.model.CVariable.Value_modification_unsupported") ); //$NON-NLS-1$ } /* (non-Javadoc) @@ -490,7 +490,7 @@ public abstract class CVariable extends CDebugElement */ public void setValue( IValue value ) throws DebugException { - notSupported( "Variable does not support value modification." ); + notSupported( CDebugCorePlugin.getResourceString("internal.core.model.CVariable.Value_modification_unsupported") ); //$NON-NLS-1$ } /* (non-Javadoc) @@ -774,7 +774,7 @@ public abstract class CVariable extends CDebugElement { logError( e ); } - return ""; + return ""; //$NON-NLS-1$ } /* (non-Javadoc) @@ -931,7 +931,7 @@ public abstract class CVariable extends CDebugElement } catch( CDIException e ) { - requestFailed( "Qualified name is not available.", e ); + requestFailed( CDebugCorePlugin.getResourceString("internal.core.model.CVariable.Qualified_name_unavailable"), e ); //$NON-NLS-1$ } return result; } @@ -952,7 +952,7 @@ public abstract class CVariable extends CDebugElement } catch( CDIException e ) { - requestFailed( "Type is not available.", e ); + requestFailed( CDebugCorePlugin.getResourceString("internal.core.model.CVariable.Type_unavailable"), e ); //$NON-NLS-1$ } } return type; diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CDirectorySourceLocation.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CDirectorySourceLocation.java index 4781c9c8f8f..a3ad974f815 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CDirectorySourceLocation.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CDirectorySourceLocation.java @@ -47,10 +47,10 @@ import org.xml.sax.SAXException; */ public class CDirectorySourceLocation implements IDirectorySourceLocation { - private static final String ELEMENT_NAME = "cDirectorySourceLocation"; - private static final String ATTR_DIRECTORY = "directory"; - private static final String ATTR_ASSOCIATION = "association"; - private static final String ATTR_SEARCH_SUBFOLDERS = "searchSubfolders"; + private static final String ELEMENT_NAME = "cDirectorySourceLocation"; //$NON-NLS-1$ + private static final String ATTR_DIRECTORY = "directory"; //$NON-NLS-1$ + private static final String ATTR_ASSOCIATION = "association"; //$NON-NLS-1$ + private static final String ATTR_SEARCH_SUBFOLDERS = "searchSubfolders"; //$NON-NLS-1$ /** * The root directory of this source location @@ -302,11 +302,11 @@ public class CDirectorySourceLocation implements IDirectorySourceLocation node.setAttribute( ATTR_SEARCH_SUBFOLDERS, new Boolean( searchSubfolders() ).toString() ); try { - return CDebugUtils.serializeDocument( doc, " " ); + return CDebugUtils.serializeDocument( doc, " " ); //$NON-NLS-1$ } catch( IOException e ) { - abort( MessageFormat.format( "Unable to create memento for C/C++ directory source location {0}", new String[] { getDirectory().toOSString() } ), e ); + abort( MessageFormat.format( CDebugCorePlugin.getResourceString("internal.core.sourcelookup.CDirectorySourceLocation.Unable_to_create_memento"), new String[] { getDirectory().toOSString() } ), e ); //$NON-NLS-1$ } // execution will not reach here return null; @@ -329,7 +329,7 @@ public class CDirectorySourceLocation implements IDirectorySourceLocation String dir = root.getAttribute( ATTR_DIRECTORY ); if ( isEmpty( dir ) ) { - abort( "Unable to initialize source location - missing directory path", null ); + abort( CDebugCorePlugin.getResourceString("internal.core.sourcelookup.CDirectorySourceLocation.Unable_to_initialize_src_location_no_dir"), null ); //$NON-NLS-1$ } else { @@ -340,7 +340,7 @@ public class CDirectorySourceLocation implements IDirectorySourceLocation } else { - abort( MessageFormat.format( "Unable to initialize source location - invalid directory path {0}", new String[] { dir } ), null ); + abort( MessageFormat.format( CDebugCorePlugin.getResourceString("internal.core.sourcelookup.CDirectorySourceLocation.Unable_to_initialize_src_location_invalid_dir"), new String[] { dir } ), null ); //$NON-NLS-1$ } } dir = root.getAttribute( ATTR_ASSOCIATION ); @@ -375,7 +375,7 @@ public class CDirectorySourceLocation implements IDirectorySourceLocation { ex = e; } - abort( "Exception occurred initializing source location.", ex ); + abort( CDebugCorePlugin.getResourceString("internal.core.sourcelookup.CDirectorySourceLocation.Exception_initializing_src_location"), ex ); //$NON-NLS-1$ } /** @@ -506,7 +506,7 @@ public class CDirectorySourceLocation implements IDirectorySourceLocation */ public String toString() { - return ( getDirectory() != null ) ? getDirectory().toOSString() : ""; + return ( getDirectory() != null ) ? getDirectory().toOSString() : ""; //$NON-NLS-1$ } /* (non-Javadoc) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java index 0f7c9328cc9..0b36188c1bd 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java @@ -8,7 +8,6 @@ package org.eclipse.cdt.debug.internal.core.sourcelookup; import java.io.File; import java.io.IOException; import java.io.StringReader; -import java.text.MessageFormat; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; @@ -46,9 +45,9 @@ import org.xml.sax.SAXException; */ public class CProjectSourceLocation implements IProjectSourceLocation { - private static final String ELEMENT_NAME = "cProjectSourceLocation"; - private static final String ATTR_PROJECT = "project"; - private static final String ATTR_GENERIC = "generic"; + private static final String ELEMENT_NAME = "cProjectSourceLocation"; //$NON-NLS-1$ + private static final String ATTR_PROJECT = "project"; //$NON-NLS-1$ + private static final String ATTR_GENERIC = "generic"; //$NON-NLS-1$ /** * The project associated with this source location @@ -234,11 +233,11 @@ public class CProjectSourceLocation implements IProjectSourceLocation node.setAttribute( ATTR_GENERIC, new Boolean( isGeneric() ).toString() ); try { - return CDebugUtils.serializeDocument( doc, " " ); + return CDebugUtils.serializeDocument( doc, " " ); //$NON-NLS-1$ } catch( IOException e ) { - abort( MessageFormat.format( "Unable to create memento for C/C++ project source location {0}.", new String[] { getProject().getName() } ), e ); + abort( CDebugCorePlugin.getFormattedString("internal.core.sourcelookup.CProjectSourceLocation.Unable_to_create_memento_for_src_location", new String[] { getProject().getName() } ), e ); //$NON-NLS-1$ } // execution will not reach here return null; @@ -261,7 +260,7 @@ public class CProjectSourceLocation implements IProjectSourceLocation String name = root.getAttribute( ATTR_PROJECT ); if ( isEmpty( name ) ) { - abort( "Unable to initialize source location - missing project name", null ); + abort( CDebugCorePlugin.getResourceString("internal.core.sourcelookup.CProjectSourceLocation.Unable_to_initialize_src_location_no_project_name"), null ); //$NON-NLS-1$ } else { @@ -286,7 +285,7 @@ public class CProjectSourceLocation implements IProjectSourceLocation { ex = e; } - abort( "Exception occurred initializing source location.", ex ); + abort( CDebugCorePlugin.getResourceString("internal.core.sourcelookup.CProjectSourceLocation.Exception_intializing_src_location"), ex ); //$NON-NLS-1$ } /** @@ -391,6 +390,6 @@ public class CProjectSourceLocation implements IProjectSourceLocation public String toString() { - return ( getProject() != null ) ? fProject.toString() : ""; + return ( getProject() != null ) ? fProject.toString() : ""; //$NON-NLS-1$ } } diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java index 0866a38b71b..d44ff2fd681 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java @@ -58,14 +58,14 @@ import org.xml.sax.SAXException; public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocator, IResourceChangeListener { - private static final String SOURCE_LOCATOR_NAME = "cSourceLocator"; - private static final String DISABLED_GENERIC_PROJECT_NAME = "disabledGenericProject"; - private static final String ADDITIONAL_SOURCE_LOCATION_NAME = "additionalSourceLocation"; - private static final String SOURCE_LOCATION_NAME = "cSourceLocation"; - private static final String ATTR_CLASS = "class"; - private static final String ATTR_MEMENTO = "memento"; - private static final String ATTR_PROJECT_NAME = "projectName"; - private static final String ATTR_DUPLICATE_FILES = "duplicateFiles"; + private static final String SOURCE_LOCATOR_NAME = "cSourceLocator"; //$NON-NLS-1$ + private static final String DISABLED_GENERIC_PROJECT_NAME = "disabledGenericProject"; //$NON-NLS-1$ + private static final String ADDITIONAL_SOURCE_LOCATION_NAME = "additionalSourceLocation"; //$NON-NLS-1$ + private static final String SOURCE_LOCATION_NAME = "cSourceLocation"; //$NON-NLS-1$ + private static final String ATTR_CLASS = "class"; //$NON-NLS-1$ + private static final String ATTR_MEMENTO = "memento"; //$NON-NLS-1$ + private static final String ATTR_PROJECT_NAME = "projectName"; //$NON-NLS-1$ + private static final String ATTR_DUPLICATE_FILES = "duplicateFiles"; //$NON-NLS-1$ /** * The project associated with this locator. @@ -301,11 +301,11 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato node.setAttribute( ATTR_DUPLICATE_FILES, new Boolean( searchForDuplicateFiles() ).toString() ); try { - return CDebugUtils.serializeDocument( doc, " " ); + return CDebugUtils.serializeDocument( doc, " " ); //$NON-NLS-1$ } catch( IOException e ) { - abort( "Unable to create memento for C/C++ source locator.", e ); + abort( CDebugCorePlugin.getResourceString("internal.core.sourcelookup.CSourceLocator.Unable_to_create_memento"), e ); //$NON-NLS-1$ } // execution will not reach here return null; @@ -335,7 +335,7 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato if ( !root.getNodeName().equalsIgnoreCase( SOURCE_LOCATOR_NAME ) ) { - abort( "Unable to restore C/C++ source locator - invalid format.", null ); + abort( CDebugCorePlugin.getResourceString("internal.core.sourcelookup.CSourceLocator.Unable_to_restore_src_locator"), null ); //$NON-NLS-1$ } List sourceLocations = new ArrayList(); @@ -367,7 +367,7 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato { ex = e; } - abort( "Exception occurred initializing source locator.", ex ); + abort( CDebugCorePlugin.getResourceString("internal.core.sourcelookup.CSourceLocator.Exception_initializing_src_locator"), ex ); //$NON-NLS-1$ } private void removeDisabledLocations( Element root, List sourceLocations ) throws CoreException @@ -387,7 +387,7 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato String projectName = entry.getAttribute( ATTR_PROJECT_NAME ); if ( isEmpty( projectName ) ) { - CDebugCorePlugin.log( "Unable to restore C/C++ source locator - invalid format." ); + CDebugCorePlugin.log( "Unable to restore C/C++ source locator - invalid format." ); //$NON-NLS-1$ } disabledProjects.add( projectName.trim() ); } @@ -409,7 +409,7 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato MultiStatus status = new MultiStatus( CDebugCorePlugin.getUniqueIdentifier(), CDebugCorePlugin.INTERNAL_ERROR, - "Error initializing directory source location.", + CDebugCorePlugin.getResourceString("internal.core.sourcelookup.CSourceLocator.Error_initializing_src_location"), //$NON-NLS-1$ null ); NodeList list = root.getChildNodes(); int length = list.getLength(); @@ -426,7 +426,7 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato String data = entry.getAttribute( ATTR_MEMENTO ); if ( isEmpty( className ) ) { - CDebugCorePlugin.log( "Unable to restore C/C++ source locator - invalid format." ); + CDebugCorePlugin.log( "Unable to restore C/C++ source locator - invalid format." ); //$NON-NLS-1$ continue; } Class clazz = null; @@ -436,7 +436,7 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato } catch( ClassNotFoundException e ) { - CDebugCorePlugin.log( MessageFormat.format( "Unable to restore source location - class not found {0}", new String[] { className } ) ); + CDebugCorePlugin.log( MessageFormat.format( "Unable to restore source location - class not found {0}", new String[] { className } ) ); //$NON-NLS-1$ continue; } @@ -447,12 +447,12 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato } catch( IllegalAccessException e ) { - CDebugCorePlugin.log( "Unable to restore source location." ); + CDebugCorePlugin.log( "Unable to restore source location." ); //$NON-NLS-1$ continue; } catch( InstantiationException e ) { - CDebugCorePlugin.log( "Unable to restore source location." ); + CDebugCorePlugin.log( "Unable to restore source location." ); //$NON-NLS-1$ continue; } try @@ -490,7 +490,7 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato String data = entry.getAttribute( ATTR_MEMENTO ); if ( isEmpty( className ) ) { - CDebugCorePlugin.log( "Unable to restore C/C++ source locator - invalid format." ); + CDebugCorePlugin.log( "Unable to restore C/C++ source locator - invalid format." ); //$NON-NLS-1$ continue; } Class clazz = null; @@ -500,7 +500,7 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato } catch( ClassNotFoundException e ) { - CDebugCorePlugin.log( MessageFormat.format( "Unable to restore source location - class not found {0}", new String[] { className } ) ); + CDebugCorePlugin.log( MessageFormat.format( "Unable to restore source location - class not found {0}", new String[] { className } ) ); //$NON-NLS-1$ continue; } @@ -511,12 +511,12 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato } catch( IllegalAccessException e ) { - CDebugCorePlugin.log( "Unable to restore source location." ); + CDebugCorePlugin.log( "Unable to restore source location." ); //$NON-NLS-1$ continue; } catch( InstantiationException e ) { - CDebugCorePlugin.log( "Unable to restore source location." ); + CDebugCorePlugin.log( "Unable to restore source location." ); //$NON-NLS-1$ continue; } location.initializeFrom( data ); diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/SourceUtils.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/SourceUtils.java index 2906204a3ca..a26fbee65a2 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/SourceUtils.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/SourceUtils.java @@ -37,10 +37,10 @@ import org.xml.sax.SAXException; */ public class SourceUtils { - private static final String NAME_COMMON_SOURCE_LOCATIONS = "commonSourceLocations"; - private static final String NAME_SOURCE_LOCATION = "sourceLocation"; - private static final String ATTR_CLASS = "class"; - private static final String ATTR_MEMENTO = "memento"; + private static final String NAME_COMMON_SOURCE_LOCATIONS = "commonSourceLocations"; //$NON-NLS-1$ + private static final String NAME_SOURCE_LOCATION = "sourceLocation"; //$NON-NLS-1$ + private static final String ATTR_CLASS = "class"; //$NON-NLS-1$ + private static final String ATTR_MEMENTO = "memento"; //$NON-NLS-1$ public static String getCommonSourceLocationsMemento( ICSourceLocation[] locations ) { @@ -51,11 +51,11 @@ public class SourceUtils saveSourceLocations( doc, node, locations ); try { - return CDebugUtils.serializeDocument( doc, " " ); + return CDebugUtils.serializeDocument( doc, " " ); //$NON-NLS-1$ } catch( IOException e ) { - CDebugCorePlugin.log( new Status( IStatus.ERROR, CDebugCorePlugin.getUniqueIdentifier(), 0, "Error saving common source settings.", e ) ); + CDebugCorePlugin.log( new Status( IStatus.ERROR, CDebugCorePlugin.getUniqueIdentifier(), 0, "Error saving common source settings.", e ) ); //$NON-NLS-1$ } return null; } @@ -96,15 +96,15 @@ public class SourceUtils } catch( ParserConfigurationException e ) { - CDebugCorePlugin.log( new Status( IStatus.ERROR, CDebugCorePlugin.getUniqueIdentifier(), 0, "Error initializing common source settings.", e ) ); + CDebugCorePlugin.log( new Status( IStatus.ERROR, CDebugCorePlugin.getUniqueIdentifier(), 0, "Error initializing common source settings.", e ) ); //$NON-NLS-1$ } catch( SAXException e ) { - CDebugCorePlugin.log( new Status( IStatus.ERROR, CDebugCorePlugin.getUniqueIdentifier(), 0, "Error initializing common source settings.", e ) ); + CDebugCorePlugin.log( new Status( IStatus.ERROR, CDebugCorePlugin.getUniqueIdentifier(), 0, "Error initializing common source settings.", e ) ); //$NON-NLS-1$ } catch( IOException e ) { - CDebugCorePlugin.log( new Status( IStatus.ERROR, CDebugCorePlugin.getUniqueIdentifier(), 0, "Error initializing common source settings.", e ) ); + CDebugCorePlugin.log( new Status( IStatus.ERROR, CDebugCorePlugin.getUniqueIdentifier(), 0, "Error initializing common source settings.", e ) ); //$NON-NLS-1$ } } return result; @@ -130,7 +130,7 @@ public class SourceUtils String data = entry.getAttribute( ATTR_MEMENTO ); if ( className == null || className.trim().length() == 0 ) { - CDebugCorePlugin.log( "Unable to restore common source locations - invalid format." ); + CDebugCorePlugin.log( "Unable to restore common source locations - invalid format." ); //$NON-NLS-1$ continue; } Class clazz = null; @@ -140,7 +140,7 @@ public class SourceUtils } catch( ClassNotFoundException e ) { - CDebugCorePlugin.log( MessageFormat.format( "Unable to restore source location - class not found {0}", new String[] { className } ) ); + CDebugCorePlugin.log( MessageFormat.format( "Unable to restore source location - class not found {0}", new String[] { className } ) ); //$NON-NLS-1$ continue; } @@ -151,12 +151,12 @@ public class SourceUtils } catch( IllegalAccessException e ) { - CDebugCorePlugin.log( "Unable to restore source location: " + e.getMessage() ); + CDebugCorePlugin.log( "Unable to restore source location: " + e.getMessage() ); //$NON-NLS-1$ continue; } catch( InstantiationException e ) { - CDebugCorePlugin.log( "Unable to restore source location: " + e.getMessage() ); + CDebugCorePlugin.log( "Unable to restore source location: " + e.getMessage() ); //$NON-NLS-1$ continue; } try @@ -166,7 +166,7 @@ public class SourceUtils } catch( CoreException e ) { - CDebugCorePlugin.log( "Unable to restore source location: " + e.getMessage() ); + CDebugCorePlugin.log( "Unable to restore source location: " + e.getMessage() ); //$NON-NLS-1$ } } }