diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-07-20 22:50:07 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-07-20 22:50:07 +0000 |
commit | 16963cb64bd9999537c4a056bff9915bab2911d2 (patch) | |
tree | cba0518d01077d17a3a54fad2cd122547596ba3b /gdb/eval.c | |
parent | d5f010e93bf3770eb8c443eb0b502c299860a1d8 (diff) | |
download | gdb-16963cb64bd9999537c4a056bff9915bab2911d2.zip gdb-16963cb64bd9999537c4a056bff9915bab2911d2.tar.gz gdb-16963cb64bd9999537c4a056bff9915bab2911d2.tar.bz2 |
gdb/
* eval.c (evaluate_struct_tuple): Skip static fields.
gdb/testsuite/
* gdb.cp/bs15503.exp: Update comment for no longer crashing
test.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r-- | gdb/eval.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -283,6 +283,10 @@ evaluate_struct_tuple (struct value *struct_val, if (variantno < 0) { fieldno++; + /* Skip static fields. */ + while (fieldno < TYPE_NFIELDS (struct_type) + && TYPE_FIELD_STATIC_KIND (struct_type, fieldno)) + fieldno++; subfieldno = fieldno; if (fieldno >= TYPE_NFIELDS (struct_type)) error (_("too many initializers")); |