[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb-patches
Subject:    [rfa?] Add frame_align(); Was: ARM stack alignment on hand  called functions
From:       ac131313 () redhat ! com (Andrew Cagney)
Date:       2002-11-28 9:00:00
Message-ID: 3DE64BB2.9000700 () redhat ! com
[Download RAW message or body]

>> >> >> +/* 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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic