This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

[Darwin]: Fix typos for i386-darwin


Hi,

while rereading the code, I have found a few typos, fixed by this patch.

Committed on trunk.

Tristan.

2012-04-02  Tristan Gingold  <gingold@adacore.com>

	* i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
	SS offset.
	* i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
	format_string.

Index: i386-darwin-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-darwin-nat.c,v
retrieving revision 1.16
diff -c -r1.16 i386-darwin-nat.c
*** i386-darwin-nat.c	14 Mar 2012 01:46:59 -0000	1.16
--- i386-darwin-nat.c	2 Apr 2012 13:14:17 -0000
***************
*** 70,76 ****
  	  if (ret != KERN_SUCCESS)
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
! 				   "GP registers for thread 0x%ulx"),
  				 current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
--- 70,76 ----
  	  if (ret != KERN_SUCCESS)
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
! 				   "GP registers for thread 0x%lx\n"),
  				 current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
***************
*** 90,96 ****
  	  if (ret != KERN_SUCCESS)
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
! 				   "float registers for thread 0x%ulx"),
  				 current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
--- 90,96 ----
  	  if (ret != KERN_SUCCESS)
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
! 				   "float registers for thread 0x%lx\n"),
  				 current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
***************
*** 114,121 ****
  	  if (ret != KERN_SUCCESS)
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
! 				   "GP registers for thread 0x%ulx"),
! 				 current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
  	  for (i = 0; i < I386_NUM_GREGS; i++)
--- 114,121 ----
  	  if (ret != KERN_SUCCESS)
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
! 				   "GP registers for thread 0x%lx\n"),
! 				 (unsigned long) current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
  	  for (i = 0; i < I386_NUM_GREGS; i++)
***************
*** 139,146 ****
  	  if (ret != KERN_SUCCESS)
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
! 				   "float registers for thread 0x%ulx"),
! 				 current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
            i387_supply_fxsave (regcache, -1, &fp_regs.__fpu_fcw);
--- 139,146 ----
  	  if (ret != KERN_SUCCESS)
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
! 				   "float registers for thread 0x%lx\n"),
! 				 (unsigned long) current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
            i387_supply_fxsave (regcache, -1, &fp_regs.__fpu_fcw);
Index: i386-darwin-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-darwin-tdep.c,v
retrieving revision 1.11
diff -c -r1.11 i386-darwin-tdep.c
*** i386-darwin-tdep.c	2 Mar 2012 00:06:12 -0000	1.11
--- i386-darwin-tdep.c	2 Apr 2012 13:14:17 -0000
***************
*** 56,62 ****
    10 * 4,   /* EIP */
     9 * 4,   /* EFLAGS */
    11 * 4,   /* CS */
!    8,       /* SS */
    12 * 4,   /* DS */
    13 * 4,   /* ES */
    14 * 4,   /* FS */
--- 56,62 ----
    10 * 4,   /* EIP */
     9 * 4,   /* EFLAGS */
    11 * 4,   /* CS */
!    8 * 4,   /* SS */
    12 * 4,   /* DS */
    13 * 4,   /* ES */
    14 * 4,   /* FS */


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