diff options
author | Tristan Gingold <gingold@adacore.com> | 2012-04-02 13:15:48 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2012-04-02 13:15:48 +0000 |
commit | 170923983d5c290d2293e9b937cfe60b26bf67e0 (patch) | |
tree | fbbae5facbe909d13bbdf849479730bd21fe8fbd /gdb | |
parent | ece0061f93a5a99e3f5b063d271267b6414cd129 (diff) | |
download | gdb-170923983d5c290d2293e9b937cfe60b26bf67e0.zip gdb-170923983d5c290d2293e9b937cfe60b26bf67e0.tar.gz gdb-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')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/i386-darwin-nat.c | 12 | ||||
-rw-r--r-- | gdb/i386-darwin-tdep.c | 2 |
3 files changed, 14 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f76ee76..fc3a5a0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 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 * darwin-nat.c (darwin_execvp): Sey binary preference. 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); diff --git a/gdb/i386-darwin-tdep.c b/gdb/i386-darwin-tdep.c index ed2ca12..c353154 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 */ |