+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.
+
2012-04-02 Tristan Gingold <gingold@adacore.com>
PR gdb/13901
if (ret != KERN_SUCCESS)
{
printf_unfiltered (_("Error calling thread_get_state for "
- "GP registers for thread 0x%ulx"),
+ "GP registers for thread 0x%lx\n"),
current_thread);
MACH_CHECK_ERROR (ret);
}
if (ret != KERN_SUCCESS)
{
printf_unfiltered (_("Error calling thread_get_state for "
- "float registers for thread 0x%ulx"),
+ "float registers for thread 0x%lx\n"),
current_thread);
MACH_CHECK_ERROR (ret);
}
if (ret != KERN_SUCCESS)
{
printf_unfiltered (_("Error calling thread_get_state for "
- "GP registers for thread 0x%ulx"),
- current_thread);
+ "GP registers for thread 0x%lx\n"),
+ (unsigned long) current_thread);
MACH_CHECK_ERROR (ret);
}
for (i = 0; i < I386_NUM_GREGS; i++)
if (ret != KERN_SUCCESS)
{
printf_unfiltered (_("Error calling thread_get_state for "
- "float registers for thread 0x%ulx"),
- current_thread);
+ "float registers for thread 0x%lx\n"),
+ (unsigned long) current_thread);
MACH_CHECK_ERROR (ret);
}
i387_supply_fxsave (regcache, -1, &fp_regs.__fpu_fcw);