Changed the breakpoint system to use the afore-mentioned system.
[aesalon.git] / src / monitor / ptrace / MainObserver.cpp
blobf110b58eaeac45428435a912531c7e53d5425c4d
1 #include "MainObserver.h"
2 #include "Initializer.h"
3 #include "BreakpointReference.h"
5 namespace Aesalon {
6 namespace Monitor {
7 namespace PTrace {
9 bool MainObserver::handle_breakpoint(const BreakpointReference &breakpoint) {
10 static bool first_run = true;
11 if(first_run) {
12 first_run = false;
13 Initializer::get_instance()->get_program_manager()->place_initial_breakpoints();
14 return true;
16 return false;
19 } // namespace PTrace
20 } // namespace Monitor
21 } // namespace Aesalon