This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFC] Typo bug in i387-tdep.c ?


   Date: Fri, 09 Mar 2001 16:32:49 +0100
   From: Pierre Muller <muller@cerbere.u-strasbg.fr>

   From

   /* Print the status word STATUS.  */
   static void
   print_i387_status_word (unsigned int status)
   {
   ....
      puts_filtered ("  ");
      printf_filtered (" %s", (status & 0x0080) ? "ES" : "  ");
      puts_filtered ("  ");
      printf_filtered (" %s", (status & 0x0080) ? "SF" : "  ");
      puts_filtered ("  ");

   I assume thatr one of these two constants should be 0x0040,
   unless there is here some subtility that I didn't catch
   (but anyhow why would we want to print it out twice !)

I checked in a fix.  The acronyms are defined in the Intel processor
manuals (ES = Exception Summary, SF = Stack Fault).

Thanks for the report.

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]