From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7330 invoked by alias); 29 Jan 2003 05:19:39 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7308 invoked from network); 29 Jan 2003 05:19:29 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.209.173) by 172.16.49.205 with SMTP; 29 Jan 2003 05:19:29 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 019C8406E; Tue, 28 Jan 2003 19:34:25 -0500 (EST) Message-ID: <3E372191.2050609@redhat.com> Date: Wed, 29 Jan 2003 05:19:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.1) Gecko/20021211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Cagney Cc: Richard.Earnshaw@arm.com, Kris Warkentin , gdb-patches@sources.redhat.com Subject: Re: [rfa?] Add frame_align(); Was: ARM stack alignment on hand called functions References: <200211281649.gASGngu29883@pc960.cambridge.arm.com> <3DE64BB2.9000700@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00768.txt.bz2 >>> >> +/* Ensure that the ARM's stack pointer has the correct alignment for a >>> >> + new frame. */ >>> >> +static CORE_ADDR >>> >> +arm_frame_align (struct gdbarch *gdbarch, CORE_ADDR addr) >>> >> +{ >>> >> + return (addr & -16); >>> >> +} > > You mean ~(ULONGEST)0x7? > > I mean ~(typeof(addr)) 0x7. > > M'kay (finally gets brain around what that expression is doing), back to the patch. > > Does it fix the bug? Anyone? Andrew