This is the mail archive of the gdb-patches@sources.redhat.com 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/amd64] Pb with parameter passing in inferior function call


   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


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