[PATCH] gdb: LoongArch: Handle special floating-point member struct in dummy call

Tom Tromey tom@tromey.com
Thu Jul 6 15:11:14 GMT 2023


>>>>> Hui Li <lihui@loongson.cn> writes:

Hi.

> +      if ((field_type->code () == TYPE_CODE_FLT && field_type->length () == 16)
> +	  || (field_type->code () == TYPE_CODE_COMPLEX && field_type->length () == 32))

These lines look over-long.

> +static void
> +struct_member_info (struct type *type,
> +		    unsigned int *m_offsets,
> +		    unsigned int *m_lens,
> +		    unsigned int offset,
> +		    unsigned int *m_fields)

In gdb, the "m_" prefix is used exclusively for member variables.

Tom


More information about the Gdb-patches mailing list