* gdbtypes.h (struct main_type): Change type of name,tag_name,
[deliverable/binutils-gdb.git] / gdb / jv-valprint.c
index 2aea0e1aa0028db3299be835c646ac72b6fd55c0..d430ba090a63401c60904e53d886f3efcb3e0d82 100644 (file)
@@ -42,7 +42,7 @@ java_value_print (struct value *val, struct ui_file *stream,
   struct type *type;
   CORE_ADDR address;
   int i;
-  char *name;
+  const char *name;
   struct value_print_options opts;
 
   type = value_type (val);
@@ -283,7 +283,7 @@ java_print_value_fields (struct type *type, const gdb_byte *valaddr,
        {
          int boffset;
          struct type *baseclass = check_typedef (TYPE_BASECLASS (type, i));
-         char *basename = TYPE_NAME (baseclass);
+         const char *basename = TYPE_NAME (baseclass);
          const gdb_byte *base_valaddr;
 
          if (BASETYPE_VIA_VIRTUAL (type, i))
@@ -325,7 +325,7 @@ java_print_value_fields (struct type *type, const gdb_byte *valaddr,
          /* If requested, skip printing of static fields.  */
          if (field_is_static (&TYPE_FIELD (type, i)))
            {
-             char *name = TYPE_FIELD_NAME (type, i);
+             const char *name = TYPE_FIELD_NAME (type, i);
 
              if (!options->static_field_print)
                continue;
This page took 0.035026 seconds and 4 git commands to generate.