This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA Darwin]: Add push_dummy_call for i386


On Fri, Jul 3, 2009 at 8:51 AM, Tristan Gingold<gingold@adacore.com> wrote:
> Hi,
>
> Darwin i386 ABI is slightly different from the SVR4 one. ?In particular
> stack alignment is 16. ?As a consquence, i386 Darwin can't use the standard
> i386-tdeo.c push_dummy_call and this patch provides a Darwin version of this
> call.
>

Well, the code generated by gcc for Linux/i386 assumes that the incoming
stack is aligned at 16byte. If not, functions using SSE registers may crash.


-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]