This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: debuginfoless static user probes
> Stan Cox <scox@redhat.com> writes:
>
> > [...]
> > +function _dwarf_register_regs() {
> > + _x8664_dwarf_regs["rax"] = 0 _x8664_dwarf_regs["eax"] = 0
> > + _x8664_dwarf_regs["ax"] = 0 _x8664_dwarf_regs["al"] = 0
> > [...]
>
> Can we hard-code this kind of lookup table inside the translator?
> It's just as fixed as the loc2c mappings.
For the primary names, libdwfl can tell you these mappings. It doesn't
know about the variant names like "eax" (on 64-bit) and "a[xhl]".
We could find a way to add those if it's worthwhile.
Thanks,
Roland