From 96836138dc1fb87c0ad3a8b3e54467458c5476a6 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 9 Mar 2001 16:14:55 +0000 Subject: [PATCH] * i387-tdep.c (print_i387_status_word): Fix printing of Stack fault flag. It is bit 6 of the x87 FPU status word, not bit 7. --- gdb/ChangeLog | 5 +++++ gdb/i387-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a863008ac0c..0eb30031d3c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-03-09 Mark Kettenis + + * i387-tdep.c (print_i387_status_word): Fix printing of Stack + fault flag. It is bit 6 of the x87 FPU status word, not bit 7. + 2001-03-08 Andrew Cagney * configure.host (m88*-harris-cxux*): Mark as obsolete. diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c index b7a9554d218..e221b0c9e73 100644 --- a/gdb/i387-tdep.c +++ b/gdb/i387-tdep.c @@ -255,7 +255,7 @@ print_i387_status_word (unsigned int status) puts_filtered (" "); printf_filtered (" %s", (status & 0x0080) ? "ES" : " "); puts_filtered (" "); - printf_filtered (" %s", (status & 0x0080) ? "SF" : " "); + printf_filtered (" %s", (status & 0x0040) ? "SF" : " "); puts_filtered (" "); printf_filtered (" %s", (status & 0x0100) ? "C0" : " "); printf_filtered (" %s", (status & 0x0200) ? "C1" : " "); -- 2.30.2