2 #define _CSDBG_THREAD 1
59 virtual const i8*
name()
const;
61 virtual pthread_t
handle()
const;
This abstract class serves as the root of the class hierarchy tree.
virtual thread & called(mem_addr_t, mem_addr_t, const i8 *)
Simulate a function call.
virtual pthread_t handle() const
Get the thread handle.
char i8
8-bit signed integer
stack< call > * m_stack
Simulated call stack.
Class csdbg::stack definition and method implementation.
Lightweight, templated, singly-linked LIFO queue (stack)
virtual bool is_current() const
Check if this is the currently executing thread.
This class represents a program/library runtime function call.
virtual thread & returned()
Simulate a function return.
This class represents a thread of execution in the instrumented process.
virtual ~thread()
Object destructor.
virtual thread & operator=(const thread &)
Assignment operator.
virtual thread & unwind()
Unwind the simulated call stack to meet the real call stack.
virtual u32 call_depth() const
Get the size (call depth) of the simulated call stack.
virtual i32 lag() const
Get the size (call depth) of the simulated call stack with respect to the real call stack...
thread(const i8 *=NULL)
Object constructor.
virtual thread * clone() const
Object virtual copy constructor.
unsigned int u32
32-bit unsigned integer
int i32
32-bit signed integer
virtual const call * backtrace(u32) const
Peek at the simulated call stack.
virtual const i8 * name() const
Get the thread name.
unsigned long long mem_addr_t
64-bit memory address
i32 m_lag
The number of calls that must be popped off the simulated stack for it to match the real one...
Class csdbg::call definition.
pthread_t m_handle
Thread handle.
virtual thread & set_name(const i8 *)
Set the thread name.