aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-darwin-tdep.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-02-04 08:47:56 +0000
committerTristan Gingold <gingold@adacore.com>2009-02-04 08:47:56 +0000
commitcf1061c036950e2c75d7520eb33d7a1618e3a4ef (patch)
tree770550733f16a467d1ec6394a36d87b1ad58ca8a /gdb/i386-darwin-tdep.c
parent7a848be1e44cec4b230c0a1d417953691d71558c (diff)
downloadgdb-cf1061c036950e2c75d7520eb33d7a1618e3a4ef.zip
gdb-cf1061c036950e2c75d7520eb33d7a1618e3a4ef.tar.gz
gdb-cf1061c036950e2c75d7520eb33d7a1618e3a4ef.tar.bz2
2009-02-04 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_symfile_read): Read minsymtab also from shared libraries. (macho_symfile_read): Try to read dwarf2 frame info from main object file, but not from OSO files. (macho_symfile_offsets): Update section names for latest BFD changes. * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops. (x86_darwin_init_abi_64): Ditto. * solib-darwin.c: New file. * solib-darwin.h: New file. * configure.tgt: Add solib.o solib-darwin.o for Darwin.
Diffstat (limited to 'gdb/i386-darwin-tdep.c')
-rw-r--r--gdb/i386-darwin-tdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/i386-darwin-tdep.c b/gdb/i386-darwin-tdep.c
index c5f117f..189d35b 100644
--- a/gdb/i386-darwin-tdep.c
+++ b/gdb/i386-darwin-tdep.c
@@ -39,6 +39,8 @@
#include "frame.h"
#include "gdb_assert.h"
#include "i386-darwin-tdep.h"
+#include "solib.h"
+#include "solib-darwin.h"
/* Offsets into the struct i386_thread_state where we'll find the saved regs.
From <mach/i386/thread_status.h> and i386-tdep.h. */
@@ -114,6 +116,8 @@ i386_darwin_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tdep->sc_num_regs = 16;
tdep->jb_pc_offset = 20;
+
+ set_solib_ops (gdbarch, &darwin_so_ops);
}
static void
@@ -131,6 +135,8 @@ x86_darwin_init_abi_64 (struct gdbarch_info info, struct gdbarch *gdbarch)
tdep->sc_num_regs = ARRAY_SIZE (amd64_darwin_thread_state_reg_offset);
tdep->jb_pc_offset = 148;
+
+ set_solib_ops (gdbarch, &darwin_so_ops);
}
static enum gdb_osabi