[patch/rfc] Provide a default ``info float''

Andrew Cagney ac131313@ges.redhat.com
Mon Aug 12 11:55:00 GMT 2002


> 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




More information about the Gdb-patches mailing list