From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4707 invoked by alias); 12 Aug 2002 18:55:28 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4700 invoked from network); 12 Aug 2002 18:55:27 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 12 Aug 2002 18:55:27 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4E9F93CFC; Mon, 12 Aug 2002 14:55:26 -0400 (EDT) Message-ID: <3D58049E.4050205@ges.redhat.com> Date: Mon, 12 Aug 2002 11:55:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020810 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Buettner Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] Provide a default ``info float'' References: <3D5564DC.2070809@ges.redhat.com> <1020812163048.ZM32206@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00271.txt.bz2 > On Aug 10, 3:09pm, Andrew Cagney wrote: > > >> It has always struck me as weird that GDB would report: >> >> (gdb) info float >> No floating point info available for this processor. >> >> when debugging platforms that I knew had floating-point registers (PPC, >> ...). >> >> This patch modifies the ``info float'' command so that, if there is no >> architecture specific code, it at least prints the floating-point registers. > > > What does it do when there truly are no floating point registers? > > (I think I remember seeing some complaints in the past regarding the > fact that fp registers were being displayed even though the processor > being used had no fp registers. Personally, this never bothered me, > but clearly it bothers some folks.) It prints [dig dig] + fprintf_filtered (file, "\ +No floating-point info available for this processor.\n"); Andrew