This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[Darwin]: Fix compiler warning in i386-darwin-nat.c
- From: Tristan Gingold <gingold at adacore dot com>
- To: "gdb-patches at sourceware dot org ml" <gdb-patches at sourceware dot org>
- Date: Wed, 11 Apr 2012 11:51:12 +0200
- Subject: [Darwin]: Fix compiler warning in i386-darwin-nat.c
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);