From: Vladimir Prus Date: Fri, 31 Aug 2007 19:01:17 +0000 (+0000) Subject: * varobj.c (struct varobj): Fix comment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=202ddcaa09cec13dd964695fb033a6cd6c7a6543;p=binutils-gdb.git * varobj.c (struct varobj): Fix comment for the type member not to lie when it can be NULL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 242822fdb5e..7732b944eb4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2007-08-31 Vladimir Prus + + * varobj.c (struct varobj): Fix comment + for the type member not to lie when it can be + NULL. + 2007-08-31 Vladimir Prus Implement -var-info-path-expression. diff --git a/gdb/varobj.c b/gdb/varobj.c index 7235de31f1f..5ea81fa3ef6 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -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