aboutsummaryrefslogtreecommitdiff
path: root/arch_x86
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 18:22:51 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 18:22:55 +0200
commit9e71e29d6493fedf98cd8f336c386018d642fc6c (patch)
tree693b58af50c79234a5120c874aa49e91f2574148 /arch_x86
parentebe31dc0d18d11d38060478a3c631c0edb693731 (diff)
Replaced DBG_CPU_I386_NUM_REGISTERS by DBG_CPU_NUM_REGISTERS
This allows gdbstub.c to be compiled with other gdbstub_sys.c definitions by keeping one definition for the total number of registers available on the target.
Diffstat (limited to 'arch_x86')
-rw-r--r--arch_x86/gdbstub_sys.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch_x86/gdbstub_sys.h b/arch_x86/gdbstub_sys.h
index 82f7ca9..18878d9 100644
--- a/arch_x86/gdbstub_sys.h
+++ b/arch_x86/gdbstub_sys.h
@@ -104,12 +104,12 @@ enum DBG_REGISTER {
DBG_CPU_I386_REG_ES = 13,
DBG_CPU_I386_REG_FS = 14,
DBG_CPU_I386_REG_GS = 15,
- DBG_CPU_I386_NUM_REGISTERS = 16
+ DBG_CPU_NUM_REGISTERS = 16
};
struct dbg_state {
int signum;
- reg registers[DBG_CPU_I386_NUM_REGISTERS];
+ reg registers[DBG_CPU_NUM_REGISTERS];
};
/*****************************************************************************