diff options
Diffstat (limited to 'gdb/gdbserver/linux-x86-64-low.c')
-rw-r--r-- | gdb/gdbserver/linux-x86-64-low.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/gdbserver/linux-x86-64-low.c b/gdb/gdbserver/linux-x86-64-low.c index d69b22a..e124890 100644 --- a/gdb/gdbserver/linux-x86-64-low.c +++ b/gdb/gdbserver/linux-x86-64-low.c @@ -30,7 +30,7 @@ #define X86_64_NUM_GREGS 22 -static int regmap[X86_64_NUM_GREGS] = { +static int x86_64_regmap[X86_64_NUM_GREGS] = { RAX, RBX, RCX, RDX, RSI, RDI, RBP, RSP, R8, R9, R10, R11, @@ -45,7 +45,7 @@ x86_64_fill_gregset (void *buf) int i; for (i = 0; i < X86_64_NUM_GREGS; i++) - collect_register (i, ((char *) buf) + regmap[i]); + collect_register (i, ((char *) buf) + x86_64_regmap[i]); } static void @@ -54,7 +54,7 @@ x86_64_store_gregset (void *buf) int i; for (i = 0; i < X86_64_NUM_GREGS; i++) - supply_register (i, ((char *) buf) + regmap[i]); + supply_register (i, ((char *) buf) + x86_64_regmap[i]); } static void @@ -69,7 +69,6 @@ x86_64_store_fpregset (void *buf) i387_fxsave_to_cache (buf); } - struct regset_info target_regsets[] = { { PTRACE_GETREGS, PTRACE_SETREGS, sizeof (elf_gregset_t), x86_64_fill_gregset, x86_64_store_gregset }, @@ -77,3 +76,10 @@ struct regset_info target_regsets[] = { x86_64_fill_fpregset, x86_64_store_fpregset }, { 0, 0, -1, NULL, NULL } }; + +struct linux_target_ops the_low_target = { + -1, + NULL, + NULL, + NULL, +}; |