From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30344 invoked by alias); 19 Feb 2013 14:59:31 -0000 Received: (qmail 30335 invoked by uid 22791); 19 Feb 2013 14:59:30 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ie0-f177.google.com (HELO mail-ie0-f177.google.com) (209.85.223.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 19 Feb 2013 14:59:16 +0000 Received: by mail-ie0-f177.google.com with SMTP id 16so8230836iea.8 for ; Tue, 19 Feb 2013 06:59:16 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.50.7.242 with SMTP id m18mr9518309iga.53.1361285947429; Tue, 19 Feb 2013 06:59:07 -0800 (PST) Received: by 10.64.231.200 with HTTP; Tue, 19 Feb 2013 06:59:07 -0800 (PST) In-Reply-To: <20130219145158.GA29938@adacore.com> References: <20130219141635.GK22175@adacore.com> <20130219145158.GA29938@adacore.com> Date: Tue, 19 Feb 2013 14:59:00 -0000 Message-ID: Subject: Re: [patch gdb]: Fix display for LLP64 target in window-nat.c From: Kai Tietz To: Joel Brobecker Cc: gdb Content-Type: text/plain; charset=ISO-8859-1 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: 2013-02/txt/msg00078.txt.bz2 2013/2/19 Joel Brobecker : >> You should use %s & host_address_to_string instead of %p & >> the various casts. So the following should work: >> >> DEBUG_MEM (("gdb: write target memory, %d bytes at 0x%s\n", >> len, host_address_to_string (memaddr))); >> >> OK with that change. > > Actually, I was confused. Sorry. Try either core_addr_to_string_nz > (or core_addr_to_string if you want leading zeros)... > Ok, I was now confused too due host_address_to_string is requiring an pointer as input. Just re-testing adjusted patch and will commit then. Thanks, Kai