Re: [PATCH v4 12/12] [PowerPC] Add support for HTM registers

Pedro Franco de Carvalho
2018-08-16T20:16:58Z

Pedro Franco de Carvalho <pedromfc@linux.ibm.com> writes:

> Pedro Alves <palves@redhat.com> writes:
>
>> I won't pretend to understand the above fully (not an Power expert),
>> but the question I ended up with was, after all this, will the
>> GDB-generated files end up looking like kernel-generated cores?
>> Or are there plans for that?
>
> They will end up looking different for this regset note section. This
> really seems like a kernel bug, which I'm hoping will get fixed.

Correction: the size of the regset note section for 32-bit threads seems
like a kernel bug. The fact that the kernel includes values for
registers that GDB doesn't include in the note section (by zeroing them)
isn't a kernel bug, but to do this GDB would have to be aware of all
these registers that aren't defined in the architecture.

--
Pedro Franco de Carvalho