From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2065.outbound.protection.outlook.com [40.107.223.65]) by sourceware.org (Postfix) with ESMTPS id B4B19385840C for ; Fri, 28 Jan 2022 14:32:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B4B19385840C ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QijSGUyWomS/mkldqWsl3AqiAsthBxIL4Rxp8rEys1AVrZOAvfwb1K6bGvIS3ob/WsZzU9s7ikxuPamad38L2On5uQstRBSAomT55au94q/637I8fyKYqq+TJc0xwJNdfOEzeXVdRnXzIXnpJpQo4F7Vk/1RU7WwkkQ2EmlH4/Sm2vprD1a8ZmwSFAOVzr0eb52ESnq+LOZsjAu2ndzdOSakn4X8rgnwYGql7HuaRfE5kuc23L7vSGORdz2rLiWzqA99Yil1YdBQU/TKz6l5QYR4Avnie+3gchaeLgb9kRA5QcLpVt8CRCev6MT+FdaPU0m7B7ISv7qlZm/vqPbdvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xClehBDYbTdQJIbnsYl3Hq7rghb+PqVz8g8fGJTMlo4=; b=Q3k8jDcYUHddHJB3UXS1hnn1eE1rXPvOIFo4WgucRp13e81JoE/oAzY7rCkW18FJBTm7IvymVjTNrtcd/90p5ZW1U3ufdz2fEiafXGRbnU0ZQbQmZqFZjY4iNlEr2ER8JlAE47p4QOqM2bBX6eErqVQ05FWZNUrkyEnFakEO9Zn0Xw1AmWjSQ1FZ1Bo3r6pd+RX6ewvwM4OgKGAFsG1Ntj07REoOD5kRceB6lgCkQaROtwVqGZ0wKFX9qYcm9WW7LZxFt00I2SV9kIYp11v9nXGAa0i+ETLFRXk5gq+XyrrECfWzdZCVKggZ8Q5hNussxcONLM1JnX7qyq40U5h8Qg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none Received: from DM3PR03CA0013.namprd03.prod.outlook.com (2603:10b6:0:50::23) by MWHPR12MB1888.namprd12.prod.outlook.com (2603:10b6:300:112::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.17; Fri, 28 Jan 2022 14:32:10 +0000 Received: from DM6NAM11FT033.eop-nam11.prod.protection.outlook.com (2603:10b6:0:50:cafe::26) by DM3PR03CA0013.outlook.office365.com (2603:10b6:0:50::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.18 via Frontend Transport; Fri, 28 Jan 2022 14:32:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT033.mail.protection.outlook.com (10.13.172.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4930.15 via Frontend Transport; Fri, 28 Jan 2022 14:32:10 +0000 Received: from node-bp126-r03c.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Fri, 28 Jan 2022 08:32:09 -0600 From: Lancelot SIX To: CC: , Lancelot SIX Subject: [PATCH v2 0/2] Make GDB respect the DW_CC_nocall attribute Date: Fri, 28 Jan 2022 08:29:29 -0600 Message-ID: <20220128142931.39750-1-lancelot.six@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6c0a245a-4df2-414a-14b9-08d9e26af803 X-MS-TrafficTypeDiagnostic: MWHPR12MB1888:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2331; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rG1klcwDw5HOhb69s6GNK0y97L+8UWpIbF5vpDo+o9iw+8gztY0rc4xPezXkpuaRtFIAYLJw9pyi6UJd5JMFXHnZa57OzXuTIgCNxe1WB7eD91H/GF2jL5/6eZ9obHByDFVDfdo+bxu8uq0GGRjL/Fmej66ag+kSbtRfIigGIl/uQwOMITTxajFKveR9ND7omfRO2V7T15LW1IldpGQ8SBQ5RM0Qv2Q6DCxgmDo9BTkABqq6db0j96tvZ2d3m1o/qvoFJ1tvV8vRqsINYgO+Ie7y+0WRYm7hmsxUvJVQ7B5ncDv7q/cWJYTBRLfaHBXwO4ny/4HkUegvxQ2+BXTk3ZXaXj4Q92FMz/SrrVAvwwv/16lOLaDKImQ46TppsTGA+NQziN5ngDVG8pMPWYha/9IHRxVGqXUHdiQn67rppYtmrN8fzmwnGnL2vnAEvlAtPvXnWGFnvfLkSp4o6Ju12Eg5xwq3qJLQ9nbLtInESLIJCP325XPejmKHH4h05g5gFQKprSWP88wkz7jQV+2Ujj10pACxE1ToXl9GN3yqtdfLb3dBMTTGn5C7p8HR3pkPh30KI8GYHA/NQtWmMqSkg+iXkYw0+XbFg8UQU4XqmLAa9T1Em9VC8FlrcATlDUGJ3XrSWPXIP7gzCM6+R6rH1yC85PumvquurTgRhe2NQ9a0hl263xMdCFToihhEMLvXgQSpcR/zQQtI84FShl2Xukd5d3RIXnHCXy58q+TrONr2VFjaJx75UPcUlSzFArfSs10uG1hlfeza9JpeAQBUUWbgaIzNkZxn7FBKGMe9tTU= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(26005)(1076003)(16526019)(186003)(2616005)(6666004)(356005)(8676002)(40460700003)(316002)(86362001)(8936002)(82310400004)(47076005)(70586007)(70206006)(36860700001)(54906003)(6916009)(966005)(4326008)(508600001)(83380400001)(36756003)(7696005)(2906002)(336012)(426003)(5660300002)(81166007)(36900700001)(20210929001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jan 2022 14:32:10.3904 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c0a245a-4df2-414a-14b9-08d9e26af803 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT033.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1888 X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2022 14:32:21 -0000 Hi, This is a V2 for https://sourceware.org/pipermail/gdb-patches/2022-January/185301.html The main change since V1 is an improvement of the messages shown to the user (including the name of the function that is marked as not following the calling convention). In order to do this, this series move the get_function_name (COREADDR) function from infcall.c where it currently resides (as a static function) to a more generic place accessible to other parts of GDB. I unfortunately did not find the obvious place where this function should live. The first commit of this series moves the declaration of the function in gdb/symtab.h and its declaration in gdb/blockframe.c in absence of anything better. I am happy moving this somewhere else if someone sees a better location in mind. All feedback welcome. Best, Lancelot. Lancelot SIX (2): gdb: Move most of get_function_name (COREADDR) in symtab.h gdb: Respect the DW_CC_nocall attribute gdb/blockframe.c | 29 ++++++ gdb/gdbtypes.c | 11 +++ gdb/gdbtypes.h | 9 ++ gdb/infcall.c | 43 +------- gdb/infcmd.c | 19 ++++ gdb/stack.c | 16 ++- gdb/symtab.h | 15 +++ gdb/testsuite/gdb.dwarf2/calling-convention.c | 36 +++++++ .../gdb.dwarf2/calling-convention.exp | 97 +++++++++++++++++++ 9 files changed, 234 insertions(+), 41 deletions(-) create mode 100644 gdb/testsuite/gdb.dwarf2/calling-convention.c create mode 100644 gdb/testsuite/gdb.dwarf2/calling-convention.exp base-commit: 0d8cbc5f2fcbcb9eb207f12507fdfe04f3d3ae14 -- 2.25.1