simple-thread: give a name() function for debugging w/the SimpleThread object
This commit is contained in:
@@ -114,6 +114,11 @@ class SimpleThread : public ThreadState
|
||||
bool predicate;
|
||||
|
||||
public:
|
||||
std::string name() const
|
||||
{
|
||||
return csprintf("%s.[tid:%i]", cpu->name(), tc->threadId());
|
||||
}
|
||||
|
||||
// pointer to CPU associated with this SimpleThread
|
||||
BaseCPU *cpu;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user