openMSX
Main Page
Namespaces
Classes
Files
File List
File Members
debugger
ProbeBreakPoint.cc
Go to the documentation of this file.
1
#include "
ProbeBreakPoint.hh
"
2
#include "
Probe.hh
"
3
#include "
Debugger.hh
"
4
#include "
TclObject.hh
"
5
6
namespace
openmsx {
7
8
unsigned
ProbeBreakPoint::lastId = 0;
9
10
ProbeBreakPoint::ProbeBreakPoint
(
11
GlobalCliComm
& cliComm,
12
TclObject
command,
13
TclObject
condition,
14
Debugger
& debugger_,
15
ProbeBase
& probe_,
16
unsigned
newId
/*= -1*/
)
17
:
BreakPointBase
(cliComm, command, condition)
18
, debugger(debugger_)
19
, probe(probe_)
20
, id((newId == unsigned(-1)) ? ++lastId : newId)
21
{
22
probe.
attach
(*
this
);
23
}
24
25
ProbeBreakPoint::~ProbeBreakPoint
()
26
{
27
probe.
detach
(*
this
);
28
}
29
30
void
ProbeBreakPoint::update(
const
ProbeBase
&
/*subject*/
)
31
{
32
checkAndExecute
();
33
}
34
35
void
ProbeBreakPoint::subjectDeleted(
const
ProbeBase&
/*subject*/
)
36
{
37
debugger.
removeProbeBreakPoint
(*
this
);
38
}
39
40
}
// namespace openmsx
Generated on Tue May 14 2013 20:18:01 for openMSX by
1.8.1.2