mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Initial import of svn+ssh:://svn.icir.org/bro/trunk/bro as of r7088
This commit is contained in:
commit
61757ac78b
1383 changed files with 380824 additions and 0 deletions
30
src/DbgDisplay.h
Normal file
30
src/DbgDisplay.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
// $Id: DbgDisplay.h 80 2004-07-14 20:15:50Z jason $
|
||||
|
||||
// Structures and methods for implementing watches in the Bro debugger.
|
||||
|
||||
#ifndef dbg_display_h
|
||||
#define dbg_display_h
|
||||
|
||||
#include "Debug.h"
|
||||
|
||||
// Automatic displays: display these at each stoppage.
|
||||
class DbgDisplay {
|
||||
public:
|
||||
DbgDisplay(Expr* expr_to_display);
|
||||
|
||||
bool IsEnabled() { return enabled; }
|
||||
bool SetEnable(bool do_enable)
|
||||
{
|
||||
bool old_value = enabled;
|
||||
enabled = do_enable;
|
||||
return old_value;
|
||||
}
|
||||
|
||||
const Expr* Expression() const { return expression; }
|
||||
|
||||
protected:
|
||||
bool enabled;
|
||||
Expr* expression;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue