From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id c25lKKfa+GiQ8QIAWB0awg (envelope-from ) for ; Wed, 22 Oct 2025 09:22:47 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=MFd9rqJP; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9493A1E0BC; Wed, 22 Oct 2025 09:22:47 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 170BC1E04C for ; Wed, 22 Oct 2025 09:22:47 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8C9F4385AC20 for ; Wed, 22 Oct 2025 13:22:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C9F4385AC20 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=MFd9rqJP Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id 8452E385842D for ; Wed, 22 Oct 2025 13:22:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8452E385842D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8452E385842D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1761139321; cv=none; b=CAnXZ22FGiHCldUuUGtXAnm1xS9B2EiQmLKlNG3j1AFxkEkfqAgmx+DOZ9f70ey0zYbYwh5yL7ngT4/5UITPitKjBQLMIx6bxF37ikxnVGBM8jVXv/cIVfTM8TMEhVn/rTsSpPHoKiEx20cpdfLWmbDhPLOLEif7dPClCeicQIs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1761139321; c=relaxed/simple; bh=O64ytMHDktDrQYeNrrIVHUpBDkQZ0nOZw+de+qaQYB8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=eDSl/SlaGiJ1ajTU4Zl5VjQof4BekCe+hDHYbKU8S0EjMwlar4PMGUX6er8U3pdgtBIeajER8GkmRfcPy+FQqHCCFLF/41jZH5pawc28ZHyo2Ss6wyTXxGfWbNew9/F3Rl5X2NuGWZEq8J7gPtn/YbJuWdogRDHKss6/QD4keyg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8452E385842D Received: from eig-obgw-6002b.ext.cloudfilter.net ([10.0.30.203]) by cmsmtp with ESMTPS id BYF0vSZb1eNqiBYmuvlxwc; Wed, 22 Oct 2025 13:22:00 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id BYmdvk4MWwoI2BYmdvAvWi; Wed, 22 Oct 2025 13:21:43 +0000 X-Authority-Analysis: v=2.4 cv=PZX/hjhd c=1 sm=1 tr=0 ts=68f8da77 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=x6icFKpwvdMA:10 a=ItBw4LHWJt0A:10 a=20KFwNOVAAAA:8 a=Jbr2uZ8p5YBuvu2GIRcA:9 a=VS4QxaUSPT0UtbFnIvSC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Ou/ogcImKYFXt44xDuwZVyVy0CZkPiqoeEES2210ioE=; b=MFd9rqJPZFZcxyX8iRJZqNaWUH kOsqomlTvzOj0sySdI+IPViFDEqNNG34Ma0WGNP/yzWU0yaUmPCk98xKJfdHxG+wK5+9CRKMNZyey iAUqd0gldqYeWpjMMvQ7PlTkb; Received: from 97-122-110-68.hlrn.qwest.net ([97.122.110.68]:39420 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vBYmd-00000000mFO-0HJH; Wed, 22 Oct 2025 07:21:43 -0600 From: Tom Tromey To: Andrew Burgess Cc: Tom Tromey , Keith Seitz , gdb-patches@sourceware.org Subject: Re: [PATCH v2] infcall: Add support for integer literals as reference function paramters In-Reply-To: <87qzuvcfb1.fsf@redhat.com> (Andrew Burgess's message of "Wed, 22 Oct 2025 13:05:22 +0100") References: <92575c2eb6805095b41ebbe62ba99b81e4e5dd63.1760629738.git.keiths@redhat.com> <877bwom2ip.fsf@tromey.com> <87qzuvcfb1.fsf@redhat.com> X-Attribution: Tom Date: Wed, 22 Oct 2025 07:21:42 -0600 Message-ID: <87sefbkr6h.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.110.68 X-Source-L: No X-Exim-ID: 1vBYmd-00000000mFO-0HJH X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-68.hlrn.qwest.net (bapiya) [97.122.110.68]:39420 X-Source-Auth: tom+tromey.com X-Email-Count: 8 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfNQ3LepRjB3/YFQlBBUTOW2109/be7VecRu6O6iN+n5fmfloWBPYyORcWzMP/VIC3+uc4q+kwtQdVPDeuPsulbUOes82fcGLPLrWFH741sgEPVj1mK5Y f7zKYxlS9+XcHw1rfQ2N6soyK8MVVCHjnX7Yov88KVWnMDXVhvds+aycf3GBix9itl0vzFVGalmqHtro5kkAlQKLd8zGY3Z6Z7o= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Andrew" == Andrew Burgess writes: >> I don't know if that property (trivially-copyable) is all that easy to >> detect in gdb, but if it is, I guess it would make sense to detect it >> and throw an exception. Since in that case we'd be looking at something >> like a callee that wants memory but where the object has been SROA'd or >> something along those lines. Andrew> We have `language_pass_by_reference`, the return value of which will, I Andrew> think, tell you if a type is trivially-copyable or not. I don't think Andrew> this is going to be the common path though; don't objects that are not Andrew> trivially-copyable have to live in memory? I'm sure there might be some Andrew> edge case here, but for me, I'd be happy with a patch that ignores this Andrew> for now, and we can come back to this later if/when we find a Andrew> problematic case. Yeah, that seems sensible. I don't really know if compilers are capable of doing weird stuff like scalar replacement of a non-trivially-destructible object combined with inlining of the destructor the avoid needing the object in one piece. Tom