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.
This commit is contained in:
Tristan Gingold 2012-04-02 13:15:48 +00:00
parent ece0061f93
commit 170923983d
3 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -70,7 +70,7 @@ i386_darwin_fetch_inferior_registers (struct target_ops *ops,
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);
}
@ -90,7 +90,7 @@ i386_darwin_fetch_inferior_registers (struct target_ops *ops,
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);
}
@ -114,8 +114,8 @@ i386_darwin_fetch_inferior_registers (struct target_ops *ops,
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++)
@ -139,8 +139,8 @@ i386_darwin_fetch_inferior_registers (struct target_ops *ops,
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);

View File

@ -56,7 +56,7 @@ int i386_darwin_thread_state_reg_offset[] =
10 * 4, /* EIP */
9 * 4, /* EFLAGS */
11 * 4, /* CS */
8, /* SS */
8 * 4, /* SS */
12 * 4, /* DS */
13 * 4, /* ES */
14 * 4, /* FS */