[PATCH] Fix AMD64 backtrace
Jakub Jelinek
jakub@redhat.com
Sat Jan 10 19:57:00 GMT 2004
On Sat, Jan 10, 2004 at 08:49:49PM +0100, Andreas Jaeger wrote:
> Andreas Jaeger <aj@suse.de> writes:
>
> > Jakub Jelinek <jakub@redhat.com> writes:
> > [...]
> >>> libc/sysdeps/x86_64/__longjmp.S
> >
> > What's the best way to handle the destroying of the registers with
> > CFI? Should we just mark the registers with "cfi_undefined"?
>
> I'm appending a proposed patch for __longjmp.S. Or can anybody
> envision a better way doing this?
Cannot you from the first movq ***,%rbx pretend you're
already at the jmpq %*rdx instruction, ie. unwind to the
longjmp target?
Write in the unwind info where to fetch %rbp, %r12..%r15,
ra etc. from?
Jakub
More information about the Libc-hacker
mailing list