Debugger stuff. Lots of wasted work :/

This commit is contained in:
Ben Vanik
2015-07-26 22:47:03 -07:00
parent 42ef3f224a
commit 7ecc6362de
52 changed files with 3476 additions and 172 deletions

View File

@@ -104,17 +104,9 @@ ThreadState::ThreadState(Processor* processor, uint32_t thread_id,
// Set initial registers.
context_->r[1] = stack_base_;
context_->r[13] = pcr_address_;
if (processor_->debugger()) {
processor_->debugger()->OnThreadCreated(this);
}
}
ThreadState::~ThreadState() {
if (processor_->debugger()) {
processor_->debugger()->OnThreadDestroyed(this);
}
if (backend_data_) {
processor_->backend()->FreeThreadData(backend_data_);
}