From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18363 invoked by alias); 29 Jan 2003 14:50:23 -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 18356 invoked from network); 29 Jan 2003 14:50:22 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by 172.16.49.205 with SMTP; 29 Jan 2003 14:50:22 -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 JAA03859; Wed, 29 Jan 2003 09:40:03 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id JAA01381; Wed, 29 Jan 2003 09:49:50 -0500 Message-ID: <13c601c2c7a5$a0170670$0202040a@catdog> From: "Kris Warkentin" To: "Andrew Cagney" Cc: , References: <200211281649.gASGngu29883@pc960.cambridge.arm.com> <3DE64BB2.9000700@redhat.com> <3E372191.2050609@redhat.com> Subject: Re: [rfa?] Add frame_align(); Was: ARM stack alignment on hand called functions Date: Wed, 29 Jan 2003 14:50: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: 2003-01/txt/msg00771.txt.bz2 Seems to be okay on this end. Kris ----- Original Message ----- From: "Andrew Cagney" To: "Andrew Cagney" Cc: ; "Kris Warkentin" ; Sent: Tuesday, January 28, 2003 7:34 PM Subject: Re: [rfa?] Add frame_align(); Was: ARM stack alignment on hand called functions > >>> >> +/* 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 > > >