Initial import of svn+ssh:://svn.icir.org/bro/trunk/bro as of r7088

This commit is contained in:
Robin Sommer 2010-09-27 20:42:30 -07:00
commit 61757ac78b
1383 changed files with 380824 additions and 0 deletions

30
src/DbgDisplay.h Normal file
View 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