Index:
ChangeLog =================================================================== RCS
file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v retrieving revision
1.119 diff -u -r1.119 ChangeLog --- ChangeLog 3 Feb 2003 23:08:43
-0000 1.119 +++ ChangeLog 3 Feb 2003 23:41:52 -0000 @@ -1,4 +1,9
@@ 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 Index:
src/org/eclipse/cdt/debug/core/cdi/model/ICDISignal.java =================================================================== RCS
file:
/home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDISignal.java,v retrieving
revision 1.3 diff -u -r1.3 ICDISignal.java ---
src/org/eclipse/cdt/debug/core/cdi/model/ICDISignal.java 3 Feb 2003
19:53:09 -0000 1.3 +++
src/org/eclipse/cdt/debug/core/cdi/model/ICDISignal.java 3 Feb 2003
23:41:52 -0000 @@ -49,7 +49,16 @@ /** *
Continue program giving it this signal. * - * Method
signal. + * @throws CDIException if this method fails. Reasons
include: */ void signal() throws CDIException
; + + /** + * Change the way debugger handles this
signal. + * + * @param ignore - if true the debugger should
not allow your program to see this signal + * @param stop - if true the
debugger should stop your program when this signal happens + * @throws
CDIException if this method fails. Reasons include: +
*/ + void handle(boolean ignore, boolean stop) throws
CDIException; } Index:
src/org/eclipse/cdt/debug/internal/core/model/CSignal.java =================================================================== RCS
file:
/home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CSignal.java,v retrieving
revision 1.2 diff -u -r1.2 CSignal.java ---
src/org/eclipse/cdt/debug/internal/core/model/CSignal.java 3 Feb 2003
23:08:43 -0000 1.2 +++
src/org/eclipse/cdt/debug/internal/core/model/CSignal.java 3 Feb 2003
23:41:52 -0000 @@ -69,6 +69,7 @@ */ public
void setPassEnabled( boolean enable ) throws
DebugException { + handle( enable, isStopEnabled()
); } /* (non-Javadoc) @@ -76,6 +77,7
@@ */ public void setStopEnabled( boolean enable
) throws DebugException { + handle(
isPassEnabled(), enable ); } /*
(non-Javadoc) @@ -112,4 +114,16
@@ { return
fCDISignal; } + + private void handle( boolean
pass, boolean stop ) throws
DebugException + { + try + { + getCDISignal().handle(
!pass, stop ); + } + catch( CDIException e
) + { + targetRequestFailed( e.getMessage(),
null
); + } + } }
|