]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/varobj.c
* gdbtypes.h (struct main_type): Change type of name,tag_name,
[thirdparty/binutils-gdb.git] / gdb / varobj.c
index 8162350d6c84ea40d9d5f17b30dce7c1df322adb..8855ce3e7806627b764ee9401fe49fe80665eedd 100644 (file)
@@ -3086,7 +3086,7 @@ c_describe_child (struct varobj *parent, int index,
     case TYPE_CODE_STRUCT:
     case TYPE_CODE_UNION:
       {
-       char *field_name;
+       const char *field_name;
 
        /* If the type is anonymous and the field has no name,
           set an appropriate name.  */
@@ -3515,7 +3515,7 @@ cplus_describe_child (struct varobj *parent, int index,
          enum accessibility acc = public_field;
          int vptr_fieldno;
          struct type *basetype = NULL;
-         char *field_name;
+         const char *field_name;
 
          vptr_fieldno = get_vptr_fieldno (type, &basetype);
          if (strcmp (parent->name, "private") == 0)