aboutsummaryrefslogtreecommitdiff
path: root/gdb/solist.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2014-12-05 19:11:53 +0100
committerJan Kratochvil <jan.kratochvil@redhat.com>2014-12-05 19:11:53 +0100
commitefad9b6a7ad68e3e85dd28a12b567f84d6860d17 (patch)
treef6dcbee9088c0ad22871ae7df728318ac4f27106 /gdb/solist.h
parent069bb7eced120d5a81fc41f339390719a0063ce3 (diff)
downloadgdb-efad9b6a7ad68e3e85dd28a12b567f84d6860d17.zip
gdb-efad9b6a7ad68e3e85dd28a12b567f84d6860d17.tar.gz
gdb-efad9b6a7ad68e3e85dd28a12b567f84d6860d17.tar.bz2
Remove const from many struct objfile *
I am just not sure if we should go the route of struct objfile * -> const struct objfile * or the other way of: const struct objfile * -> struct objfile * Normally const adding is better but here I do not see much useful to have any struct objfile * const and then it just causes pointer compatibility problems. On Wed, 03 Dec 2014 18:18:44 +0100, Doug Evans wrote: struct objfile is one case where I've decided to just leave the const out and not worry about it. gdb/ChangeLog 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com> Remove const from struct objfile *. * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h, symtab.c, symtab.h: In these files.
Diffstat (limited to 'gdb/solist.h')
-rw-r--r--gdb/solist.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solist.h b/gdb/solist.h
index ac1b1a7..b47ff51 100644
--- a/gdb/solist.h
+++ b/gdb/solist.h
@@ -137,7 +137,7 @@ struct target_so_ops
unsigned o_flags, char **temp_pathname);
/* Hook for looking up global symbols in a library-specific way. */
- struct symbol * (*lookup_lib_global_symbol) (const struct objfile *objfile,
+ struct symbol * (*lookup_lib_global_symbol) (struct objfile *objfile,
const char *name,
const domain_enum domain);
@@ -189,7 +189,7 @@ extern bfd *solib_bfd_open (char *in_pathname);
extern struct target_so_ops *current_target_so_ops;
/* Handler for library-specific global symbol lookup in solib.c. */
-struct symbol *solib_global_lookup (const struct objfile *objfile,
+struct symbol *solib_global_lookup (struct objfile *objfile,
const char *name,
const domain_enum domain);