gdbregs_cf.c

来自「umon bootloader source code, support mip」· C语言 代码 · 共 20 行

C
20
字号
/* Not all CPUs refer to the register pointing to the next instruction
 * address as "PC", so this definition allows it to be cpu specific...
 */
#define CPU_PC_REG	"PC"

/* List of the register names for the ColdFire in the order they
 * are expected by the GDB 'g' command (read all registers).
 * Not sure why I need to pad the end of the table, but GDB appears
 * to want to see more registers than are actually in the CPU.
 */
static char *gdb_regtbl[] = {
	"D0", "D1", "D2", "D3", "D4", "D5", "D6", "D7",
	"A0", "A1", "A2", "A3", "A4", "A5", "A6", "SP",
	"SR", "PC", "D0", "D0", "D0", 0,0,0,
	0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?