/* Darwin support for GDB, the GNU debugger.
- Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2005, 2008, 2009
- Free Software Foundation, Inc.
+ Copyright (C) 1997-2013 Free Software Foundation, Inc.
Contributed by Apple Computer, Inc.
#include "ui-out.h"
#include "symtab.h"
#include "frame.h"
-#include "gdb_assert.h"
#include "amd64-darwin-tdep.h"
#include "i386-darwin-tdep.h"
#include "solib.h"
4 * 8, /* %rdi */
6 * 8, /* %rbp */
7 * 8, /* %rsp */
- 8 * 8, /* %r8 ... */
+ 8 * 8, /* %r8 ... */
9 * 8,
10 * 8,
11 * 8,
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
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)
{