[PATCH] Use strtok_r instead of strsep in rust_get_disr_info
Pedro Alves
palves@redhat.com
Wed Jun 29 10:36:00 GMT 2016
On 06/29/2016 11:31 AM, Manish Goregaokar wrote:
> @@ -161,8 +163,6 @@ rust_get_disr_info (struct type *type, const
> gdb_byte *valaddr,
> member_type = TYPE_FIELD_TYPE (member_type, fieldno);
> }
>
> - if (token >= name + strlen (TYPE_FIELD_NAME (type, 0)))
> - error (_("Invalid form for %s"), RUST_ENUM_PREFIX);
> value = unpack_long (member_type, valaddr + embedded_offset);
>
> if (value == 0)
Why was this bit removed?
Thanks,
Pedro Alves
More information about the Gdb-patches
mailing list