summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-28 23:42:28 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-28 23:42:28 +0000
commit9791da390a70a0e43b0b2811b5e38f4a63b10835 (patch)
tree51ae7582b5aaaa38d4413830cd8dd6196417f708
parent7e9cc269e72cdb9e8ba3436bc37084b83c2ddb72 (diff)
downloadgdb-9791da390a70a0e43b0b2811b5e38f4a63b10835.tar.gz
2005-01-28 Andrew Cagney <cagney@gnu.org>
* valprint.c (val_print_type_code_int): Make buffer a const bfd_byte. * valprint.h (val_print_type_code_int): Ditto.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/valprint.c2
-rw-r--r--gdb/valprint.h2
3 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 827471ae39d..e42cac89a48 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2005-01-28 Andrew Cagney <cagney@gnu.org>
+ * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
+ * valprint.h (val_print_type_code_int): Ditto.
+
* objc-lang.h (c_val_print, c_value_print): Delete declarations.
* cp-valprint.c (cp_print_class_method)
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 3cd76ec6e61..b3e4443dd93 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -177,7 +177,7 @@ value_print (struct value *val, struct ui_file *stream, int format,
value. STREAM is where to print the value. */
void
-val_print_type_code_int (struct type *type, char *valaddr,
+val_print_type_code_int (struct type *type, const bfd_byte *valaddr,
struct ui_file *stream)
{
if (TYPE_LENGTH (type) > sizeof (LONGEST))
diff --git a/gdb/valprint.h b/gdb/valprint.h
index 444c2f9c00d..89ae2700ffa 100644
--- a/gdb/valprint.h
+++ b/gdb/valprint.h
@@ -54,7 +54,7 @@ extern void val_print_array_elements (struct type *, char *, CORE_ADDR,
struct ui_file *, int, int, int,
enum val_prettyprint, unsigned int);
-extern void val_print_type_code_int (struct type *, char *,
+extern void val_print_type_code_int (struct type *, const bfd_byte *,
struct ui_file *);
extern void print_binary_chars (struct ui_file *, const bfd_byte *,