From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1872 invoked by alias); 5 Mar 2008 18:27:33 -0000 Received: (qmail 1864 invoked by uid 22791); 5 Mar 2008 18:27:32 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate7.de.ibm.com (HELO mtagate7.de.ibm.com) (195.212.29.156) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 05 Mar 2008 18:27:03 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate7.de.ibm.com (8.13.8/8.13.8) with ESMTP id m25IQxo1488384 for ; Wed, 5 Mar 2008 18:26:59 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m25IQxlQ2060460 for ; Wed, 5 Mar 2008 19:26:59 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m25IQxZq025396 for ; Wed, 5 Mar 2008 18:26:59 GMT Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id m25IQxAT025393; Wed, 5 Mar 2008 18:26:59 GMT Message-Id: <200803051826.m25IQxAT025393@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Wed, 5 Mar 2008 19:26:59 +0100 Subject: Re: [RFC] Add support for PPC Altivec registers in gcore To: cseo@linux.vnet.ibm.com (Carlos Eduardo Seo) Date: Wed, 05 Mar 2008 18:27:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org (GDB Patches Mailing List) In-Reply-To: <47C58D3B.4000700@linux.vnet.ibm.com> from "Carlos Eduardo Seo" at Feb 27, 2008 01:18:03 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2008-03/txt/msg00036.txt.bz2 Carlos Eduardo Seo wrote: > Ulrich Weigand wrote: > > > > You should either use some routine that formats the (host) pointer > > properly (similar to gdb_print_host_address) or else maybe just > > disable debug output for this field. > > How do I disable printing? I think you said previously that '0' would > disable it, but that didn't work. Well, '0' (should really be something like (char *)0) will not *disable* debug output, strictly speaking, but the output will simply always be , which should be fine ... As I said above, the cleaner solution would be to define a routine like "host_address_to_string" along the lines of core_addr_to_string but using the method in gdb_print_host_address. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com