From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6312 invoked by alias); 15 May 2012 15:35:48 -0000 Received: (qmail 6259 invoked by uid 22791); 15 May 2012 15:35:46 -0000 X-SWARE-Spam-Status: No, hits=-7.3 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 May 2012 15:35:32 +0000 Received: from nat-dem.mentorg.com ([195.212.93.2] helo=eu2-mail.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1SUJmd-0004rX-I5 from Thomas_Schwinge@mentor.com ; Tue, 15 May 2012 08:35:31 -0700 Received: from feldtkeller.schwinge.homeip.net ([172.30.64.32]) by eu2-mail.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 15 May 2012 17:35:29 +0200 From: Thomas Schwinge To: Joel Brobecker , Yao Qi Cc: gdb-patches@sourceware.org, cltang@codesourcery.com Subject: Re: [PATCH 1/4] New gdb arch hook: return_with_first_hidden_param_p In-Reply-To: <20120510212054.GA5886@adacore.com> References: <1334755073-26528-1-git-send-email-yao@codesourcery.com> <20120503011435.GA3294@adacore.com> <4FA22D7B.1040707@codesourcery.com> <20120504175830.GQ15555@adacore.com> <4FA743EC.1080903@codesourcery.com> <20120507201345.GX15555@adacore.com> <4FAA2D25.4060700@codesourcery.com> <20120510212054.GA5886@adacore.com> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 15 May 2012 15:35:00 -0000 Message-ID: <87havhsbib.fsf@schwinge.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00574.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1217 Hi! On Thu, 10 May 2012 14:20:54 -0700, Joel Brobecker = wrote: > > Agreed. I stared at these debug info for a while, but unable to have > > a clue on heuristics. My feeling is that these debug info doesn't give > > us more than what source code can give, but the heuristics we are looki= ng > > for are about the difference on different targets, given the same sourc= e. > > That is to say, on different targets, although the number of parameters > > is different, the debug info is almost the same and hard to get heurist= ics, >=20 > Can we use the fact that functions that have their first parameter > be a nameless, artificial, paramter whose type is a pointer to > the return type? Or would this heuristics trigger in other situations? Just a quick thought without having a lot of context on this issue -- what about the case where there isn't even any debug information available for the function to be called? Does this rule out the DWARF route, or isn't that something to be prepared for? > If that doesn't work, then I am running out of ideas, and then we'll > have to start looking giving GDB insider knowledge. But I really don't > like that idea. Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 489 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJPsne9AAoJENuKOtuXzphJ/0kIAI/CSM5bYFp+Ijazyaa3uMhQ H6/RIEDy9/5ZqihznfdtBsXyiDqDIUXUiPwgqPRv6O021mEUSrG+BjHFn40tKfwk x6bZ78aJjHMCMguA5/io7miHi8DSSEEEs3qf9ZSCFmxFF6E32abc+Wm0KX538Lpl ljupY+6oczi4w4SWwtHr1rwKTKarcM8yhc7xr23Px2oi2HP9oHNnFbbgjLLcYYXi UECu0vO4/3zWsZx6tn3YyniYmEpUdgK6Gq+FDXQOQeIQBzAvtZKGq3a8Ty5GCShH TGmmzpu2wOskdpIzUWbdMjVRhUJFw5/WB8Wg4LJ7381zCB7to0CE8Uq+606/1U8= =f+ZN -----END PGP SIGNATURE----- --=-=-=--