This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: amd64-windows: Fix funcall with by-pointer arguments
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: brobecker at adacore dot com
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 25 Oct 2012 15:17:53 +0200 (CEST)
- Subject: Re: amd64-windows: Fix funcall with by-pointer arguments
- References: <1351099417-18960-1-git-send-email-brobecker@adacore.com>
> From: "Joel Brobecker" <brobecker@adacore.com>
> Date: Wed, 24 Oct 2012 13:23:35 -0400
>
> Hello,
>
> I realized a while ago that I completely misunderstood the amd64-windows
> API regarding arguments that are passed by pointer. The calling
> convention is published there:
>
> http://msdn.microsoft.com/en-us/library/zthk2dkh(v=vs.80).aspx
Reading that document, I think you're much much better off just
implementing your own versons of _return_value(), _push_dummy_call()
for Windows. The complication of "classifying" the parameters makes
very little sense on Windows, and the hookds you're adding (and that
have been added in the past) only complicate the generic ABI code.