From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7689 invoked by alias); 25 Oct 2011 17:27:07 -0000 Received: (qmail 7669 invoked by uid 22791); 25 Oct 2011 17:27:03 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 25 Oct 2011 17:26:35 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RIklm-0006Qj-Sv from pedro_alves@mentor.com ; Tue, 25 Oct 2011 10:26:35 -0700 Received: from scottsdale.localnet ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 25 Oct 2011 18:26:30 +0100 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [RFA/commit/ia64-linux] Allow libunwind to fetch register 0 Date: Tue, 25 Oct 2011 17:37:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.1; x86_64; ; ) Cc: Joel Brobecker References: <1319561563-20201-1-git-send-email-brobecker@adacore.com> <201110251818.43576.pedro@codesourcery.com> In-Reply-To: <201110251818.43576.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201110251826.24970.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00665.txt.bz2 On Tuesday 25 October 2011 18:18:42, Pedro Alves wrote: > > + { > > + const char r0_value[8] = {0x00, 0x00, 0x00, 0x00, > > + 0x00, 0x00, 0x00, 0x00}; > > FYI, in C, this is equivalent to: > > const char r0_value[8] = { 0 }; > > I'd write it as: > > const char zero[8] = { 0 }; > Actually, const s/char/gdb_byte/ too. :-) -- Pedro Alves