* varobj.c (struct varobj): Fix comment
authorVladimir Prus <vladimir@codesourcery.com>
Fri, 31 Aug 2007 19:01:17 +0000 (19:01 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Fri, 31 Aug 2007 19:01:17 +0000 (19:01 +0000)
for the type member not to lie when it can be
NULL.

gdb/ChangeLog
gdb/varobj.c

index 242822f..7732b94 100644 (file)
@@ -1,5 +1,11 @@
 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
 
+       * varobj.c (struct varobj): Fix comment
+       for the type member not to lie when it can be 
+       NULL.
+       
+2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
+
        Implement -var-info-path-expression.
 
        * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
index 7235de3..5ea81fa 100644 (file)
@@ -110,7 +110,9 @@ struct varobj
   /* Index of this variable in its parent or -1 */
   int index;
 
-  /* The type of this variable. This may NEVER be NULL. */
+  /* The type of this variable.  This can be NULL
+     for artifial variable objects -- currently, the "accessibility" 
+     variable objects in C++.  */
   struct type *type;
 
   /* The value of this expression or subexpression.  A NULL value