From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28519 invoked by alias); 27 Mar 2008 09:00:27 -0000 Received: (qmail 28428 invoked by uid 22791); 27 Mar 2008 09:00:26 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Mar 2008 09:00:07 +0000 Received: from Relay2.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 1E2D043FFA; Thu, 27 Mar 2008 10:00:04 +0100 (CET) From: Andreas Schwab To: Carlos Eduardo Seo Cc: Ulrich Weigand , GDB Patches Mailing List Subject: Re: [RFC] Add support for PPC Altivec registers in gcore References: <200803171906.m2HJ6YCB030691@d12av02.megacenter.de.ibm.com> <47EAFD9C.9090708@linux.vnet.ibm.com> X-Yow: Uh-oh -- WHY am I suddenly thinking of a VENERABLE religious leader frolicking on a FORT LAUDERDALE weekend? Date: Thu, 27 Mar 2008 09:00:00 -0000 In-Reply-To: <47EAFD9C.9090708@linux.vnet.ibm.com> (Carlos Eduardo Seo's message of "Wed\, 26 Mar 2008 22\:51\:24 -0300") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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: 2008-03/txt/msg00417.txt.bz2 Carlos Eduardo Seo writes: > @@ -694,6 +698,9 @@ gdbarch_dump (struct gdbarch *gdbarch, s > "gdbarch_dump: core_read_description = <0x%lx>\n", > (long) gdbarch->core_read_description); > fprintf_unfiltered (file, > + "gdbarch_dump: core_regset_sections = %s\n", > + (char *) '0'); That doesn't make any sense, (char *) '0' is not a valid pointer, let alone a string. This will crash. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."