From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4020 invoked by alias); 28 Jan 2005 19:20:11 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3985 invoked from network); 28 Jan 2005 19:20:06 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 28 Jan 2005 19:20:06 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j0SJK1td029628 for ; Fri, 28 Jan 2005 14:20:06 -0500 Received: from localhost.redhat.com (vpn50-67.rdu.redhat.com [172.16.50.67]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j0SJK0O06036; Fri, 28 Jan 2005 14:20:00 -0500 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id B61347D79; Fri, 28 Jan 2005 14:19:50 -0500 (EST) Message-ID: <41FA9054.8050909@gnu.org> Date: Fri, 28 Jan 2005 19:20:00 -0000 From: Andrew Cagney User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [commit] Ada-valprint.c const tweaks Content-Type: multipart/mixed; boundary="------------040503040505040708070909" X-SW-Source: 2005-01/txt/msg00281.txt.bz2 This is a multi-part message in MIME format. --------------040503040505040708070909 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 12 FYI, Andrew --------------040503040505040708070909 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1328 2005-01-28 Andrew Cagney * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte. Index: ada-valprint.c =================================================================== RCS file: /cvs/src/src/gdb/ada-valprint.c,v retrieving revision 1.17 diff -p -u -r1.17 ada-valprint.c --- ada-valprint.c 12 Jan 2005 18:31:30 -0000 1.17 +++ ada-valprint.c 28 Jan 2005 19:16:03 -0000 @@ -1,7 +1,7 @@ /* 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. @@ -278,7 +278,7 @@ ada_emit_char (int c, struct ui_file *st 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]; @@ -439,8 +439,8 @@ ada_print_scalar (struct type *type, LON */ 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; --------------040503040505040708070909--