This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Set calling convention of methods
- From: Jonas Maebe <jonas dot maebe at elis dot ugent dot be>
- To: tromey at redhat dot com
- Cc: Mark Kettenis <mark dot kettenis at xs4all dot nl>, gdb-patches at sourceware dot org
- Date: Mon, 6 Jul 2009 22:50:26 +0200
- Subject: Re: [patch] Set calling convention of methods
- References: <B8DEF338-C0F0-40A5-B4B8-D24DC56BFA0E@elis.ugent.be> <m31vs0s9da.fsf@fleche.redhat.com> <7B6EF4DA-76C8-4D9C-8B9F-94153EF1C4E1@elis.ugent.be> <m3zleb2ne3.fsf@fleche.redhat.com> <691B0BA8-C606-42FF-A796-76CC9C31556A@elis.ugent.be> <200904222215.n3MMF0p2006994@brahms.sibelius.xs4all.nl> <19C107AA-5271-4C23-A6D2-AFF75BBAC4E4@elis.ugent.be> <m3bpp3oode.fsf@fleche.redhat.com>
Ping.
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