Added BreakpointSetupObserver, and moved Event* into Platform::.
commit7e5103dc134622393c425bfb635c41502a837782
authorstrange <kawk256@gmail.com>
Wed, 2 Dec 2009 23:11:10 +0000 (2 16:11 -0700)
committerstrange <kawk256@gmail.com>
Wed, 2 Dec 2009 23:11:10 +0000 (2 16:11 -0700)
tree9b4d294a64d0b82cfa2e75ebb158f1f7353bf75c
parent3071830dcbaf30c05924d3c8c1deccf21ce89a35
Added BreakpointSetupObserver, and moved Event* into Platform::.

Basically, BreakpointSetupObserver is a temporary observer that sets
breakpoints on several places -- malloc, free, realloc, and calloc, to be
precise.

Also implemented Misc::String::to<Type>(std::string, Type &), which converts a
string into a given type. Very useful.
32 files changed:
src/interface/Initializer.cpp
src/interface/Initializer.h
src/interface/gdb/BreakpointObserver.cpp
src/interface/gdb/BreakpointSetupObserver.cpp [new file with mode: 0644]
src/interface/gdb/BreakpointSetupObserver.h [new file with mode: 0644]
src/interface/gdb/Controller.cpp
src/interface/gdb/Controller.h
src/interface/gdb/ExitObserver.cpp
src/interface/gdb/FreeObserver.cpp [new file with mode: 0644]
src/interface/gdb/FreeObserver.h [new file with mode: 0644]
src/interface/gdb/MallocObserver.cpp [new file with mode: 0644]
src/interface/gdb/MallocObserver.h [new file with mode: 0644]
src/interface/gdb/ReallocObserver.cpp [new file with mode: 0644]
src/interface/gdb/ReallocObserver.h [new file with mode: 0644]
src/interface/gdb/StringFollower.cpp
src/interface/gdb/SymbolObserver.cpp
src/misc/String.cpp
src/misc/String.h
src/platform/Event.cpp [moved from src/misc/Event.cpp with 100% similarity]
src/platform/Event.h [moved from src/misc/Event.h with 86% similarity]
src/platform/EventQueue.cpp [moved from src/misc/EventQueue.cpp with 86% similarity]
src/platform/EventQueue.h [moved from src/misc/EventQueue.h with 86% similarity]
src/platform/Memory.cpp
src/platform/Memory.h
src/platform/MemoryBlockManager.cpp
src/platform/MemoryBlockManager.h
src/platform/MemoryEvent.h
src/platform/MemoryReferenceManager.cpp
src/platform/MemoryReferenceManager.h
src/platform/PipeListener.cpp
src/platform/Program.cpp
src/platform/Program.h