From: Tristan Gingold Date: Mon, 2 Apr 2012 13:15:48 +0000 (+0000) Subject: 2012-04-02 Tristan Gingold X-Git-Tag: cygwin-1_7_14-release~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=170923983d5c290d2293e9b937cfe60b26bf67e0;p=thirdparty%2Fbinutils-gdb.git 2012-04-02 Tristan Gingold * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f76ee76f61f..fc3a5a0e7ab 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2012-04-02 Tristan Gingold + + * 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 PR gdb/13901 diff --git a/gdb/i386-darwin-nat.c b/gdb/i386-darwin-nat.c index ced290352c7..21e0c8093ae 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); diff --git a/gdb/i386-darwin-tdep.c b/gdb/i386-darwin-tdep.c index ed2ca124394..c353154bf0b 100644 --- a/gdb/i386-darwin-tdep.c +++ b/gdb/i386-darwin-tdep.c @@ -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 */