From 8929e59d3f642c8d0b3593ccc5555a4b2f28cb14 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 28 Apr 2005 16:15:19 +0000 Subject: 2005-04-28 Andrew Cagney * valops.c (check_field): Make buffer a bfd_byte. * value.c (unpack_long, unpack_double, unpack_pointer) (unpack_field_as_long, modify_field): Ditto. * value.h: Update declarations. --- gdb/value.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'gdb/value.h') diff --git a/gdb/value.h b/gdb/value.h index 004c7d5..744c26c 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -262,11 +262,12 @@ extern LONGEST value_as_long (struct value *val); extern DOUBLEST value_as_double (struct value *val); extern CORE_ADDR value_as_address (struct value *val); -extern LONGEST unpack_long (struct type *type, const char *valaddr); -extern DOUBLEST unpack_double (struct type *type, const char *valaddr, +extern LONGEST unpack_long (struct type *type, const bfd_byte *valaddr); +extern DOUBLEST unpack_double (struct type *type, const bfd_byte *valaddr, int *invp); -extern CORE_ADDR unpack_pointer (struct type *type, const char *valaddr); -extern LONGEST unpack_field_as_long (struct type *type, const char *valaddr, +extern CORE_ADDR unpack_pointer (struct type *type, const bfd_byte *valaddr); +extern LONGEST unpack_field_as_long (struct type *type, + const bfd_byte *valaddr, int fieldno); extern struct value *value_from_longest (struct type *type, LONGEST num); @@ -451,14 +452,15 @@ extern void release_value (struct value *val); extern int record_latest_value (struct value *val); -extern void modify_field (char *addr, LONGEST fieldval, int bitpos, +extern void modify_field (bfd_byte *addr, LONGEST fieldval, int bitpos, int bitsize); extern void type_print (struct type *type, char *varstring, struct ui_file *stream, int show); -extern char *baseclass_addr (struct type *type, int index, char *valaddr, - struct value **valuep, int *errp); +extern bfd_byte *baseclass_addr (struct type *type, int index, + bfd_byte *valaddr, + struct value **valuep, int *errp); extern void print_longest (struct ui_file *stream, int format, int use_local, LONGEST val); @@ -493,7 +495,7 @@ extern void print_variable_value (struct symbol *var, struct frame_info *frame, struct ui_file *stream); -extern int check_field (struct value *, const char *); +extern int check_field (struct value *, const bfd_byte *); extern void typedef_print (struct type *type, struct symbol *news, struct ui_file *stream); -- cgit v1.1