This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix crash with empty Rust enum
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
>> +gdb_test "print empty_enum_value" \
>> + " = simple::EmptyEnum.*"
>> +gdb_test "ptype empty_enum_value" "simple::EmptyEnum.*"
>> +# Just make sure these don't crash, for the same reason.
>> +gdb_test "print empty_enum_value.0" ""
>> +gdb_test "print empty_enum_value.something" ""
Simon> Is it possible (and worth it) to put some tighter checks, but kfail
Simon> them based on the compiler version?
On reflection I think we need to wait for a version of rustc to come out
that has the enum debuginfo fixes.
Adding xfails to gdb.rust/*.exp is tracked here:
https://sourceware.org/bugzilla/show_bug.cgi?id=23624
So I am just going to move forward with the looser checks and fix this
part later.
Tom