[rfa?] Add frame_align(); Was: ARM stack alignment on hand called functions
Andrew Cagney
ac131313@redhat.com
Thu Nov 28 09:00:00 GMT 2002
>> >> >> +/* 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?
Andrew
More information about the Gdb-patches
mailing list