This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfc] Provide a default ``info float''
- From: Andrew Cagney <ac131313 at ges dot redhat dot com>
- To: Andrew Cagney <ac131313 at ges dot redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 15 Aug 2002 20:02:54 -0400
- Subject: Re: [patch/rfc] Provide a default ``info float''
- References: <3D5564DC.2070809@ges.redhat.com> <3D5C3CC3.4070805@ges.redhat.com>
2002-08-10 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
Add `args' parameter.
* gdbarch.h, gdbarch.c: Regenerate.
* arm-tdep.c (arm_print_float_info): Add the parameter `args'.
* infcmd.c (float_info): Call print_float_info.
(print_float_info): New function. By default, print the
floating-point registers.
* arch-utils.h (default_print_float_info): Delete declaration.
* arch-utils.c (default_print_float_info): Delete function.
I've checked this in.
Followed quickly by ...
enjoy,
Andrew
2002-08-15 Andrew Cagney <ac131313@redhat.com>
* i387-tdep.h (i387_print_float_info): Add `args' parameter.
* i387-tdep.c (i387_print_float_info): Add `args' parameter.
Index: i387-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i387-tdep.c,v
retrieving revision 1.20
diff -u -r1.20 i387-tdep.c
--- i387-tdep.c 15 Aug 2002 23:06:54 -0000 1.20
+++ i387-tdep.c 16 Aug 2002 00:01:04 -0000
@@ -318,7 +318,7 @@
void
i387_print_float_info (struct gdbarch *gdbarch, struct ui_file *file,
- struct frame_info *frame)
+ struct frame_info *frame, const char *args)
{
unsigned int fctrl;
unsigned int fstat;
Index: i387-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/i387-tdep.h,v
retrieving revision 1.2
diff -u -r1.2 i387-tdep.h
--- i387-tdep.h 15 Aug 2002 17:36:57 -0000 1.2
+++ i387-tdep.h 16 Aug 2002 00:01:04 -0000
@@ -25,7 +25,8 @@
extern void i387_print_float_info (struct gdbarch *gdbarch,
struct ui_file *file,
- struct frame_info *frame);
+ struct frame_info *frame,
+ const char *args);
/* Fill register REGNUM in GDB's register array with the appropriate
value from *FSAVE. This function masks off any of the reserved