aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-tdep.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-01-10 23:43:25 +0000
committerMark Kettenis <kettenis@gnu.org>2004-01-10 23:43:25 +0000
commita54124c5e3df343fbffbbfc5fe2766773ff18c15 (patch)
treec8b19fa973097b228826b2375315fc4bdc063b38 /gdb/sparc-tdep.h
parent6514c26378435fe89e5ff14d06ae92b061839e6f (diff)
downloadgdb-a54124c5e3df343fbffbbfc5fe2766773ff18c15.zip
gdb-a54124c5e3df343fbffbbfc5fe2766773ff18c15.tar.gz
gdb-a54124c5e3df343fbffbbfc5fe2766773ff18c15.tar.bz2
* sparc-tdep.h (struct regset): Provide opaque declaration.
(struct gdbarch_tdep): Add gregset, sizeof_gregset, fpregset and sizeof_fpregset members. * sparc-tdep.c (struct regset): Provide opaque declaration. (sparc_regset_from_core_section): New function. (sparc32_gdbarch_init): Initialize TDEP->gregset, TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset. Set regset_from_core_section when appropriate.
Diffstat (limited to 'gdb/sparc-tdep.h')
-rw-r--r--gdb/sparc-tdep.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/sparc-tdep.h b/gdb/sparc-tdep.h
index 05f2e36..fc239d3 100644
--- a/gdb/sparc-tdep.h
+++ b/gdb/sparc-tdep.h
@@ -24,6 +24,7 @@
struct gdbarch;
struct regcache;
+struct regset;
struct trad_frame_saved_reg;
/* Register offsets for the general-purpose register set. */
@@ -51,6 +52,12 @@ struct gdbarch_tdep
int pc_regnum;
int npc_regnum;
+ /* Register sets. */
+ struct regset *gregset;
+ size_t sizeof_gregset;
+ struct regset *fpregset;
+ size_t sizeof_fpregset;
+
/* Offset of saved PC in jmp_buf. */
int jb_pc_offset;