summaryrefslogtreecommitdiff
path: root/gdb/user-regs.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/user-regs.h')
-rw-r--r--gdb/user-regs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/user-regs.h b/gdb/user-regs.h
index 7af1cbf38f0..5cc9d0586ad 100644
--- a/gdb/user-regs.h
+++ b/gdb/user-regs.h
@@ -57,15 +57,16 @@ extern const char *user_reg_map_regnum_to_name (struct gdbarch *gdbarch,
bytes as, at the time the register is being added, the type needed
to describe the register has not bee initialized. */
-typedef struct value *(user_reg_read_ftype) (struct frame_info *frame);
+typedef struct value *(user_reg_read_ftype) (struct frame_info *frame,
+ const void *baton);
extern struct value *value_of_user_reg (int regnum, struct frame_info *frame);
/* Add a builtin register (present in all architectures). */
extern void user_reg_add_builtin (const char *name,
- user_reg_read_ftype *read);
+ user_reg_read_ftype *read, const void *baton);
/* Add a per-architecture frame register. */
extern void user_reg_add (struct gdbarch *gdbarch, const char *name,
- user_reg_read_ftype *read);
+ user_reg_read_ftype *read, const void *baton);
#endif