From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11245 invoked by alias); 8 Nov 2011 04:39:29 -0000 Received: (qmail 10907 invoked by uid 22791); 8 Nov 2011 04:39:26 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Nov 2011 04:39:10 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E37A41B4028 for ; Tue, 8 Nov 2011 04:39:09 +0000 (UTC) From: Mike Frysinger To: gdb@sourceware.org Subject: output-radix breaks char output Date: Tue, 08 Nov 2011 04:39:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.1.0-rc4; KDE/4.6.5; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2546137.ZPo7U2Fs8F"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201111072339.09196.vapier@gentoo.org> 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: 2011-11/txt/msg00057.txt.bz2 --nextPart2546137.ZPo7U2Fs8F Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-length: 580 am i doing something wrong here ? seems like setting output-radix to 16=20 breaks x/c output. $ echo 'char f[]=3D"abc";main(){}' | gcc -x c -g - -o a.out $ gdb ./a.out (gdb) b main (gdb) r (gdb) set output-radix 10 Output radix now set to decimal 10, hex a, octal 12. (gdb) x/4c f 0x601018 : 97 'a' 98 'b' 99 'c' 0 '\000' (gdb) set output-radix 16 Output radix now set to decimal 16, hex 10, octal 20. (gdb) x/4c f 0x601018 : 0x61 0x62 0x63 0x0 i can understand the 0x61/97 change, but imo, the latter output shouldn't b= e=20 missing the 'a' bits. -mike --nextPart2546137.ZPo7U2Fs8F Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJOuLJtAAoJEEFjO5/oN/WBH6MQANIKGBAcx+j/3XBwWkVBbFnh QNxghfa5wWdjxw1ddQYxRaXG7XXCrH6F5uXnwpbStdUT9cIpev0I4b4BMNaMYnD5 eNASKOxs4DCA7c26T44zYLZboZdeRaqxoZp2L7JPUtGJy4/lt5AUzyFWGyDPNOm/ YfHsV0CQb9jFh3Ss/DsTG7h69PppuZX0RppJdUmmAb7mv9EzurFx5HsW5ay3961j ZboSTyxI2Q4qQ51g0TQ+HTvFYSrkyqplJs24tlZ/OZWeE9HqqPnEJ9Vw0SFoE5tC epoHKs09i95wIFm/EZmURnEh4lGtF6QpSCPx1yTRk5bGMMKSoe8fBLiBevm6hkF5 XIQu/QStDA3S5hIbBzj6HWmTVeRSjeq3hIUhHuG1bW2i5td8746oojduAr92Jn+8 KYmWSE1akMAx0nNcInqQ2YeQS4mgmp6qpr4FZvYfW45n+E50BdZ8j4CDtjX+I5d8 Ezs5yCPEJGOEumAm1pTa2s9Nr1yZtNsR5iyrnl6tNcu4OmeBkdM9FMQsnUppEhXF AK1FeqBNaA74cLEVvd4b1SCZO7I3Cy5eCts6OQVjZUdwIHX+QDJvzbap09IVRhQk 3SCxQw9poSymVPjOuRw7hQbbFBw2H6Imd60u/5ONneWPDzr7YoFxXCkn5JvqpMH9 9JTi6wd4XTiGh/Td3Nza =VCPu -----END PGP SIGNATURE----- --nextPart2546137.ZPo7U2Fs8F--