This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3 3/3] Dynamic core regset sections support


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]