summaryrefslogtreecommitdiff
path: root/gdb/nto-tdep.h
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:30:45 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:30:45 +0000
commit468e3d51268b65763ec2df63146968944c8cc607 (patch)
tree5ee66afbf7357887b7da616252916bc3378e6489 /gdb/nto-tdep.h
parent4e3269e3f1da68dc6a5e3d36630cf8a833e935d6 (diff)
* i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
Add REGCACHE parameter. Use it instead of current_regcache. (i386nto_supply_regset): Add REGCACHE parameter, pass it to i386nto_supply_gregset and i386nto_supply_fpregset. (i386nto_regset_fill): Add REGCACHE parameter; use it instead of current_regcache. * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to nto_supply_ helper functions. (procfs_store_registers): Pass current_regcache to nto_regset_fill. * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter. * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to supply_greget, supply_fpregset, supply_altregset, supply_regset, and regset_fill member function pointers. (nto_dummy_supply_regset): Adapt prototype.
Diffstat (limited to 'gdb/nto-tdep.h')
-rw-r--r--gdb/nto-tdep.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/nto-tdep.h b/gdb/nto-tdep.h
index df77a932d8..a688ad9591 100644
--- a/gdb/nto-tdep.h
+++ b/gdb/nto-tdep.h
@@ -51,14 +51,14 @@ struct nto_target_ops
regset it came from. If reg == -1 update all regsets. */
int (*regset_id) (int);
- void (*supply_gregset) (char *);
+ void (*supply_gregset) (struct regcache *, char *);
- void (*supply_fpregset) (char *);
+ void (*supply_fpregset) (struct regcache *, char *);
- void (*supply_altregset) (char *);
+ void (*supply_altregset) (struct regcache *, char *);
/* Given a regset, tell gdb about registers stored in data. */
- void (*supply_regset) (int, char *);
+ void (*supply_regset) (struct regcache *, int, char *);
/* Given a register and regset, calculate the offset into the regset
and stuff it into the last argument. If regno is -1, calculate the
@@ -68,7 +68,7 @@ struct nto_target_ops
/* Build the Neutrino register set info into the data buffer.
Return -1 if unknown regset, 0 otherwise. */
- int (*regset_fill) (int, char *);
+ int (*regset_fill) (const struct regcache *, int, char *);
/* Gives the fetch_link_map_offsets function exposure outside of
solib-svr4.c so that we can override relocate_section_addresses(). */
@@ -174,7 +174,7 @@ void nto_generic_supply_altregset (const struct regset *, struct regcache *,
/* Dummy function for initializing nto_target_ops on targets which do
not define a particular regset. */
-void nto_dummy_supply_regset (char *regs);
+void nto_dummy_supply_regset (struct regcache *regcache, char *regs);
int nto_in_dynsym_resolve_code (CORE_ADDR pc);