X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fmachoread.c;h=fe77a2dccbfc3d5969615609cfd7daf089a7f66d;hb=45a466b578083a05f1138eff9232254b1a30f683;hp=b940e8a9bea8a766a2bdb6a03f819039c7097857;hpb=29f7799750d2821a82d596892b5d59e8c91c5587;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/machoread.c b/gdb/machoread.c index b940e8a9be..fe77a2dccb 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -1,5 +1,5 @@ /* Darwin support for GDB, the GNU debugger. - Copyright (C) 2008-2012 Free Software Foundation, Inc. + Copyright (C) 2008-2013 Free Software Foundation, Inc. Contributed by AdaCore. @@ -39,7 +39,7 @@ #include /* If non-zero displays debugging message. */ -static int mach_o_debug_level = 0; +static unsigned int mach_o_debug_level = 0; /* Dwarf debugging information are never in the final executable. They stay in object files and the executable contains the list of object files read @@ -79,7 +79,6 @@ static void macho_symfile_init (struct objfile *objfile) { objfile->flags |= OBJF_REORDERED; - init_entry_point_info (objfile); } /* Add a new OSO to the vector of OSO to load. */ @@ -688,7 +687,7 @@ macho_symfile_read_all_oso (struct objfile *main_objfile, int symfile_flags) } /* Open the archive and check the format. */ - archive_bfd = gdb_bfd_openr (archive_name, gnutarget); + archive_bfd = gdb_bfd_open (archive_name, gnutarget, -1); if (archive_bfd == NULL) { warning (_("Could not open OSO archive file \"%s\""), @@ -762,7 +761,7 @@ macho_symfile_read_all_oso (struct objfile *main_objfile, int symfile_flags) { bfd *abfd; - abfd = gdb_bfd_openr (oso->name, gnutarget); + abfd = gdb_bfd_open (oso->name, gnutarget, -1); if (!abfd) warning (_("`%s': can't open to read symbols: %s."), oso->name, bfd_errmsg (bfd_get_error ())); @@ -1046,10 +1045,10 @@ _initialize_machoread () { add_symtab_fns (&macho_sym_fns); - add_setshow_zinteger_cmd ("mach-o", class_obscure, - &mach_o_debug_level, - _("Set if printing Mach-O symbols processing."), - _("Show if printing Mach-O symbols processing."), - NULL, NULL, NULL, - &setdebuglist, &showdebuglist); + add_setshow_zuinteger_cmd ("mach-o", class_obscure, + &mach_o_debug_level, + _("Set if printing Mach-O symbols processing."), + _("Show if printing Mach-O symbols processing."), + NULL, NULL, NULL, + &setdebuglist, &showdebuglist); }