[PATCH 1/2] gdb: add field::name / field::set_name
Simon Marchi
simon.marchi@polymtl.ca
Fri Oct 1 02:13:24 GMT 2021
On 2021-08-30 11:49, Simon Marchi wrote:
> From: Simon Marchi <simon.marchi@polymtl.ca>
>
> Add the `name` and `set_name` methods on `struct field`, in order to
> remove `FIELD_NAME` and `TYPE_FIELD_NAME` macros. In this patch, the
> macros are changed to use `field::name`, so all the call sites that are
> used to set the field's name are changed to use `field::set_name`.
> The next patch will remove the macros completely.
>
> Note that because of the name clash between the existing field named
> `name` and the new method, I renamed the field `m_name`. It is not
> private per-se, because we can't make `struct field` a non-POD yet, but
> it should be considered private anyway (not accessed outside `struct
> field`).
>
> Change-Id: If16ddbca4e0c39d0ff9da420bb5cdebe5b9b0896
I pushed these two patches.
Simon
More information about the Gdb-patches
mailing list