aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2007-08-31 19:01:17 +0000
committerVladimir Prus <vladimir@codesourcery.com>2007-08-31 19:01:17 +0000
commit202ddcaa09cec13dd964695fb033a6cd6c7a6543 (patch)
tree83e71dee9788abf92c526963db201c603699172f /gdb/varobj.c
parent02142340a06871b1c75a1849438adc62aaffebbd (diff)
downloadgdb-202ddcaa09cec13dd964695fb033a6cd6c7a6543.zip
gdb-202ddcaa09cec13dd964695fb033a6cd6c7a6543.tar.gz
gdb-202ddcaa09cec13dd964695fb033a6cd6c7a6543.tar.bz2
* varobj.c (struct varobj): Fix comment
for the type member not to lie when it can be NULL.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 7235de3..5ea81fa 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