From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24374 invoked by alias); 24 Feb 2007 08:24:01 -0000 Received: (qmail 24361 invoked by uid 22791); 24 Feb 2007 08:23:59 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 24 Feb 2007 08:23:49 +0000 Received: from kahikatea.snap.net.nz (47.63.255.123.dynamic.snap.net.nz [123.255.63.47]) by viper.snap.net.nz (Postfix) with ESMTP id 811973D8204 for ; Sat, 24 Feb 2007 21:23:45 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 00DB54F6A5; Sat, 24 Feb 2007 21:23:44 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17887.62990.937672.281975@kahikatea.snap.net.nz> Date: Sat, 24 Feb 2007 16:13:00 -0000 To: gdb@sourceware.org Subject: Re: [RFC] Signed/unsigned character arrays are not strings X-Mailer: VM 7.19 under Emacs 22.0.94.2 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00254.txt.bz2 On Thu, 25 Jan 2007 02:54:22 +0100, Jan Kratochvil wrote (gdb-patches): > currently all these types are printed as strings: > char > signed char > unsigned char > the patch will reduce the printed strings only to > char > and the signed/unsigned version gets printed as an array of byte values > (characters). I hope nobody uses sign-specification for strings. > On the other hand byte arrays become unreadable if printed as strings. Emacs uses sign-specification for strings. There is a user defined command called xbacktrace that prints a backtrace of Lisp functions. Previously it got printed like: (gdb) xbacktrace "split-window" (0x838c8c9) "split-window-vertically" (0x838c8c9) "call-interactively" (0x85b3ac9) It now gets printed as: (gdb) xbacktrace {115 's', 112 'p', 108 'l', 105 'i', 116 't', 45 '-', 119 'w', 105 'i', 110 'n', 100 'd', 111 'o', 119 'w'} (0x838c8c9) {115 's', 112 'p', 108 'l', 105 'i', 116 't', 45 '-', 119 'w', 105 'i', 110 'n', 100 'd', 111 'o', 119 'w', 45 '-', 118 'v', 101 'e', 114 'r', 116 't', 105 'i', 99 'c', 97 'a', 108 'l', 108 'l', 121 'y'} (0x838c8c9) {99 'c', 97 'a', 108 'l', 108 'l', 45 '-', 105 'i', 110 'n', 116 't', 101 'e', 114 'r', 97 'a', 99 'c', 116 't', 105 'i', 118 'v', 101 'e', 108 'l', 121 'y'} (0x85b3ac9) -- Nick http://www.inet.net.nz/~nickrob