This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Re: implement backtraces for AMD64
- From: Mike Cvet <mcvet at redhat dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: frysk at sources dot redhat dot com
- Date: Thu, 21 Sep 2006 09:59:36 -0400
- Subject: Re: implement backtraces for AMD64
- References: <ory7sjvsw3.fsf@free.oliva.athome.lsd.ic.unicamp.br>
On Sun, 2006-09-17 at 04:45 -0300, Alexandre Oliva wrote:
> This patch adds the missing bits to enable libunwind-based backtraces
> on AMD64/EM64T. A few notes:
>
> - The existing IsaEMT64 is misnamed: the correct spelling is EM64T,
> not EMT64. We should probably prefer the more neutral X86_64 name (as
> in the ELF data structure), or favor AMD64, like I did in the new
> RegisterAMD64 class (just trying to set balance ;-)
>
> - I'm not entirely happy with adding libunwind-specific information to
> Isa, but Isa doesn't currently provide enough information to enable
> some alternate implementation that would keep everything entirely
> separate. If we had a method to return the Isa name or the ELF
> machine type or some such, then it would be possible to turn that into
> a reworked Register* factory/singleton pattern similar to that used
> for Isa, all within lib/unwind. It certainly doesn't help that
> lib/unwind is in frysk-imports, so it can't use anything in
> frysk-core; frysk-core/rt would have to have the glue.
>
> Comments? Any architectural guidance? Or is this ok to install?
>
Please go ahead and commit your changes, thanks.
- Mike