2005-01-28 Andrew Cagney <cagney@gnu.org>
+ * value.h (value_bit_index, print_floating)
+ (find_rt_vbase_offset): Make buffer a const bfd_byte.
+ * valprint.c (print_floating): Update.
+ * valarith.c (value_bit_index): Update.
+ * valops.c (find_rt_vbase_offset): Update.
+
* valprint.h (print_octal_chars, print_char_chars)
(print_hex_chars, print_decimal_chars, print_binary_chars): Make
buffer a const bfd_byte.
Return -1 if out of range, -2 other error. */
int
-value_bit_index (struct type *type, char *valaddr, int index)
+value_bit_index (struct type *type, const bfd_byte *valaddr, int index)
{
LONGEST low_bound, high_bound;
LONGEST word;
* conventions. */
void
-find_rt_vbase_offset (struct type *type, struct type *basetype, char *valaddr,
- int offset, int *boffset_p, int *skip_p)
+find_rt_vbase_offset (struct type *type, struct type *basetype,
+ const bfd_byte *valaddr, int offset, int *boffset_p,
+ int *skip_p)
{
int boffset; /* offset of virtual base */
int index; /* displacement to use in virtual table */
TYPE_CODE_FLT), pointed to in GDB by VALADDR, on STREAM. */
void
-print_floating (char *valaddr, struct type *type, struct ui_file *stream)
+print_floating (const bfd_byte *valaddr, struct type *type,
+ struct ui_file *stream)
{
DOUBLEST doub;
int inv;
extern struct value *value_in (struct value *element, struct value *set);
-extern int value_bit_index (struct type *type, char *addr, int index);
+extern int value_bit_index (struct type *type, const bfd_byte *addr,
+ int index);
extern int using_struct_return (struct type *value_type, int gcc_p);
extern void print_longest (struct ui_file *stream, int format,
int use_local, LONGEST val);
-extern void print_floating (char *valaddr, struct type *type,
+extern void print_floating (const bfd_byte *valaddr, struct type *type,
struct ui_file *stream);
extern int value_print (struct value *val, struct ui_file *stream, int format,
extern struct value *value_literal_complex (struct value *, struct value *,
struct type *);
-extern void find_rt_vbase_offset (struct type *, struct type *, char *, int,
- int *, int *);
+extern void find_rt_vbase_offset (struct type *, struct type *,
+ const bfd_byte *, int, int *, int *);
extern struct value *find_function_in_inferior (const char *);