X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgo-lang.c;h=96be458f3520c44abc8151b2596c4d6d2af7b509;hb=4e7b8beaa3b7b9ac8577b10afa9d58bb9d453b08;hp=509704c8c1a3cecf4ac128d2ec63505316d29363;hpb=224c3ddb89a43bf8db06c373d4ff429477833c0f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/go-lang.c b/gdb/go-lang.c index 509704c8c1..96be458f35 100644 --- a/gdb/go-lang.c +++ b/gdb/go-lang.c @@ -1,6 +1,6 @@ /* Go language support routines for GDB, the GNU debugger. - Copyright (C) 2012-2015 Free Software Foundation, Inc. + Copyright (C) 2012-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -195,9 +195,9 @@ unpack_mangled_go_symbol (const char *mangled_name, /* Pointer to "N" if valid "N_" found. */ char *method_type; /* Pointer to the first '.'. */ - char *first_dot; + const char *first_dot; /* Pointer to the last '.'. */ - char *last_dot; + const char *last_dot; /* Non-zero if we saw a pointer indicator. */ int saw_pointer; @@ -655,7 +655,7 @@ static struct gdbarch_data *go_type_data; const struct builtin_go_type * builtin_go_type (struct gdbarch *gdbarch) { - return gdbarch_data (gdbarch, go_type_data); + return (const struct builtin_go_type *) gdbarch_data (gdbarch, go_type_data); } extern initialize_file_ftype _initialize_go_language;