summaryrefslogtreecommitdiffstats
path: root/gdb/somread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/somread.c')
-rw-r--r--gdb/somread.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/somread.c b/gdb/somread.c
index cc36042ca8..779f5321d0 100644
--- a/gdb/somread.c
+++ b/gdb/somread.c
@@ -427,7 +427,7 @@ som_symfile_offsets (struct objfile *objfile, struct section_addr_info *addrs)
/* Register that we are able to handle SOM object file formats. */
-static struct sym_fns som_sym_fns =
+static const struct sym_fns som_sym_fns =
{
bfd_target_som_flavour,
som_new_init, /* sym_new_init: init anything gbl to entire symtab */
@@ -439,8 +439,7 @@ static struct sym_fns som_sym_fns =
a file. */
NULL, /* sym_read_linetable */
default_symfile_relocate, /* sym_relocate: Relocate a debug section. */
- &psym_functions,
- NULL /* next: pointer to next struct sym_fns */
+ &psym_functions
};
void
OpenPOWER on IntegriCloud