Continued ripping up the source.
[aesalon.git] / monitor / src / ptrace / FreeObserver.cpp
blob14cd71005aeab75931b586fd2f408c5ac6e79c67
1 #include <iostream>
2 #include "FreeObserver.h"
3 #include "Initializer.h"
4 #include "BreakpointReference.h"
5 #include "Portal.h"
6 #include "misc/BlockEvent.h"
8 namespace Aesalon {
9 namespace Monitor {
10 namespace PTrace {
12 void FreeObserver::handle_breakpoint(const BreakpointReference &breakpoint) {
13 Initializer::get_instance()->get_event_queue()->push_event(
14 new Misc::BlockEvent(Misc::BlockEvent::FREE_EVENT,
15 Initializer::get_instance()->get_program_manager()->get_ptrace_portal()->get_register(ASM::Register::RAX)));
18 } // namespace PTrace
19 } // namespace Monitor
20 } // namespace Aesalon