diff --git a/gdb/machoread.c b/gdb/machoread.c index d8d3bd2..bed7f86 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -675,11 +675,26 @@ macho_symfile_offsets (struct objfile *objfile, } } +static void +read_psyms (struct objfile *objfile) +{ + if (dwarf2_has_info (objfile)) + { + /* DWARF 2 sections */ + dwarf2_build_psymtabs (objfile, 0); + } + + /* FIXME: kettenis/20030504: This still needs to be integrated with + dwarf2read.c in a better way. */ + dwarf2_build_frame_info (objfile); +} + static struct sym_fns macho_sym_fns = { bfd_target_mach_o_flavour, macho_new_init, /* sym_new_init: init anything gbl to entire symtab */ macho_symfile_init, /* sym_init: read initial info, setup for sym_read() */ + read_psyms, /* sym_read_psymbols */ macho_symfile_read, /* sym_read: read a symbol file into symtab */ macho_symfile_finish, /* sym_finish: finished with file, cleanup */ macho_symfile_offsets, /* sym_offsets: xlate external to internal form */