This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RE: HACK: Fix the backstrace for Linux/x86-64.
- From: "Lu, Hongjiu" <hongjiu dot lu at intel dot com>
- To: "Mark Kettenis" <kettenis at chello dot nl>
- Cc: <gdb-patches at sources dot redhat dot com>
- Date: Fri, 28 May 2004 15:13:40 -0700
- Subject: RE: HACK: Fix the backstrace for Linux/x86-64.
> xorq %rbp, %rbp
>
>The ABI doesn't suggest that at all (at least I can't find it) and
>usage of %rbp as a frame pointer is optional, and certainly not the
>default. This was probably just copied from the i386 code, and should
>be removed. Then your "hack" doesn't work anymore.
>
FYI, the x86-64 ABI is based on the i386 ABI, which does suggest set
frame pointer to zero. I believe glibc is correct in doing so. Again if
you have a different patch, I will give it a try.
H.J.