aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-28 16:45:16 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-28 16:45:16 +0000
commitc84141d67e109faa68267eba2fbfbb4840a103c2 (patch)
tree76da83406b25e03790239d7c4037f6120d75e408 /gdb
parentacf0f27f9e1e9d8258bf8739b6e947fd07a563f2 (diff)
downloadgdb-c84141d67e109faa68267eba2fbfbb4840a103c2.zip
gdb-c84141d67e109faa68267eba2fbfbb4840a103c2.tar.gz
gdb-c84141d67e109faa68267eba2fbfbb4840a103c2.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/valarith.c2
-rw-r--r--gdb/valops.c5
-rw-r--r--gdb/valprint.c3
-rw-r--r--gdb/value.h9
5 files changed, 17 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b3eef4a..639a2a1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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.
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 00f20e1..418397a 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -1367,7 +1367,7 @@ value_complement (struct value *arg1)
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;
diff --git a/gdb/valops.c b/gdb/valops.c
index c708fac..e17ca3c 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1354,8 +1354,9 @@ search_struct_field (char *name, struct value *arg1, int offset,
* 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 */
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 4ef327f..3cd76ec 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -284,7 +284,8 @@ longest_to_int (LONGEST arg)
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;
diff --git a/gdb/value.h b/gdb/value.h
index be348a0..50b0932 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -382,7 +382,8 @@ extern struct value *register_value_being_returned (struct type *valtype,
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);
@@ -466,7 +467,7 @@ extern char *baseclass_addr (struct type *type, int index, char *valaddr,
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,
@@ -515,8 +516,8 @@ extern struct value *value_slice (struct value *, int, int);
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 *);