This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]