Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
xtensa_register Struct Reference

Register description for GDB stub. More...

#include <gdbstub.h>

Data Fields

uint32_t val
 Register value.
 
uint8_t idx
 GDB register index (for p/P packets)
 
uint8_t byte_size
 Size of register.
 
uint16_t regno
 Xtensa register number.
 
int16_t gpkt_offset
 Offset of this register in GDB G-packet.
 
int8_t stack_offset
 Offset of saved register in stack frame.
 
uint8_t seqno
 Sequence number.
 
uint8_t is_read_only:1
 Set to 1 if register should not be written to during debugging.
 

Detailed Description

Register description for GDB stub.

Values are based on gdb/gdb/xtensa-config.c in the Xtensa overlay, where registers are defined using XTREG() macro: XTREG(index,ofs,bsz,sz,al,tnum,flg,cp,ty,gr,name,fet,sto,mas,ct,x,y)

Translation: idx : index regno : tnum 0x00xx : General Registers (A0 - A15, PC) 0x01xx : Address Registers (AR0 - AR31/AR63) 0x02xx : Special Registers (access via RSR/WSR) 0x03xx : User Registers (access via RUR/WUR) byte_size : sz gpkt_offset : ofs

Field Documentation

◆ byte_size

uint8_t xtensa_register::byte_size

Size of register.

◆ gpkt_offset

int16_t xtensa_register::gpkt_offset

Offset of this register in GDB G-packet.

-1 if register is not in G-packet.

◆ idx

uint8_t xtensa_register::idx

GDB register index (for p/P packets)

◆ is_read_only

uint8_t xtensa_register::is_read_only

Set to 1 if register should not be written to during debugging.

◆ regno

uint16_t xtensa_register::regno

Xtensa register number.

◆ seqno

uint8_t xtensa_register::seqno

Sequence number.

◆ stack_offset

int8_t xtensa_register::stack_offset

Offset of saved register in stack frame.

0 if not saved in stack frame.

◆ val

uint32_t xtensa_register::val

Register value.


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