simulavr  1.1.0
Thread Class Reference

#include <hwstack.h>

Public Attributes

int m_sp
 Stack Pointer. Address 0x0000 is invalid; used for running thread. GDB never sees the 0. More...
 
int m_ip
 address (in bytes, not index) More...
 
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

◆ m_alive

bool Thread::m_alive

◆ m_created_by_thread

int Thread::m_created_by_thread

Definition at line 50 of file hwstack.h.

◆ m_ip

int Thread::m_ip

address (in bytes, not index)

Definition at line 45 of file hwstack.h.

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

◆ m_sp

int Thread::m_sp

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 ThreadList::GetThreadBySP(), ThreadList::OnPop(), and ThreadList::ThreadList().

◆ registers

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 ThreadList::OnCall().


The documentation for this class was generated from the following file: