This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa?] Add frame_align(); Was: ARM stack alignment on hand called functions
- From: "Kris Warkentin" <kewarken at qnx dot com>
- To: "Andrew Cagney" <ac131313 at redhat dot com>
- Cc: <Richard dot Earnshaw at arm dot com>, <gdb-patches at sources dot redhat dot com>
- Date: Wed, 29 Jan 2003 09:49:28 -0500
- 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> <3E372191.2050609@redhat.com>
Seems to be okay on this end.
Kris
----- Original Message -----
From: "Andrew Cagney" <ac131313@redhat.com>
To: "Andrew Cagney" <ac131313@redhat.com>
Cc: <Richard.Earnshaw@arm.com>; "Kris Warkentin" <kewarken@qnx.com>;
<gdb-patches@sources.redhat.com>
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
>
>
>