31 #ifndef _RTEMS_DEBUGGER_THREADS_h 32 #define _RTEMS_DEBUGGER_THREADS_h 34 #include <rtems/debugger/rtems-debugger-server.h> 38 #include "rtems-debugger-block.h" 47 #define RTEMS_DEBUGGER_THREAD_NAME_SIZE (5) 52 #define RTEMS_DEBUGGER_THREAD_BLOCK_SIZE (32) 57 #define RTEMS_DEBUGGER_THREAD_FLAG_EXCEPTION (1 << 0) 58 #define RTEMS_DEBUGGER_THREAD_FLAG_REG_VALID (1 << 1) 59 #define RTEMS_DEBUGGER_THREAD_FLAG_REG_DIRTY (1 << 2) 60 #define RTEMS_DEBUGGER_THREAD_FLAG_CONTINUE (1 << 3) 61 #define RTEMS_DEBUGGER_THREAD_FLAG_STEP (1 << 4) 62 #define RTEMS_DEBUGGER_THREAD_FLAG_STEPPING (1 << 5) 63 #define RTEMS_DEBUGGER_THREAD_FLAG_INTS_DISABLED (1 << 6) 65 #define RTEMS_DEBUGGER_THREAD_FLAG_TARGET_BASE (24) 66 #define RTEMS_DEBUGGER_THREAD_FLAG_TARGET_MASK (0xff << RTEMS_DEBUGGER_THREAD_FLAG_TARGET_BASE) 71 #define RTEMS_DEBUGGER_THREAD_FLAG_RESUME \ 72 (RTEMS_DEBUGGER_THREAD_FLAG_CONTINUE | \ 73 RTEMS_DEBUGGER_THREAD_FLAG_STEP | \ 74 RTEMS_DEBUGGER_THREAD_FLAG_STEPPING) 79 #define RTEMS_DEBUGGER_THREAD_FLAG_STEP_INSTR \ 80 (RTEMS_DEBUGGER_THREAD_FLAG_STEP | \ 81 RTEMS_DEBUGGER_THREAD_FLAG_STEPPING) 89 const char name[RTEMS_DEBUGGER_THREAD_NAME_SIZE];
127 extern int rtems_debugger_thread_create(
void);
132 extern int rtems_debugger_thread_destroy(
void);
137 extern int rtems_debugger_thread_find_index(
rtems_id id);
142 extern int rtems_debugger_thread_system_suspend(
void);
147 extern int rtems_debugger_thread_system_resume(
bool detaching);
152 extern int rtems_debugger_thread_continue_all(
void);
176 rtems_debugger_thread_is_stepping(
rtems_id id, DB_UINT
pc);
222 return (thread->flags & mask) != 0;
237 static inline uint8_t*
rtems_debugger_block registers
Definition: rtems-debugger-threads.h:115
rtems_debugger_block current
Definition: rtems-debugger-threads.h:114
Definition: rtems-debugger-threads.h:86
rtems_debugger_block excludes
Definition: rtems-debugger-threads.h:116
int selector_cont
Definition: rtems-debugger-threads.h:121
rtems_debugger_block stopped
Definition: rtems-debugger-threads.h:117
#define pc
pc, used on mips16 */
Definition: regs.h:67
int selector_gen
Definition: rtems-debugger-threads.h:120
void * block
Definition: rtems-debugger-block.h:47
rtems_debugger_block steppers
Definition: rtems-debugger-threads.h:118
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
Definition: rtems-debugger-block.h:45
unsigned size
Definition: tte.h:74
Definition: rtems-debugger-threads.h:102
size_t next
Definition: rtems-debugger-threads.h:119
Constants and Structures Related with the Thread Control Block.
Definition: rtems-debugger-threads.h:112