From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15247 invoked by alias); 26 Apr 2010 20:21:06 -0000 Received: (qmail 15228 invoked by uid 22791); 26 Apr 2010 20:21:03 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Apr 2010 20:20:52 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3QKKcdo027073 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 26 Apr 2010 16:20:38 -0400 Received: from psique.localnet (vpn-238-183.phx2.redhat.com [10.3.238.183]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3QKKbe6027804; Mon, 26 Apr 2010 16:20:38 -0400 From: Sergio Durigan Junior To: gdb-patches@sourceware.org, tromey@redhat.com Subject: Re: [PATCH] Gracefully handle not being able to access a DWARF =?iso-8859-1?q?=09register?= number Date: Mon, 26 Apr 2010 20:21:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.32.11-99.fc12.x86_64; KDE/4.4.2; x86_64; ; ) Cc: "Matthew Gretton-Dann" References: <1272295674.16160.23.camel@e102111-lin.cambridge.arm.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201004261720.36179.sergiodj@redhat.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: 2010-04/txt/msg00893.txt.bz2 On Monday 26 April 2010 17:06:34, Tom Tromey wrote: > >>>>> "Matthew" == Matthew Gretton-Dann writes: > Matthew> + warning (_("Unable to access DWARF register number %" > BFD_VMA_FMT "d"), Matthew> + p->v.expr.value); > > I think there is some other way to print a CORE_ADDR, but I forget what > it is. I think that's what you're looking for: /* Convert CORE_ADDR to string in platform-specific manner. This is usually formatted similar to 0x%lx. */ extern const char *paddress (struct gdbarch *gdbarch, CORE_ADDR addr); Defined in gdb/defs.h Regards, -- Sergio