| Index: gdb/amd64-darwin-tdep.c
|
| diff --git a/gdb/amd64-darwin-tdep.c b/gdb/amd64-darwin-tdep.c
|
| index 6242ada5335d74920d4c3b66d2b70aa2cc5dcfea..9fcee3fd82c50a292878df0bdf3e23f01896b487 100644
|
| --- a/gdb/amd64-darwin-tdep.c
|
| +++ b/gdb/amd64-darwin-tdep.c
|
| @@ -84,7 +84,6 @@ amd64_darwin_sigcontext_addr (struct frame_info *this_frame)
|
| struct gdbarch *gdbarch = get_frame_arch (this_frame);
|
| enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
|
| CORE_ADDR rbx;
|
| - CORE_ADDR si;
|
| gdb_byte buf[8];
|
|
|
| /* A pointer to the ucontext is passed as the fourth argument
|
| @@ -115,11 +114,14 @@ x86_darwin_init_abi_64 (struct gdbarch_info info, struct gdbarch *gdbarch)
|
| 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;
|
| + tdep->jb_pc_offset = 56;
|
|
|
| set_solib_ops (gdbarch, &darwin_so_ops);
|
| }
|
|
|
| +/* -Wmissing-prototypes */
|
| +extern initialize_file_ftype _initialize_amd64_darwin_tdep;
|
| +
|
| void
|
| _initialize_amd64_darwin_tdep (void)
|
| {
|
|
|