🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1065

patch for testing purposes

#1065
From: Michael
Date: Wed, 30 Dec 2009 06:54
188 lines
8519 bytes
This is a multi-part message in MIME format.
--------------030402050208070800030806
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

hi,

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

greetz,
michael



--------------030402050208070800030806
Content-Type: text/x-patch;
 name="i387-tdep.c.7.0-7.1.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="i387-tdep.c.7.0-7.1.diff"

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;


--------------030402050208070800030806--
Technical Details
Message-ID: <mailman.420.1262166253.18930.bug-gdb@gnu.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!usenet.stanford.edu!news.stanford.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f0ead4270c,31c27b24b28164f3,start
X-Google-Attributes: gidf0ead4270c,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!usenet.stanford.edu!news.stanford.edu!not-for-mail
From: Michael <bug-gdb@cyberfiber.org>
Newsgroups: gnu.gdb.bug
Subject: patch for testing purposes
Date: Wed, 30 Dec 2009 07:54:10 +0100
Lines: 190
Approved: bug-gdb@gnu.org
Message-ID: <mailman.420.1262166253.18930.bug-gdb@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="------------030402050208070800030806"
X-Trace: news.stanford.edu 1262166254 27401 199.232.76.165 (30 Dec 2009 09:44:14 GMT)
X-Complaints-To: news@news.stanford.edu
To: bug-gdb@gnu.org
Envelope-to: bug-gdb@gnu.org
X-Virus-Scanned: amavisd-new at mail.antivirus.flexwebhosting.nl
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not
 recognized.
X-Mailman-Approved-At: Wed, 30 Dec 2009 04:44:11 -0500
X-BeenThere: bug-gdb@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-gdb>
List-Post: <mailto:bug-gdb@gnu.org>
List-Help: <mailto:bug-gdb-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=subscribe>