diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-06-14 08:26:57 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-06-14 08:26:57 +0000 |
commit | 25b524e8361ae202a314ea75c2d943a1988318f8 (patch) | |
tree | 5fb895d68bb0edd62cec89e08cd804572cee3eb4 /gdb/ada-typeprint.c | |
parent | daily update (diff) | |
download | binutils-gdb-25b524e8361ae202a314ea75c2d943a1988318f8.tar.gz binutils-gdb-25b524e8361ae202a314ea75c2d943a1988318f8.tar.bz2 binutils-gdb-25b524e8361ae202a314ea75c2d943a1988318f8.zip |
gdb/
* ada-lang.h (ada_print_type): Make varstring const.
* ada-typeprint.c (print_func_type): Make name const.
(ada_print_type): Make varstring const.
* c-lang.h (c_print_type): Make varstring const.
* c-typeprint.c (c_print_type): Likewise.
* f-lang.h (f_print_type): Likewise.
* f-typeprint.c (f_print_type): Likewise.
* jv-lang.h (java_print_type): Likewise.
* jv-typeprint.c (java_print_type): Likewise.
* language.c (unk_lang_print_type): Likewise.
* language.h (struct language_defn) <la_print_type>: Likewise.
* m2-lang.h (m2_print_type): Likewise.
* m2-typeprint.c (m2_print_type): Likewise.
* p-lang.h (pascal_print_type): Likewise.
* p-typeprint.c (pascal_print_type): Likewise.
Diffstat (limited to 'gdb/ada-typeprint.c')
-rw-r--r-- | gdb/ada-typeprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c index 7e8a649fa20..a02c8d4fece 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -664,7 +664,7 @@ print_unchecked_union_type (struct type *type, struct ui_file *stream, for function or procedure NAME if NAME is not null. */ static void -print_func_type (struct type *type, struct ui_file *stream, char *name) +print_func_type (struct type *type, struct ui_file *stream, const char *name) { int i, len = TYPE_NFIELDS (type); @@ -714,8 +714,8 @@ print_func_type (struct type *type, struct ui_file *stream, char *name) LEVEL indicates level of recursion (for nested definitions). */ void -ada_print_type (struct type *type0, char *varstring, struct ui_file *stream, - int show, int level) +ada_print_type (struct type *type0, const char *varstring, + struct ui_file *stream, int show, int level) { struct type *type = ada_check_typedef (ada_get_base_type (type0)); char *type_name = decoded_type_name (type0); |