2005-01-28 Andrew Cagney <cagney@gnu.org>
- * printcmd.c (print_scalar_formatted): Update.
+ * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
+
* gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
+ * printcmd.c (print_scalar_formatted): Update.
* value.h (value_bit_index, print_floating)
(find_rt_vbase_offset): Make buffer a const bfd_byte.
/* Support for printing Ada values for GDB, the GNU debugger.
+
Copyright 1986, 1988, 1989, 1991, 1992, 1993, 1994, 1997, 2001,
- 2002, 2003, 2004.
- Free Software Foundation, Inc.
+ 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GDB.
or 2) of a character. */
static int
-char_at (char *string, int i, int type_len)
+char_at (const bfd_byte *string, int i, int type_len)
{
if (type_len == 1)
return string[i];
*/
static void
-printstr (struct ui_file *stream, char *string, unsigned int length,
- int force_ellipses, int type_len)
+printstr (struct ui_file *stream, const bfd_byte *string,
+ unsigned int length, int force_ellipses, int type_len)
{
unsigned int i;
unsigned int things_printed = 0;