Changed the breakpoint system to use the afore-mentioned system.
commitbd4091bf25c235439b4bbd7e2859f13a537baa4c
authorstrange <kawk256@gmail.com>
Sun, 17 Jan 2010 23:55:57 +0000 (17 16:55 -0700)
committerstrange <kawk256@gmail.com>
Sun, 17 Jan 2010 23:55:57 +0000 (17 16:55 -0700)
tree376115c1c9fe7d3702be413ef1671f0079ad4d64
parentc91d74ca2f4f5e7673fe755429a43348b08a126f
Changed the breakpoint system to use the afore-mentioned system.

Now, breakpoints notify the observers that they have been hit, rather than
Portal::handle_breakpoint() notifying each and all of the observers of the
breakpoint hit. As such, this should be more efficient.

Various other changes as well . . . such as Misc::SmartPointer's operator< and
operator== now performing on the values of the pointers, rather than
dereferenced operators.
15 files changed:
src/misc/SmartPointer.h
src/monitor/ProgramManager.cpp
src/monitor/dwarf/Parser.cpp
src/monitor/ptrace/Breakpoint.cpp [moved from src/monitor/Breakpoint.cpp with 64% similarity]
src/monitor/ptrace/Breakpoint.h [moved from src/monitor/Breakpoint.h with 59% similarity]
src/monitor/ptrace/BreakpointObserver.cpp
src/monitor/ptrace/BreakpointObserver.h
src/monitor/ptrace/BreakpointReference.cpp [copied from src/monitor/ptrace/BreakpointObserver.cpp with 79% similarity]
src/monitor/ptrace/BreakpointReference.h [new file with mode: 0644]
src/monitor/ptrace/MainObserver.cpp
src/monitor/ptrace/MainObserver.h
src/monitor/ptrace/MallocObserver.cpp
src/monitor/ptrace/MallocObserver.h
src/monitor/ptrace/Portal.cpp
src/monitor/ptrace/Portal.h