From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6511 invoked by alias); 11 Jan 2004 18:50:03 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 6481 invoked from network); 11 Jan 2004 18:50:01 -0000 Received: from unknown (HELO sunsite.ms.mff.cuni.cz) (195.113.19.66) by sources.redhat.com with SMTP; 11 Jan 2004 18:50:01 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8) with ESMTP id i0BGgvxL023815; Sun, 11 Jan 2004 17:42:57 +0100 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id i0BGgve9023813; Sun, 11 Jan 2004 17:42:57 +0100 Date: Sun, 11 Jan 2004 18:50:00 -0000 From: Jakub Jelinek To: Andreas Jaeger Cc: Richard Henderson , Glibc hackers Subject: Re: [PATCH] Fix AMD64 backtrace Message-ID: <20040111164256.GN6413@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: <20040110175049.GM6413@sunsite.ms.mff.cuni.cz> <20040111024737.A1431@redhat.com> <20040111025223.A2564@redhat.com> <20040111030005.C13258@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-SW-Source: 2004-01/txt/msg00042.txt.bz2 On Sun, Jan 11, 2004 at 01:17:52PM +0100, Andreas Jaeger wrote: > /* Load the new stack pointer, the preserved registers and > registers used for passing args. */ > cfi_def_cfa(%rdi, 0) > cfi_offset(%rbx,oRBX) > cfi_offset(%rbp,oRBP) > cfi_offset(%r12,oR12) > cfi_offset(%r13,oR13) > cfi_offset(%r14,oR14) > cfi_offset(%r15,oR15) > cfi_offset(%rsp,oRSP) > cfi_offset(%rip,oRIP) > > movq oRSP(%rdi), %rsp > movq oRBX(%rdi), %rbx > movq oRBP(%rdi), %rbp > movq oR12(%rdi), %r12 > movq oR13(%rdi), %r13 > movq oR14(%rdi), %r14 > movq oR15(%rdi), %r15 > > /* The following ret should return to the address set with > getcontext. Therefore push the address on the stack. */ > movq oRIP(%rdi), %rcx > pushq %rcx > cfi_adjust_cfa_offset(8) pushq %rcx modifies %rsp, but current CFI here is %rdi which is unchanged. Jakub