Article View: gnu.gdb.bug
Article #1063patch for testing purposes
From: Michael
Date: Wed, 30 Dec 2009 06:58
Date: Wed, 30 Dec 2009 06:58
190 lines
8433 bytes
8433 bytes
This is a multi-part message in MIME format.
--------------000805060001090000070104
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
--------------000805060001090000070104
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;
--------------000805060001090000070104--
Technical Details
Message-ID:
<mailman.416.1262156326.18930.bug-gdb@gnu.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!usenet.stanford.edu!news.stanford.edu!not-for-mailShow 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!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.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:58:34 +0100 Lines: 192 Approved: bug-gdb@gnu.org Message-ID: <mailman.416.1262156326.18930.bug-gdb@gnu.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000805060001090000070104" X-Trace: news.stanford.edu 1262156327 6335 199.232.76.165 (30 Dec 2009 06:58:47 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-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>