]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 14 Jun 2010 08:26:57 +0000 (08:26 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 14 Jun 2010 08:26:57 +0000 (08:26 +0000)
* 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.

15 files changed:
gdb/ChangeLog
gdb/ada-lang.h
gdb/ada-typeprint.c
gdb/c-lang.h
gdb/c-typeprint.c
gdb/f-lang.h
gdb/f-typeprint.c
gdb/jv-lang.h
gdb/jv-typeprint.c
gdb/language.c
gdb/language.h
gdb/m2-lang.h
gdb/m2-typeprint.c
gdb/p-lang.h
gdb/p-typeprint.c

index 03bc8572e08b726146a79b45edfff5b6778eed39..3907fa30f1b53dcf6a810131ef6353ea1e449e59 100644 (file)
@@ -1,3 +1,21 @@
+2010-06-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * 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.
+
 2010-06-11  Stan Shebs  <stan@codesourcery.com>
 
        Add per-operation permission flags.
index c51964a510ecdd82ecc77ec4d649ee4ed7327069..d1e8ca50c51b51b307886ef01350cf230518aca5 100644 (file)
@@ -156,7 +156,7 @@ extern int ada_parse (void);    /* Defined in ada-exp.y */
 extern void ada_error (char *); /* Defined in ada-exp.y */
 
                         /* Defined in ada-typeprint.c */
-extern void ada_print_type (struct type *, char *, struct ui_file *, int,
+extern void ada_print_type (struct type *, const char *, struct ui_file *, int,
                             int);
 
 extern void ada_print_typedef (struct type *type, struct symbol *new_symbol,
index 7e8a649fa2027a916edf5684083a2d70f6f68532..a02c8d4fece592530ad36f3533be13915649e138 100644 (file)
@@ -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);
index 8da1ff66512435d3ca128dddf8a255627618bf5d..a04fbb29438901d24642aa4f2c2e36d85c1f4f7a 100644 (file)
@@ -63,7 +63,7 @@ extern void c_error (char *);
 extern int c_parse_escape (char **, struct obstack *);
 
 /* Defined in c-typeprint.c */
-extern void c_print_type (struct type *, char *, struct ui_file *, int,
+extern void c_print_type (struct type *, const char *, struct ui_file *, int,
                          int);
 
 extern void c_print_typedef (struct type *, struct symbol *, struct ui_file *);
index 2697c3a4798f26dfc29b7544627a0c49a194275a..9a6bc6d627ac7d2c6bdfbf747866fb38d6dd4d16 100644 (file)
@@ -56,7 +56,7 @@ static void c_type_print_modifier (struct type *, struct ui_file *,
 /* LEVEL is the depth to indent lines by.  */
 
 void
-c_print_type (struct type *type, char *varstring, struct ui_file *stream,
+c_print_type (struct type *type, const char *varstring, struct ui_file *stream,
              int show, int level)
 {
   enum type_code code;
index ee3d91f8565805ebafc6d22366bfae9dfe9e3cc6..f5bb82d7ed8114d08872be9429d8edf81df9b0e1 100644 (file)
@@ -25,7 +25,7 @@ extern int f_parse (void);
 
 extern void f_error (char *);  /* Defined in f-exp.y */
 
-extern void f_print_type (struct type *, char *, struct ui_file *, int,
+extern void f_print_type (struct type *, const char *, struct ui_file *, int,
                          int);
 
 extern int f_val_print (struct type *, const gdb_byte *, int, CORE_ADDR,
index 1343f68abdaeabcffdde2ce8cf48058c7cf23c43..ff013d0b0acebd99f8a5b1a416feb5b60dbe7163 100644 (file)
@@ -52,7 +52,7 @@ void f_type_print_base (struct type *, struct ui_file *, int, int);
 /* LEVEL is the depth to indent lines by.  */
 
 void
-f_print_type (struct type *type, char *varstring, struct ui_file *stream,
+f_print_type (struct type *type, const char *varstring, struct ui_file *stream,
              int show, int level)
 {
   enum type_code code;
index 24ca61ef5241ac415da331134735c052085f68e5..aad5743e3b8face4c96969a5650364b6c2a8e6a7 100644 (file)
@@ -69,7 +69,7 @@ extern struct type *java_lookup_class (char *);
 extern int is_object_type (struct type *);
 
 /* Defined in jv-typeprint.c */
-extern void java_print_type (struct type *, char *, struct ui_file *, int,
+extern void java_print_type (struct type *, const char *, struct ui_file *, int,
                             int);
 
 extern char *java_demangle_type_signature (char *);
index 7e96b4d53666970dc81eea14159e9cd2eb923747..0189ecf5e40e13b0c388d6e420ff2ba18eda1a61 100644 (file)
@@ -332,8 +332,8 @@ extern void c_type_print_varspec_suffix (struct type *, struct ui_file *,
                                         int, int, int);
 
 void
-java_print_type (struct type *type, char *varstring, struct ui_file *stream,
-                int show, int level)
+java_print_type (struct type *type, const char *varstring,
+                struct ui_file *stream, int show, int level)
 {
   int demangled_args;
 
index 90bb228dabb1675cc9af3301e2fc74309718bd97..3ce08b5b913dd9376974a104ea1e59e6bc4cb1a5 100644 (file)
@@ -64,7 +64,7 @@ static void unk_lang_emit_char (int c, struct type *type,
 static void unk_lang_printchar (int c, struct type *type,
                                struct ui_file *stream);
 
-static void unk_lang_print_type (struct type *, char *, struct ui_file *,
+static void unk_lang_print_type (struct type *, const char *, struct ui_file *,
                                 int, int);
 
 static int unk_lang_value_print (struct value *, struct ui_file *,
@@ -1097,8 +1097,8 @@ unk_lang_printstr (struct ui_file *stream, struct type *type,
 }
 
 static void
-unk_lang_print_type (struct type *type, char *varstring, struct ui_file *stream,
-                    int show, int level)
+unk_lang_print_type (struct type *type, const char *varstring,
+                    struct ui_file *stream, int show, int level)
 {
   error (_("internal error - unimplemented function unk_lang_print_type called."));
 }
index 0c04208918773b61e908a8a1b71d62732e3dc3ac..aa0523b4899b51ecab8ef7ab7f1d43cbee1f2ac8 100644 (file)
@@ -198,7 +198,7 @@ struct language_defn
 
     /* Print a type using syntax appropriate for this language. */
 
-    void (*la_print_type) (struct type *, char *, struct ui_file *, int,
+    void (*la_print_type) (struct type *, const char *, struct ui_file *, int,
                           int);
 
     /* Print a typedef using syntax appropriate for this language.
index 161b4b69c5357999967196a7fd4b258973e263fd..87df81c3f09ade502b099cbf9b1aaa1a5072bd6b 100644 (file)
@@ -23,7 +23,7 @@ extern int m2_parse (void);   /* Defined in m2-exp.y */
 extern void m2_error (char *); /* Defined in m2-exp.y */
 
 /* Defined in m2-typeprint.c */
-extern void m2_print_type (struct type *, char *, struct ui_file *, int,
+extern void m2_print_type (struct type *, const char *, struct ui_file *, int,
                           int);
 
 extern void m2_print_typedef (struct type *, struct symbol *,
index 70d835879819ea641995ecbef5bda3a84e46c8a0..592df378270ad1eaf44490ebbab0dc750a1270ea 100644 (file)
@@ -67,7 +67,7 @@ int m2_is_unbounded_array (struct type *type);
 
 
 void
-m2_print_type (struct type *type, char *varstring, struct ui_file *stream,
+m2_print_type (struct type *type, const char *varstring, struct ui_file *stream,
               int show, int level)
 {
   enum type_code code;
index 0ea2fc9cfa5d55b3fc0a3f98c2c895a14e885472..7e076d5c9087cebb79280a935db47961cb2ab498 100644 (file)
@@ -30,7 +30,8 @@ extern int pascal_parse (void);       /* Defined in p-exp.y */
 extern void pascal_error (char *);     /* Defined in p-exp.y */
 
 /* Defined in p-typeprint.c */
-extern void pascal_print_type (struct type *, char *, struct ui_file *, int, int);
+extern void pascal_print_type (struct type *, const char *, struct ui_file *,
+                              int, int);
 
 extern void pascal_print_typedef (struct type *, struct symbol *,
                                  struct ui_file *);
index fc54e01cafa18cd72e17771116f948163bc0b92a..1792cf8e798667f9be8cbf2640b83bc2c5abe05a 100644 (file)
@@ -46,8 +46,8 @@ void pascal_type_print_varspec_prefix (struct type *, struct ui_file *, int, int
 /* LEVEL is the depth to indent lines by.  */
 
 void
-pascal_print_type (struct type *type, char *varstring, struct ui_file *stream,
-                  int show, int level)
+pascal_print_type (struct type *type, const char *varstring,
+                  struct ui_file *stream, int show, int level)
 {
   enum type_code code;
   int demangled_args;