mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Bug 108472: Debug continues to fail.
This commit is contained in:
parent
4eb646da28
commit
e1b824466e
3 changed files with 11 additions and 5 deletions
|
@ -9,7 +9,6 @@
|
|||
# QNX Software Systems - initial API and implementation
|
||||
###############################################################################
|
||||
CDebugCorePlugin.0=No such debugger
|
||||
CDebugModel.0=Unable to set temporary breakpoint in main.\nReason: {0}\nContinue?
|
||||
CDebugUtils.0=[line: {0}]
|
||||
CDebugUtils.1=[address: {0}]
|
||||
CDebugUtils.2=[function: {0}]
|
||||
|
|
|
@ -25,7 +25,6 @@ import org.eclipse.cdt.core.IBinaryParser.ISymbol;
|
|||
import org.eclipse.cdt.debug.core.CDIDebugModel;
|
||||
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
|
||||
import org.eclipse.cdt.debug.core.CDebugUtils;
|
||||
import org.eclipse.cdt.debug.core.DebugCoreMessages;
|
||||
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
||||
import org.eclipse.cdt.debug.core.ICDebugConstants;
|
||||
import org.eclipse.cdt.debug.core.ICGlobalVariableManager;
|
||||
|
@ -1731,10 +1730,16 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv
|
|||
setInternalTemporaryBreakpoint( location );
|
||||
}
|
||||
catch( CoreException e ) {
|
||||
String message = MessageFormat.format( DebugCoreMessages.getString( "CDebugModel.0" ), new String[]{ e.getStatus().getMessage() } ); //$NON-NLS-1$
|
||||
boolean isTerminated = getCDITarget().isTerminated();
|
||||
if ( isTerminated ) {
|
||||
String message = MessageFormat.format( CoreModelMessages.getString( "CDebugTarget.0" ), new String[]{ stopSymbol } ); //$NON-NLS-1$
|
||||
MultiStatus status = new MultiStatus( CDebugCorePlugin.getUniqueIdentifier(), IStatus.OK, message, null );
|
||||
status.add( e.getStatus() );
|
||||
throw new DebugException( status );
|
||||
}
|
||||
String message = MessageFormat.format( CoreModelMessages.getString( "CDebugTarget.2" ), new String[]{ stopSymbol, e.getStatus().getMessage() } ); //$NON-NLS-1$
|
||||
IStatus newStatus = new Status( IStatus.WARNING, e.getStatus().getPlugin(), ICDebugInternalConstants.STATUS_CODE_QUESTION, message, null );
|
||||
if ( !CDebugUtils.question( newStatus, this ) ) {
|
||||
terminate();
|
||||
throw new DebugException( new Status( IStatus.OK, e.getStatus().getPlugin(), e.getStatus().getCode(), e.getStatus().getMessage(), null ) );
|
||||
}
|
||||
}
|
||||
|
@ -1748,7 +1753,7 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv
|
|||
setInternalTemporaryBreakpoint( location );
|
||||
}
|
||||
catch( CoreException e ) {
|
||||
String message = MessageFormat.format( DebugCoreMessages.getString( "CDebugModel.0" ), new String[]{ e.getStatus().getMessage() } ); //$NON-NLS-1$
|
||||
String message = MessageFormat.format( CoreModelMessages.getString( "CDebugTarget.2" ), new String[]{ mainSymbol, e.getStatus().getMessage() } ); //$NON-NLS-1$
|
||||
IStatus newStatus = new Status( IStatus.WARNING, e.getStatus().getPlugin(), ICDebugInternalConstants.STATUS_CODE_QUESTION, message, null );
|
||||
if ( !CDebugUtils.question( newStatus, this ) ) {
|
||||
terminate();
|
||||
|
|
|
@ -12,6 +12,8 @@ CDebugTarget.Unable_to_get_globals_1=Unable to get globals. Reason:
|
|||
CArrayPartition.0=Type is not available.
|
||||
CArrayPartition.1=Qualified name is not available.
|
||||
CDebugTarget.1=Execution is suspended because of error.
|
||||
CDebugTarget.0=Error stopping at {0}.
|
||||
CDebugTarget.2=Error stopping at {0}.\nReason: {1}\nContinue?
|
||||
CModificationVariable.0=Unable to set value.
|
||||
CModificationVariable.1=Unable to set value.
|
||||
CStackFrame.0={0} at {1}: {2}
|
||||
|
|
Loading…
Add table
Reference in a new issue