* eval.c (evaluate_struct_tuple): Skip static fields.
gdb/testsuite/
* gdb.cp/bs15503.exp: Update comment for no longer crashing
test.
+2006-07-20 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * eval.c (evaluate_struct_tuple): Skip static fields.
+
2006-07-19 Mark Kettenis <kettenis@gnu.org>
* alphaobsd-tdep.c: Include "obsd-tdep.h".
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"));
+2006-07-20 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdb.cp/bs15503.exp: Update comment for no longer crashing
+ test.
+
2006-07-19 Andrew Stubbs <andrew.stubbs@st.com>
* gdb.base/ifelse.exp: Remove troublesome 'got here' messages.
# gdb_test "print s > "AAA" "\\$\[0-9\]+ = true"
# gdb_test "print s < "ZZZ" "\\$\[0-9\]+ = true"
-# TODO crash gdb! This is going to be a great test!
-# -- chastain 2004-01-07
+# TODO: GDB doesn't know to convert the string to a const char *, and
+# instead tries to use the string as a structure initializer.
#
# gdb_test "print s == \"I am a short stringand now a longer string\"" \
-# "\\$\[0-9\]+ = "true"
+# "\\$\[0-9\]+ = true"
gdb_test "print (const char *) s.substr(0,4)" "\\$\[0-9\]+ = $hex \"I am\""
gdb_test "print (const char *) (s=s.substr(0,4))" \