From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23870 invoked by alias); 25 Mar 2004 11:15:42 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23849 invoked from network); 25 Mar 2004 11:15:39 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.115.144) by sources.redhat.com with SMTP; 25 Mar 2004 11:15:39 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i2PBFXw2000324; Thu, 25 Mar 2004 12:15:33 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i2PBFWvw000744; Thu, 25 Mar 2004 12:15:32 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i2PBFWr7000741; Thu, 25 Mar 2004 12:15:32 +0100 (CET) Date: Thu, 25 Mar 2004 11:15:00 -0000 Message-Id: <200403251115.i2PBFWr7000741@elgar.kettenis.dyndns.org> From: Mark Kettenis To: brobecker@gnat.com CC: gdb-patches@sources.redhat.com In-reply-to: <20040324235125.GK5083@gnat.com> (message from Joel Brobecker on Wed, 24 Mar 2004 15:51:26 -0800) Subject: Re: [RFA/amd64] Pb with parameter passing in inferior function call References: <20040324235125.GK5083@gnat.com> X-SW-Source: 2004-03/txt/msg00606.txt.bz2 Date: Wed, 24 Mar 2004 15:51:26 -0800 From: Joel Brobecker 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 * 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