Index: gdb/machoread.c |
diff --git a/gdb/machoread.c b/gdb/machoread.c |
index 9fa97e1539593718db03d1f0464e30224d92dd9f..22530ab0869bb6eb42d8a04c4ce38b3f47b3bcb9 100644 |
--- a/gdb/machoread.c |
+++ b/gdb/machoread.c |
@@ -126,11 +126,11 @@ macho_symtab_add_minsym (struct objfile *objfile, const asymbol *sym) |
interested in will have a section. */ |
/* Relocate all non-absolute and non-TLS symbols by the |
section offset. */ |
- if (sym->section != &bfd_abs_section |
+ if (sym->section != bfd_abs_section_ptr |
&& !(sym->section->flags & SEC_THREAD_LOCAL)) |
symaddr += offset; |
- if (sym->section == &bfd_abs_section) |
+ if (sym->section == bfd_abs_section_ptr) |
ms_type = mst_abs; |
else if (sym->section->flags & SEC_CODE) |
{ |
@@ -180,7 +180,7 @@ macho_symtab_read (struct objfile *objfile, |
const asymbol *dir_so = NULL; |
const asymbol *file_so = NULL; |
asymbol **oso_file = NULL; |
- unsigned int nbr_syms; |
+ unsigned int nbr_syms = 0; |
/* Current state while reading stabs. */ |
enum |
@@ -563,7 +563,7 @@ macho_add_oso_symfile (oso_el *oso, bfd *abfd, |
res = macho_resolve_oso_sym_with_minsym (main_objfile, sym); |
if (res != 0) |
{ |
- sym->section = &bfd_com_section; |
+ sym->section = bfd_com_section_ptr; |
sym->value = res; |
} |
} |
@@ -1032,9 +1032,13 @@ static const struct sym_fns macho_sym_fns = { |
default_symfile_segments, /* Get segment information from a file. */ |
NULL, |
macho_symfile_relocate, /* Relocate a debug section. */ |
+ NULL, /* sym_get_probes */ |
&psym_functions |
}; |
+/* -Wmissing-prototypes */ |
+extern initialize_file_ftype _initialize_machoread; |
+ |
void |
_initialize_machoread () |
{ |