Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gdbstub.h File Reference
#include <inttypes.h>
#include <gdbstub/soc.h>

Go to the source code of this file.

Data Structures

struct  xtensa_register
 Register description for GDB stub. More...
 
struct  gdb_ctx
 Architecture specific GDB context. More...
 

Macros

#define XTREG_GRP_MASK   0x0F00
 
#define XTREG_GRP_GENERAL   0x0000
 
#define XTREG_GRP_ADDR   0x0100
 
#define XTREG_GRP_SPECIAL   0x0200
 
#define XTREG_GRP_USER   0x0300
 

Functions

static bool gdb_xtensa_is_logical_addr_reg (struct xtensa_register *reg)
 Test if the register is a logical address register (A0 - A15).
 
static bool gdb_xtensa_is_address_reg (struct xtensa_register *reg)
 Test if the register is a address register (AR0 - AR31/AR63).
 
static bool gdb_xtensa_is_special_reg (struct xtensa_register *reg)
 Test if the register is a special register that needs to be accessed via RSR/WSR.
 
static bool gdb_xtensa_is_user_reg (struct xtensa_register *reg)
 Test if the register is a user register that needs to be accessed via RUR/WUR.
 

Macro Definition Documentation

◆ XTREG_GRP_ADDR

#define XTREG_GRP_ADDR   0x0100

◆ XTREG_GRP_GENERAL

#define XTREG_GRP_GENERAL   0x0000

◆ XTREG_GRP_MASK

#define XTREG_GRP_MASK   0x0F00

◆ XTREG_GRP_SPECIAL

#define XTREG_GRP_SPECIAL   0x0200

◆ XTREG_GRP_USER

#define XTREG_GRP_USER   0x0300

Function Documentation

◆ gdb_xtensa_is_address_reg()

static bool gdb_xtensa_is_address_reg ( struct xtensa_register reg)
inlinestatic

Test if the register is a address register (AR0 - AR31/AR63).

Return values
trueif register is AR0 - AR31/AR63
falseif not

◆ gdb_xtensa_is_logical_addr_reg()

static bool gdb_xtensa_is_logical_addr_reg ( struct xtensa_register reg)
inlinestatic

Test if the register is a logical address register (A0 - A15).

Return values
trueif register is A0 - A15
falseif register is not A0 - A15

◆ gdb_xtensa_is_special_reg()

static bool gdb_xtensa_is_special_reg ( struct xtensa_register reg)
inlinestatic

Test if the register is a special register that needs to be accessed via RSR/WSR.

Return values
trueif special register
falseif not

◆ gdb_xtensa_is_user_reg()

static bool gdb_xtensa_is_user_reg ( struct xtensa_register reg)
inlinestatic

Test if the register is a user register that needs to be accessed via RUR/WUR.

Return values
trueif user register
falseif not