Adding thread ID to trace lines and cleaning up their formatting.

This commit is contained in:
Ben Vanik
2013-06-30 06:09:08 -07:00
parent 82ee749515
commit 6f602d120a
10 changed files with 84 additions and 49 deletions

View File

@@ -25,9 +25,12 @@ class Processor;
class ThreadState {
public:
ThreadState(Processor* processor,
uint32_t stack_size, uint32_t thread_state_address);
uint32_t stack_size, uint32_t thread_state_address,
uint32_t thread_id);
~ThreadState();
uint32_t thread_id() const;
xe_ppc_state_t* ppc_state();
private:
@@ -37,6 +40,7 @@ private:
uint32_t stack_address_;
uint32_t thread_state_address_;
uint32_t thread_id_;
xe_ppc_state_t ppc_state_;
};