This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Fix print_scalar_formatted
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 28 Jan 2005 14:06:34 -0500
- Subject: [commit] Fix print_scalar_formatted
fyi,
committed,
Andrew
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.
Index: gdbtypes.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.h,v
retrieving revision 1.60
diff -p -u -r1.60 gdbtypes.h
--- gdbtypes.h 1 Oct 2004 10:23:09 -0000 1.60
+++ gdbtypes.h 28 Jan 2005 19:03:08 -0000
@@ -1347,7 +1347,7 @@ extern void recursive_dump_type (struct
/* 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 *);
Index: printcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/printcmd.c,v
retrieving revision 1.81
diff -p -u -r1.81 printcmd.c
--- printcmd.c 12 Nov 2004 21:45:07 -0000 1.81
+++ printcmd.c 28 Jan 2005 19:03:08 -0000
@@ -334,8 +334,8 @@ print_formatted (struct value *val, int
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);