This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix AMD64 backtrace


Richard Henderson <rth@redhat.com> writes:

> On Sun, Jan 11, 2004 at 11:40:06AM +0100, Andreas Jaeger wrote:
>> 	/* We add unwind information for the target here.  */
>> 	cfi_def_cfa(%rdi, 0)
>> 	cfi_offset(%rbx,JB_RBX*8)
>> 	cfi_offset(%r12,JB_R12*8)
>> 	cfi_offset(%r13,JB_R13*8)
>> 	cfi_offset(%r14,JB_R14*8)
>> 	cfi_offset(%r15,JB_R15*8)
>> 	cfi_offset(%rsp,JB_RSP*8)
>
> You're missing
>
>> 	movq (JB_RBP*8)(%rdi),%rbp

Right.

>> 	movq (JB_PC*8)(%rdi),%rdx

Are you sure?  Do I have to do this for the PC also?

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]