mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
kgdb,kdb: individual register set and and get API
The kdb shell specification includes the ability to get and set architecture specific registers by name. For the time being individual register get and set will be implemented on a per architecture basis. If an architecture defines DBG_MAX_REG_NUM > 0 then kdb and the gdbstub will use the capability for individually getting and setting architecture specific registers. Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
This commit is contained in:
parent
84a0bd5b28
commit
534af10823
3 changed files with 159 additions and 12 deletions
|
@ -90,6 +90,19 @@ struct kgdb_bkpt {
|
|||
enum kgdb_bpstate state;
|
||||
};
|
||||
|
||||
struct dbg_reg_def_t {
|
||||
char *name;
|
||||
int size;
|
||||
int offset;
|
||||
};
|
||||
|
||||
#ifndef DBG_MAX_REG_NUM
|
||||
#define DBG_MAX_REG_NUM 0
|
||||
#else
|
||||
extern struct dbg_reg_def_t dbg_reg_def[];
|
||||
extern char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs);
|
||||
extern int dbg_set_reg(int regno, void *mem, struct pt_regs *regs);
|
||||
#endif
|
||||
#ifndef KGDB_MAX_BREAKPOINTS
|
||||
# define KGDB_MAX_BREAKPOINTS 1000
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue