Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael <gdb-patches@cyberfiber.org>
To: gdb-patches@sourceware.org
Subject: patch for testing purposes
Date: Wed, 30 Dec 2009 07:57:00 -0000	[thread overview]
Message-ID: <4B3B07F6.1020604@cyberfiber.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 113 bytes --]

hi,

does this suffice as a submission for review, or do you suggest an
alternative format?

greetz,
michael





[-- Attachment #2: i387-tdep.c.7.0-7.1.diff --]
[-- Type: text/x-patch, Size: 6038 bytes --]

115,134c115
< // print the status word
< // updated 20091227 (development@codenamezero.org)
< static void print_i387_status_word (unsigned int status, struct ui_file *file)
< {
<     fprintf_filtered (file, "status word        : %s", hex_string_custom(status, 4));
< 
<     fputs_filtered ("  ", file);
< 
<     fprintf_filtered (file, " %s", (status & 0x0001) ? "IE" : "  ");
<     fprintf_filtered (file, " %s", (status & 0x0002) ? "DE" : "  ");
<     fprintf_filtered (file, " %s", (status & 0x0004) ? "ZE" : "  ");
<     fprintf_filtered (file, " %s", (status & 0x0008) ? "OE" : "  ");
<     fprintf_filtered (file, " %s", (status & 0x0010) ? "UE" : "  ");
<     fprintf_filtered (file, " %s", (status & 0x0020) ? "PE" : "  ");
< 
<     fputs_filtered ("  ", file);
< 
<     fprintf_filtered (file, " %s", (status & 0x0080) ? "ES" : "  ");
< 
<     fputs_filtered ("  ", file);
---
> /* Print the status word STATUS.  */
136,143c117,137
<     fprintf_filtered (file, " %s", (status & 0x0040) ? "SF" : "  ");
< 
<     fputs_filtered ("  ", file);
< 
<     fprintf_filtered (file, " %s", (status & 0x0100) ? "C0" : "  ");
<     fprintf_filtered (file, " %s", (status & 0x0200) ? "C1" : "  ");
<     fprintf_filtered (file, " %s", (status & 0x0400) ? "C2" : "  ");
<     fprintf_filtered (file, " %s", (status & 0x4000) ? "C3" : "  ");
---
> static void
> print_i387_status_word (unsigned int status, struct ui_file *file)
> {
>   fprintf_filtered (file, "Status Word:         %s",
> 		    hex_string_custom (status, 4));
>   fputs_filtered ("  ", file);
>   fprintf_filtered (file, " %s", (status & 0x0001) ? "IE" : "  ");
>   fprintf_filtered (file, " %s", (status & 0x0002) ? "DE" : "  ");
>   fprintf_filtered (file, " %s", (status & 0x0004) ? "ZE" : "  ");
>   fprintf_filtered (file, " %s", (status & 0x0008) ? "OE" : "  ");
>   fprintf_filtered (file, " %s", (status & 0x0010) ? "UE" : "  ");
>   fprintf_filtered (file, " %s", (status & 0x0020) ? "PE" : "  ");
>   fputs_filtered ("  ", file);
>   fprintf_filtered (file, " %s", (status & 0x0080) ? "ES" : "  ");
>   fputs_filtered ("  ", file);
>   fprintf_filtered (file, " %s", (status & 0x0040) ? "SF" : "  ");
>   fputs_filtered ("  ", file);
>   fprintf_filtered (file, " %s", (status & 0x0100) ? "C0" : "  ");
>   fprintf_filtered (file, " %s", (status & 0x0200) ? "C1" : "  ");
>   fprintf_filtered (file, " %s", (status & 0x0400) ? "C2" : "  ");
>   fprintf_filtered (file, " %s", (status & 0x4000) ? "C3" : "  ");
145c139
<     fputs_filtered ("\n", file);
---
>   fputs_filtered ("\n", file);
147c141,142
<     fprintf_filtered (file, "                       TOP: %d\n", ((status >> 11) & 7));
---
>   fprintf_filtered (file,
> 		    "                       TOP: %d\n", ((status >> 11) & 7));
150,156c145
< // print the control word
< // updated 20091228 (development@codenamezero.org)
< static void print_i387_control_word (unsigned int control, struct ui_file *file)
< {
<     fprintf_filtered (file, "control word:        %s", hex_string_custom(control, 4));
< 
<     fputs_filtered ("  ", file);
---
> /* Print the control word CONTROL.  */
158,163c147,158
<     fprintf_filtered (file, " %s", (control & 0x0001) ? "IM" : "  ");
<     fprintf_filtered (file, " %s", (control & 0x0002) ? "DM" : "  ");
<     fprintf_filtered (file, " %s", (control & 0x0004) ? "ZM" : "  ");
<     fprintf_filtered (file, " %s", (control & 0x0008) ? "OM" : "  ");
<     fprintf_filtered (file, " %s", (control & 0x0010) ? "UM" : "  ");
<     fprintf_filtered (file, " %s", (control & 0x0020) ? "PM" : "  ");
---
> static void
> print_i387_control_word (unsigned int control, struct ui_file *file)
> {
>   fprintf_filtered (file, "Control Word:        %s",
> 		    hex_string_custom (control, 4));
>   fputs_filtered ("  ", file);
>   fprintf_filtered (file, " %s", (control & 0x0001) ? "IM" : "  ");
>   fprintf_filtered (file, " %s", (control & 0x0002) ? "DM" : "  ");
>   fprintf_filtered (file, " %s", (control & 0x0004) ? "ZM" : "  ");
>   fprintf_filtered (file, " %s", (control & 0x0008) ? "OM" : "  ");
>   fprintf_filtered (file, " %s", (control & 0x0010) ? "UM" : "  ");
>   fprintf_filtered (file, " %s", (control & 0x0020) ? "PM" : "  ");
165c160
<     fputs_filtered ("\n", file);
---
>   fputs_filtered ("\n", file);
167,169c162,163
<     fputs_filtered ("                       PC: ", file);
<     
<     switch ((control >> 8) & 3)
---
>   fputs_filtered ("                       PC: ", file);
>   switch ((control >> 8) & 3)
171,182c165,176
< 	case 0:
< 	    fputs_filtered ("Single Precision (24-bits)\n", file);
< 	    break;
< 	case 1:
< 	    fputs_filtered ("Reserved\n", file);
< 	    break;
< 	case 2:
< 	    fputs_filtered ("Double Precision (53-bits)\n", file);
< 	    break;
< 	case 3:
< 	    fputs_filtered ("Extended Precision (64-bits)\n", file);
< 	break;
---
>     case 0:
>       fputs_filtered ("Single Precision (24-bits)\n", file);
>       break;
>     case 1:
>       fputs_filtered ("Reserved\n", file);
>       break;
>     case 2:
>       fputs_filtered ("Double Precision (53-bits)\n", file);
>       break;
>     case 3:
>       fputs_filtered ("Extended Precision (64-bits)\n", file);
>       break;
185,187c179,180
<     fputs_filtered ("                       RC: ", file);
< 
<     switch ((control >> 10) & 3)
---
>   fputs_filtered ("                       RC: ", file);
>   switch ((control >> 10) & 3)
189,200c182,193
< 	case 0:
< 	    fputs_filtered ("Round to nearest\n", file);
< 	    break;
< 	case 1:
< 	    fputs_filtered ("Round down\n", file);
< 	    break;
< 	case 2:
< 	    fputs_filtered ("Round up\n", file);
< 	    break;
< 	case 3:
< 	    fputs_filtered ("Round toward zero\n", file);
< 	    break;
---
>     case 0:
>       fputs_filtered ("Round to nearest\n", file);
>       break;
>     case 1:
>       fputs_filtered ("Round down\n", file);
>       break;
>     case 2:
>       fputs_filtered ("Round up\n", file);
>       break;
>     case 3:
>       fputs_filtered ("Round toward zero\n", file);
>       break;




             reply	other threads:[~2009-12-30  7:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-30  7:57 Michael [this message]
2009-12-30  8:14 ` Joel Brobecker
2009-12-30 10:21   ` Eli Zaretskii
     [not found]   ` <4B3B3AB1.5060106@cyberfiber.org>
     [not found]     ` <20091230114518.GD548@adacore.com>
2009-12-31  9:30       ` Michael
2009-12-31 11:38       ` Michael
2009-12-31 11:51         ` Joel Brobecker
2009-12-31 22:09           ` Michael
2010-01-01  3:36             ` Joel Brobecker
2010-01-01  7:14               ` Michael
2010-01-01  8:19                 ` Joel Brobecker
     [not found]         ` <20091231114605.GK2788@adacore.com>
2009-12-31 11:56           ` Michael

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B3B07F6.1020604@cyberfiber.org \
    --to=gdb-patches@cyberfiber.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox