From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6239 invoked by alias); 20 Nov 2002 19:40:44 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6232 invoked from network); 20 Nov 2002 19:40:43 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 20 Nov 2002 19:40:43 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id OAA05328; Wed, 20 Nov 2002 14:36:45 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id OAA02885; Wed, 20 Nov 2002 14:31:09 -0500 Message-ID: <1a2a01c290cc$aa02bef0$0202040a@catdog> From: "Kris Warkentin" To: Cc: References: <200211201837.gAKIbXv25319@pc960.cambridge.arm.com> <19e701c290c6$e22587f0$0202040a@catdog> Subject: Re: ARM stack alignment on hand called functions Date: Wed, 20 Nov 2002 11:40:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2002-11/txt/msg00290.txt.bz2 > > OK, but with this change the alignment is being done *after* any arguments > > that have to go onto the stack have been pushed. It should happen > > *before*. What happens if you have? You're right. If I put the "sp = (sp + 3) & ~3" at the top of arm_push_arguments(), everything works. I see that a lot of stuff in arm-tdep.c has been changed extensively on your head branch, including arm_push_arguments(). Probably once we move to the head branch, everything will work fine. cheers, Kris