[Darwin]: Fix compiler warning in i386-darwin-nat.c

Tristan Gingold gingold@adacore.com
Wed Apr 11 10:44:00 GMT 2012


Hi,

all is in the subject.

Committed on trunk.

Tristan.

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

	* i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
	warning.

Index: i386-darwin-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-darwin-nat.c,v
retrieving revision 1.18
diff -c -r1.18 i386-darwin-nat.c
*** i386-darwin-nat.c	2 Apr 2012 13:48:49 -0000	1.18
--- i386-darwin-nat.c	11 Apr 2012 09:48:08 -0000
***************
*** 71,77 ****
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
  				   "GP registers for thread 0x%lx\n"),
! 				 current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
  	  amd64_supply_native_gregset (regcache, &gp_regs.uts, -1);
--- 71,77 ----
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
  				   "GP registers for thread 0x%lx\n"),
! 				 (unsigned long) current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
  	  amd64_supply_native_gregset (regcache, &gp_regs.uts, -1);
***************
*** 91,97 ****
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
  				   "float registers for thread 0x%lx\n"),
! 				 current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
            amd64_supply_fxsave (regcache, -1, &fp_regs.ufs.fs64.__fpu_fcw);
--- 91,97 ----
  	    {
  	      printf_unfiltered (_("Error calling thread_get_state for "
  				   "float registers for thread 0x%lx\n"),
! 				 (unsigned long) current_thread);
  	      MACH_CHECK_ERROR (ret);
  	    }
            amd64_supply_fxsave (regcache, -1, &fp_regs.ufs.fs64.__fpu_fcw);



More information about the Gdb-patches mailing list