From efad9b6a7ad68e3e85dd28a12b567f84d6860d17 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 5 Dec 2014 19:11:53 +0100 Subject: 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 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. --- gdb/solib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/solib.c') diff --git a/gdb/solib.c b/gdb/solib.c index 6260dac..ce9dc05 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1404,7 +1404,7 @@ show_auto_solib_add (struct ui_file *file, int from_tty, the library-specific handler if it is installed for the current target. */ struct symbol * -solib_global_lookup (const struct objfile *objfile, +solib_global_lookup (struct objfile *objfile, const char *name, const domain_enum domain) { -- cgit v1.1