Automatically install any CPU breakpoints in any newly-defined functions if necessary.

This commit is contained in:
Dr. Chat
2015-11-27 23:00:38 -06:00
committed by Ben Vanik
parent d09e3b7953
commit 41d5b41523
6 changed files with 51 additions and 3 deletions

View File

@@ -49,6 +49,18 @@ class Function : public Symbol {
void set_behavior(Behavior value) { behavior_ = value; }
bool is_guest() const { return behavior_ != Behavior::kBuiltin; }
bool ContainsAddress(uint32_t address) const {
if (!address_ || !end_address_) {
return false;
}
if (address >= address_ && address < end_address_) {
return true;
}
return false;
}
virtual bool Call(ThreadState* thread_state, uint32_t return_address) = 0;
protected: