WatchpointLocation.h [plain text]
#ifndef liblldb_WatchpointLocation_h_
#define liblldb_WatchpointLocation_h_
#include <list>
#include "lldb/lldb-private.h"
#include "lldb/Core/UserID.h"
#include "lldb/Breakpoint/StoppointLocation.h"
namespace lldb_private {
class WatchpointLocation :
public StoppointLocation
{
public:
WatchpointLocation (lldb::addr_t m_addr, lldb::tid_t tid, bool hardware);
~WatchpointLocation ();
bool
IsEnabled () const;
void
SetEnabled (uint32_t enabled);
bool WatchpointRead () const;
bool WatchpointWrite () const;
uint32_t GetIgnoreCount () const;
void SetIgnoreCount (uint32_t n);
void SetWatchpointType (uint32_t type);
bool BreakpointWasHit (StoppointCallbackContext *context);
bool SetCallback (WatchpointHitCallback callback, void *callback_baton);
void Dump (Stream *s) const;
private:
bool m_enabled; uint32_t m_watch_read:1, m_watch_write:1, m_watch_was_read:1, m_watch_was_written:1; uint32_t m_ignore_count; WatchpointHitCallback m_callback;
void * m_callback_baton;
static lldb::break_id_t
GetNextID();
DISALLOW_COPY_AND_ASSIGN (WatchpointLocation);
};
}
#endif // liblldb_WatchpointLocation_h_