aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-28 19:03:53 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-28 19:03:53 +0000
commit366b1cbfdcd51ab1cac1f5fce3b41c7d31d827b5 (patch)
treeb798c407f777f0e8f513afd02343db3cee218c7f
parentb134237006c3ca03ab8a97e0334257885f578f5c (diff)
downloadgdb-366b1cbfdcd51ab1cac1f5fce3b41c7d31d827b5.zip
gdb-366b1cbfdcd51ab1cac1f5fce3b41c7d31d827b5.tar.gz
gdb-366b1cbfdcd51ab1cac1f5fce3b41c7d31d827b5.tar.bz2
2005-01-28 Andrew Cagney <cagney@gnu.org>
* printcmd.c (print_scalar_formatted): Update. * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/gdbtypes.h2
-rw-r--r--gdb/printcmd.c4
3 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 639a2a1..f339d31 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2005-01-28 Andrew Cagney <cagney@gnu.org>
+ * printcmd.c (print_scalar_formatted): Update.
+ * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
+
* value.h (value_bit_index, print_floating)
(find_rt_vbase_offset): Make buffer a const bfd_byte.
* valprint.c (print_floating): Update.
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index eb28de2..6c12f05 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -1347,7 +1347,7 @@ extern void recursive_dump_type (struct type *, int);
/* printcmd.c */
-extern void print_scalar_formatted (void *, struct type *, int, int,
+extern void print_scalar_formatted (const void *, struct type *, int, int,
struct ui_file *);
extern int can_dereference (struct type *);
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 6ca1f6b..fb13ecb 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -334,8 +334,8 @@ print_formatted (struct value *val, int format, int size,
with a format. */
void
-print_scalar_formatted (void *valaddr, struct type *type, int format, int size,
- struct ui_file *stream)
+print_scalar_formatted (const void *valaddr, struct type *type,
+ int format, int size, struct ui_file *stream)
{
LONGEST val_long = 0;
unsigned int len = TYPE_LENGTH (type);