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: [patch] Set calling convention of methods



On 04 Jun 2009, at 20:17, Tom Tromey wrote:


"Jonas" == Jonas Maebe <jonas.maebe@elis.ugent.be> writes:

Jonas> It took quite a while, but I'm happy to say that my copyright
Jonas> assignment is now complete. I've received my confirmation mail from
Jonas> FSF that they received all necessary documents.


Thanks.  Could you send the URLs of the last versions of your pending
patches?  That would help.

I've attached my first patch. Other patches will modify code in this one, so I'd prefer to get this one out of the way first.


To Mark: it's slightly different from the last one that I previously sent you. There was still a bug whereby the address of the complex function result was pushed in the wrong order in case it has to passed on the stack (parameters are pushed from right to right, and the function result should be pushed before the rightmost parameter rather than after the leftmost). Hence, I moved the code to push the function result address from the end to the start of the loop pushing the memory parameter.

This patch is against the current git://sourceware.org/git/gdb.git

Thanks,


Jonas


2009-06-10 Jonas Maebe <jonas.maebe@elis.ugent.be>

Add support for the "Borland fastcall" calling convention.

	* elf/dwarf2.h: Add DW_CC_GNU_borland_fastcall_i386 constant.
	* i386-tdep.c: #include elf/dwarf2.h
	(i386_borland_fastcall_push_dummy_call): New.
	(i386_push_dummy_generic_call): Renamed i386_push_dummy_call.
	(i386_push_dummy_call): New dispatch function that calls
	i386_generic_push_dummy_call or i386_push_dummy_borland_fast_call
	depending on the calling convention.

Attachment: gdb_borland_fastcall5.patch
Description: Binary data



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