diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-10-05 21:31:33 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-10-05 21:31:33 +0000 |
commit | 473f17b0436507838ab28e57e7ca581d71c059b8 (patch) | |
tree | e0e9aad96933fd3e0614ebba92fa46ad69881fdc /gdb/i386-tdep.h | |
parent | c2059446380ed39ede4bb55ad2dbdb8cfb9df5dd (diff) | |
download | gdb-473f17b0436507838ab28e57e7ca581d71c059b8.zip gdb-473f17b0436507838ab28e57e7ca581d71c059b8.tar.gz gdb-473f17b0436507838ab28e57e7ca581d71c059b8.tar.bz2 |
* i386-tdep.h (struct gdbarch_tdep): Add members gregset,
gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
sizeof_fpregset.
* i386-tdep.c: Include "regset.h".
(i386_supply_gregset): New function.
(i386_supply_fpregset): New function.
(i386_gdbarch_init): Initialze register set-related members of
TDEP.
* x86-64-tdep.c (x86_64_supply_fpregset): New function.
(x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
Diffstat (limited to 'gdb/i386-tdep.h')
-rw-r--r-- | gdb/i386-tdep.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h index 6c4cf73..f9664bc 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -56,6 +56,16 @@ enum struct_return /* i386 architecture specific information. */ struct gdbarch_tdep { + /* General-purpose registers. */ + struct regset *gregset; + int *gregset_reg_offset; + int gregset_num_regs; + size_t sizeof_gregset; + + /* Floating-point registers. */ + struct regset *fpregset; + size_t sizeof_fpregset; + /* Register number for %st(0). The register numbers for the other registers follow from this one. Set this to -1 to indicate the absence of an FPU. */ |