#include <errno.h>
#include <stddef.h>
#include <string.h>
#include <dwarf-regs.h>
#include <linux/ptrace.h>
#include <linux/stringify.h>
#include "util.h"
Go to the source code of this file.
◆ DWARFNUM2OFFSET
#define DWARFNUM2OFFSET |
( |
|
index | ) |
(index * sizeof((struct user_pt_regs *)0)->regs[0]) |
◆ GPR_DWARFNUM_NAME
#define GPR_DWARFNUM_NAME |
( |
|
num | ) |
{.name = __stringify(%x##num), .dwarfnum = num} |
◆ REG_DWARFNUM_END
#define REG_DWARFNUM_END {.name = NULL, .dwarfnum = 0} |
◆ REG_DWARFNUM_NAME
#define REG_DWARFNUM_NAME |
( |
|
r, |
|
|
|
num |
|
) |
| {.name = r, .dwarfnum = num} |
◆ get_arch_regstr()
const char* get_arch_regstr |
( |
unsigned int |
n | ) |
|
get_arch_regstr() - lookup register name from it's DWARF register number
: the DWARF register number
get_arch_regstr() returns the name of the register in struct regdwarfnum_table from it's DWARF register number. If the register is not found in the table, this returns NULL;
Definition at line 79 of file dwarf-regs.c.
◆ regs_query_register_offset()
int regs_query_register_offset |
( |
const char * |
name | ) |
|
◆ regdwarfnum_table