diff options
Diffstat (limited to 'gdb/machoread.c')
-rw-r--r-- | gdb/machoread.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c index be68e45..ffee181 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -1,5 +1,5 @@ /* Darwin support for GDB, the GNU debugger. - Copyright (C) 2008-2024 Free Software Foundation, Inc. + Copyright (C) 2008-2025 Free Software Foundation, Inc. Contributed by AdaCore. @@ -164,7 +164,7 @@ macho_symtab_read (minimal_symbol_reader &reader, S_NO_SO, /* First SO read. Introduce an SO section, and may be followed by a second - SO. The SO section should contain onl debugging symbols. */ + SO. The SO section should contain only debugging symbols. */ S_FIRST_SO, /* Second non-null SO found, just after the first one. Means that the first @@ -390,13 +390,14 @@ static CORE_ADDR macho_resolve_oso_sym_with_minsym (struct objfile *main_objfile, asymbol *sym) { /* For common symbol and global symbols, use the min symtab. */ - struct bound_minimal_symbol msym; const char *name = sym->name; if (*name != '\0' && *name == bfd_get_symbol_leading_char (main_objfile->obfd.get ())) ++name; - msym = lookup_minimal_symbol (name, NULL, main_objfile); + + bound_minimal_symbol msym + = lookup_minimal_symbol (current_program_space, name, main_objfile); if (msym.minsym == NULL) { warning (_("can't find symbol '%s' in minsymtab"), name); @@ -433,7 +434,8 @@ macho_add_oso_symfile (oso_el *oso, const gdb_bfd_ref_ptr &abfd, return; } - if (abfd->my_archive == NULL && oso->mtime != bfd_get_mtime (abfd.get ())) + if (abfd->my_archive == nullptr + && oso->mtime != gdb_bfd_get_mtime (abfd.get ())) { warning (_("`%s': file time stamp mismatch."), oso->name); return; @@ -938,9 +940,7 @@ static const struct sym_fns macho_sym_fns = { NULL, /* sym_get_probes */ }; -void _initialize_machoread (); -void -_initialize_machoread () +INIT_GDB_FILE (machoread) { add_symtab_fns (bfd_target_mach_o_flavour, &macho_sym_fns); |