aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-darwin-nat.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-04-02 13:15:48 +0000
committerTristan Gingold <gingold@adacore.com>2012-04-02 13:15:48 +0000
commit170923983d5c290d2293e9b937cfe60b26bf67e0 (patch)
treefbbae5facbe909d13bbdf849479730bd21fe8fbd /gdb/i386-darwin-nat.c
parentece0061f93a5a99e3f5b063d271267b6414cd129 (diff)
downloadbinutils-170923983d5c290d2293e9b937cfe60b26bf67e0.zip
binutils-170923983d5c290d2293e9b937cfe60b26bf67e0.tar.gz
binutils-170923983d5c290d2293e9b937cfe60b26bf67e0.tar.bz2
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.
Diffstat (limited to 'gdb/i386-darwin-nat.c')
-rw-r--r--gdb/i386-darwin-nat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/i386-darwin-nat.c b/gdb/i386-darwin-nat.c
index ced2903..21e0c80 100644
--- a/gdb/i386-darwin-nat.c
+++ b/gdb/i386-darwin-nat.c
@@ -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);