Re: [PATCH 11/12] M68K Linux: Define regset structures.

Yao Qi
2014-05-27T01:37:59Z

On 05/27/2014 12:36 AM, Andreas Arnez wrote:
> +/* Return the appropriate register set for the core section identified
> + by SECT_NAME and SECT_SIZE. */
> +
> +static const struct regset *
> +m68k_linux_regset_from_core_section (struct gdbarch *gdbarch,
> + const char *sect_name,
> + size_t sect_size)
> +{
> + if (strcmp (sect_name, ".reg") == 0
> + && sect_size >= M68K_LINUX_GREGS_SIZE)
> + return &m68k_linux_gregset;
> +
> + if (strcmp (sect_name, ".reg2") == 0
> + && sect_size >= M68K_LINUX_FPREGS_SIZE)
> + return &m68k_linux_fpregset;
> +
> + return NULL;
> +}
> +
> static void
> m68k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
> {
> @@ -361,6 +422,10 @@ m68k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
>
> set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);
>
> + /* Core file support. */
> + set_gdbarch_regset_from_core_section
> + (gdbarch, m68k_linux_regset_from_core_section);
> +

Is it intended to include this change in this patch? or it should go
to the next patch series?

--
Yao (é½å°§)