This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Darwin: fix jb_pc_offset value for amd64
- From: Tristan Gingold <gingold at adacore dot com>
- To: "gdb-patches at sourceware dot org ml" <gdb-patches at sourceware dot org>
- Date: Mon, 20 Feb 2012 10:40:29 +0100
- Subject: Darwin: fix jb_pc_offset value for amd64
Hi,
it looks like this value was not correctly defined… Now fixed.
Committed on trunk.
Tristan.
2012-02-20 Tristan Gingold <gingold@adacore.com>
* amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
value.
RCS file: /cvs/src/src/gdb/amd64-darwin-tdep.c,v
retrieving revision 1.5
diff -c -r1.5 amd64-darwin-tdep.c
*** amd64-darwin-tdep.c 4 Jan 2012 08:16:56 -0000 1.5
--- amd64-darwin-tdep.c 20 Feb 2012 09:39:24 -0000
***************
*** 115,121 ****
tdep->sc_reg_offset = amd64_darwin_thread_state_reg_offset;
tdep->sc_num_regs = amd64_darwin_thread_state_num_regs;
! tdep->jb_pc_offset = 148;
set_solib_ops (gdbarch, &darwin_so_ops);
}
--- 115,121 ----
tdep->sc_reg_offset = amd64_darwin_thread_state_reg_offset;
tdep->sc_num_regs = amd64_darwin_thread_state_num_regs;
! tdep->jb_pc_offset = 56;
set_solib_ops (gdbarch, &darwin_so_ops);
}