mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Implemention of the 'handle' command of the 'Signals' view.
This commit is contained in:
parent
0cf8c37fd5
commit
9fc080c259
3 changed files with 29 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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
|
2003-02-03 Mikhail Khodjaiants
|
||||||
Implementing the 'Signals' view.
|
Implementing the 'Signals' view.
|
||||||
* CSignalManager.java: new
|
* CSignalManager.java: new
|
||||||
|
|
|
@ -49,7 +49,16 @@ public interface ICDISignal extends ICDIObject {
|
||||||
/**
|
/**
|
||||||
* Continue program giving it this signal.
|
* Continue program giving it this signal.
|
||||||
*
|
*
|
||||||
* Method signal.
|
* @throws CDIException if this method fails. Reasons include:
|
||||||
*/
|
*/
|
||||||
void signal() throws CDIException ;
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,7 @@ public class CSignal extends CDebugElement implements ICSignal, ICDIEventListene
|
||||||
*/
|
*/
|
||||||
public void setPassEnabled( boolean enable ) throws DebugException
|
public void setPassEnabled( boolean enable ) throws DebugException
|
||||||
{
|
{
|
||||||
|
handle( enable, isStopEnabled() );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -76,6 +77,7 @@ public class CSignal extends CDebugElement implements ICSignal, ICDIEventListene
|
||||||
*/
|
*/
|
||||||
public void setStopEnabled( boolean enable ) throws DebugException
|
public void setStopEnabled( boolean enable ) throws DebugException
|
||||||
{
|
{
|
||||||
|
handle( isPassEnabled(), enable );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -112,4 +114,16 @@ public class CSignal extends CDebugElement implements ICSignal, ICDIEventListene
|
||||||
{
|
{
|
||||||
return fCDISignal;
|
return fCDISignal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void handle( boolean pass, boolean stop ) throws DebugException
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
getCDISignal().handle( !pass, stop );
|
||||||
|
}
|
||||||
|
catch( CDIException e )
|
||||||
|
{
|
||||||
|
targetRequestFailed( e.getMessage(), null );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue