From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26669 invoked by alias); 30 Dec 2009 07:57:58 -0000 Received: (qmail 26660 invoked by uid 22791); 30 Dec 2009 07:57:57 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.antivirus.flexwebhosting.nl (HELO mail.antivirus.flexwebhosting.nl) (85.92.140.50) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Dec 2009 07:57:52 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.antivirus.flexwebhosting.nl (Postfix) with ESMTP id A99D412187CE for ; Wed, 30 Dec 2009 08:57:48 +0100 (CET) Received: from mail.antivirus.flexwebhosting.nl ([127.0.0.1]) by localhost (mail.antivirus.flexwebhosting.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jkoP3t33+IEC for ; Wed, 30 Dec 2009 08:57:43 +0100 (CET) Received: from srv4086.flexwebhosting.nl (unknown [89.18.179.86]) by mail.antivirus.flexwebhosting.nl (Postfix) with ESMTP id 1DBF911F00E6 for ; Wed, 30 Dec 2009 08:57:42 +0100 (CET) Received: from ip82-139-82-108.lijbrandt.net ([82.139.82.108] helo=[192.168.2.132]) by srv4086.flexwebhosting.nl with esmtpa (Exim 4.67) (envelope-from ) id 1NPtR8-0008Vs-JU for gdb-patches@sourceware.org; Wed, 30 Dec 2009 08:57:42 +0100 Message-ID: <4B3B07F6.1020604@cyberfiber.org> Date: Wed, 30 Dec 2009 07:57:00 -0000 From: Michael User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: patch for testing purposes Content-Type: multipart/mixed; boundary="------------030800070108050700080602" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-12/txt/msg00429.txt.bz2 This is a multi-part message in MIME format. --------------030800070108050700080602 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 113 hi, does this suffice as a submission for review, or do you suggest an alternative format? greetz, michael --------------030800070108050700080602 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" Content-length: 6038 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; --------------030800070108050700080602--