This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/amd64] Pb with parameter passing in inferior function call
- From: Mark Kettenis <kettenis at chello dot nl>
- To: brobecker at gnat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 25 Mar 2004 12:15:32 +0100 (CET)
- Subject: Re: [RFA/amd64] Pb with parameter passing in inferior function call
- References: <20040324235125.GK5083@gnat.com>
Date: Wed, 24 Mar 2004 15:51:26 -0800
From: Joel Brobecker <brobecker@gnat.com>
The problem is that type Node_Id is a 4 bytes range type. Procedure
"Pn" expects this parameter to be passed via %rdi. But there is a
slight omission in amd64_classify that does not classifies RANGE_TYPE
entities in the INTEGER class. The attached patch fixes this.
The AMD64 ABI doesn't say anything about Ada types :-(. However I
suppose this makes sense.
2004-02-24 J. Brobecker <brobecker@gnat.com>
* amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
of the INTEGER class.
Tested on amd64-linux. No regression.
Ok to apply?
Go ahead. This is fine for the branch too if you think it is
appropriate.
Mark