Thread Class Reference

#include <hwstack.h>

List of all members.

Public Attributes

int m_sp
 Stack Pointer. Address 0x0000 is invalid; used for running thread. GDB never sees the 0.
int m_ip
 address (in bytes, not index)
bool m_alive
unsigned char registers [32]
int m_created_by_thread

Detailed Description

A thread automatically detected in simulated program. We keep track of them in core->stack.m_ThreadList.m_threads[] and report them to GDB.

Definition at line 40 of file hwstack.h.


Member Data Documentation

Definition at line 50 of file hwstack.h.

address (in bytes, not index)

Definition at line 45 of file hwstack.h.

Referenced by GdbServer::gdb_read_registers(), ThreadList::OnPop(), and ThreadList::ThreadList().

Stack Pointer. Address 0x0000 is invalid; used for running thread. GDB never sees the 0.

Definition at line 44 of file hwstack.h.

Referenced by GdbServer::gdb_read_registers(), ThreadList::GetThreadBySP(), ThreadList::OnPop(), and ThreadList::ThreadList().

unsigned char Thread::registers[32]

State of R0 - R31 registers at last call-site. GDB's prologue analyzer is weak and would not unwind the stack at "switch-site" - but it would on call-site.

Definition at line 49 of file hwstack.h.

Referenced by GdbServer::gdb_read_registers(), and ThreadList::OnCall().


The documentation for this class was generated from the following file:
Generated on Sun Feb 12 16:53:11 2012 for Simulavr by  doxygen 1.6.3