[PATCH v3 3/3] Dynamic core regset sections support
Andreas Arnez
arnez@linux.vnet.ibm.com
Thu Jun 13 12:23:00 GMT 2013
Pedro Alves <palves@redhat.com> writes:
>> Do you mean to always write the TDB regset into the core dump, like
>> without the patch? And then add some logic such that GDB recognizes
>> zero values in the register note section as invalid and clears the
>> regset? Or do I misinterpret your suggestion?
>
> Not zero, but present them as unavailable/invalid.
Not sure I understand your point here. *Presenting them* as unavailable
is exactly what the patch does.
> Isn't there a control register GDB can read to check whether a
> transaction is in progress (useful for both core and live debugging) ?
No, the kernel indicates an interrupted transaction with the presence of
the TDB regset. This applies to ptrace as well as to a core dump. My
goal for gcore was to behave the same.
More information about the Gdb-patches
mailing list