[lldb-dev] Is qRegisterInfo required

Keno Fischer kfischer at college.harvard.edu
Sat Feb 21 22:37:13 PST 2015


Actually after looking into Process/Utility, I'm even more confused. What's
the canonical way to declare registers for a target. Also why does it
depend on operating system.
Shouldn't the registers themselves be only CPU dependent (is it an ABI
difference?)?

On Sat, Feb 21, 2015 at 11:48 PM, Keno Fischer <kfischer at college.harvard.edu
> wrote:

> Hello everyone,
>
> I'm playing around with having lldb connect to a custom gdbserver (which
> doesn't support the
> qRegisterInfo query). I started out by writing a simple stub ABI plugin
> that defines the register
> table for my target, but reading further through the code, I'm somewhat
> confused by the separation of concerns here. In particular, it seems like
> having the gdbserver provide qRegisterInfo is required unless runnning on
> ARM in which case GDBRemoteDynamicRegisterInfo::HardcodeARMRegisters will
> add it using has a copy of the Register table from the ABI. I was under the
> impression that supporting qRegisterInfo was a good idea if registers ever
> change/get added but was not required and LLDB would fall back on the ABI
> plugin. Is that not the case? And if not, why not?
>
> Keno
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150222/207c5d89/attachment.html>


More information about the lldb-dev mailing list