This is the mail archive of the gdb-patches@sourceware.cygnus.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]

[eliz@is.elta.co.il: GDB: fine print in 387 info]


------- Start of forwarded message -------
Date: Sun, 27 Jun 1999 19:19:16 +0300 (IDT)
From: Eli Zaretskii <eliz@is.elta.co.il>
X-Sender: eliz@is
To: DJ Delorie <dj@delorie.com>
cc: Robert Hoehne <robert.hoehne@gmx.net>
Subject: GDB: fine print in 387 info
Content-Type: TEXT/PLAIN; charset=US-ASCII

1999-06-26  Eli Zaretskii  <eliz@is.elta.co.il>

	* i387-tdep.c (print_387_status_word): Don't print colons or
	semi-colons if there's no data to follow/preceed them.

*** cvs/gdb/i387-tdep.c	Fri Apr 16 04:34:02 1999
- --- ./gdb/i387-tdep.c	Wed Jun 16 22:20:34 1999
*************** void
*** 88,97 ****
  print_387_status_word (status)
       unsigned int status;
  {
!   printf_unfiltered ("status %s: ", local_hex_string (status));
    if (status & 0xff) 
      {
!       printf_unfiltered ("exceptions:");
        if (status & 0x0001) printf_unfiltered (" INVALID");
        if (status & 0x0002) printf_unfiltered (" DENORM");
        if (status & 0x0004) printf_unfiltered (" DIVZ");
- --- 88,97 ----
  print_387_status_word (status)
       unsigned int status;
  {
!   printf_unfiltered ("status %s", local_hex_string (status));
    if (status & 0xff) 
      {
!       printf_unfiltered (": exceptions:");
        if (status & 0x0001) printf_unfiltered (" INVALID");
        if (status & 0x0002) printf_unfiltered (" DENORM");
        if (status & 0x0004) printf_unfiltered (" DIVZ");
*************** print_387_status_word (status)
*** 99,106 ****
        if (status & 0x0010) printf_unfiltered (" UNDERF");
        if (status & 0x0020) printf_unfiltered (" LOS");
        if (status & 0x0040) printf_unfiltered (" FPSTACK");
- -       printf_unfiltered ("; ");
      }
    printf_unfiltered ("flags: %d%d%d%d; ",
  	  (status & 0x4000) != 0,
  	  (status & 0x0400) != 0,
- --- 99,106 ----
        if (status & 0x0010) printf_unfiltered (" UNDERF");
        if (status & 0x0020) printf_unfiltered (" LOS");
        if (status & 0x0040) printf_unfiltered (" FPSTACK");
      }
+   printf_unfiltered ("; ");
    printf_unfiltered ("flags: %d%d%d%d; ",
  	  (status & 0x4000) != 0,
  	  (status & 0x0400) != 0,
------- End of forwarded message -------

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