From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2057.outbound.protection.outlook.com [40.107.94.57]) by sourceware.org (Postfix) with ESMTPS id 75E1F3857C59 for ; Thu, 14 Oct 2021 09:33:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 75E1F3857C59 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J4Sd9ssmllEPJiJdNJ0R0+wI35RYAc7KWSJZz+lCAeHe6KkH0hA0X44ATfcrd9YXCpU2Z+n8/OB3TRAjQtLF4iIcNYLypIemuz1bdnNkQw0W505qY05GrFWBzNDfOwIXogIKAJtp5Ngj5Uo1/srQoBKLCskfBL7/XZomJhFh+NX0VReTL5zvkv/99q5XBybuYw/Rcxw4X7Q/uvVUaL6qPZ2Mn+PEv9mMkjs2PKDj6TMMUI589ouB/M/Zbmq+kQ8Zw6hPgXifAph6ESrxmzOW+zS9gkqTaudNqq8qxZr7xa67hJFL7y9oYqMl8ZSEg9txJi9Me+xJkO7gftfThQY0OQ== 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=3lBLTJindFsj0AzovjEPr/fLpTuKfYFpoSKaqqNb73k=; b=ZQdY1efvHHp8jnrDePRu3fy+xg5N+aeU4FP/shlhfftBpCnY9ujCUUhv419/xvDxc9EvNRKu/h+4z0MB62jy2pa+EDaQr0GTovALlXsn8vfqjzfQAbB6yKAZ74awqaL1wVRkGccTjwIs6un8QQQwENEEUUEPIbA85dKELNNnGtxUAzcfXfQbxsmRqjOc3ZTAaqPU5q/oYP7w9HmDtJ85ApBT5q94/B3E7m2OGbE5kG2ANtMcnC1F8UMMahHcub9GlqwYWoa+Qrdik4yojW4D7kdVM8+dtqgca2idRKSyTLTSZTVMDvHBTQ78WlxnYIDkBtUoj0okWcsyAEqeg5h6iQ== 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 DM5PR17CA0064.namprd17.prod.outlook.com (2603:10b6:3:13f::26) by SA0PR12MB4592.namprd12.prod.outlook.com (2603:10b6:806:9b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Thu, 14 Oct 2021 09:33:25 +0000 Received: from DM6NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:3:13f:cafe::b3) by DM5PR17CA0064.outlook.office365.com (2603:10b6:3:13f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Thu, 14 Oct 2021 09:33:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; 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 DM6NAM11FT038.mail.protection.outlook.com (10.13.173.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4608.15 via Frontend Transport; Thu, 14 Oct 2021 09:33:24 +0000 Received: from localhost.localdomain (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.2308.8; Thu, 14 Oct 2021 04:33:18 -0500 From: Zoran Zaric To: Subject: [PATCH v3 21/28] Add frame info check to DW_OP_reg operations Date: Thu, 14 Oct 2021 10:32:28 +0100 Message-ID: <20211014093235.69756-22-zoran.zaric@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211014093235.69756-1-zoran.zaric@amd.com> References: <20211014093235.69756-1-zoran.zaric@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: a6deec22-10a2-4701-a155-08d98ef5aba2 X-MS-TrafficTypeDiagnostic: SA0PR12MB4592: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c7BloPT6/85YCNSyCjjjue97Ygbkn6g+HzHbHan5z+BK39AaF4XOm6oCKLFX3HwSz9Saf6l9h6p/2LnUAttN30qAISaGz/aJ7SKiar8spKzmuF0IJi8sgTWJjCMFwP/1bJMObSZ7m2UJMI0/9UufZYtEMfU1qerxGZBPZAMBuDWFNcazgHfw+CQtyCxsJFbXRJiG3Zwlp+d7ssjuj455KKB4rTBXvjlPNWkeXRr+sDjT1Fzspp2+XQIvazmaCfSlVmBUKM7xY/C9Vg1QdQ52rf+8rE6r4ZqJrIweujAyXp7fRYLfLx23gAEC1ngvh8lLdVr/ZNs7FhV5jpHdMc0ZkFut1LLQ4gauQa/KWKcyT1CA6BbnQT1+jIDNgXHSJD0+jtabWOMrr6YLYYjW/e8d0bCW9qSFAGEKFHQJH3NpLf0tpDPydD4rcM9Hgoa11vphx7OTWX2ckSjU7CQzZ4BCISPdRLfGPfGhR1b9s3EMMGQVUP6zi/IpE2iYrNAM/hQ75922inhCWr5MVBl97IkNW9IZkQceF4LoVrVR6e/K8bioy2JPKZWWM3t6KaKB3BTIMzsl3773STicvX+M6/Yxg9JTaOoLVJ7oPja/1Y6prhSbrGRdUUz8pDazGvIQsf6A+z7UhGg3Y/Mpp5ZUHULVpRXUYi36bHU24gskvzUbQrJkZy8cJZNf5bFNOB3fKXedQqztpQtiMyglkJq9IeQq38XV/4qgMjJL52XVy8ouSrs= 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:(4636009)(36840700001)(46966006)(316002)(86362001)(36860700001)(186003)(6916009)(8936002)(16526019)(2906002)(47076005)(70206006)(8676002)(44832011)(70586007)(4744005)(4326008)(82310400003)(26005)(426003)(356005)(336012)(1076003)(2616005)(6666004)(36756003)(508600001)(5660300002)(81166007)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2021 09:33:24.6540 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6deec22-10a2-4701-a155-08d98ef5aba2 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: DM6NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4592 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP 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: Thu, 14 Oct 2021 09:33:28 -0000 From: Zoran Zaric After enabling location description to be on a DWARF stack, it is now needed to check the frame context information validity when creating a register location description. gdb/ChangeLog: * dwarf2/expr.c (dwarf_expr_context::execute_stack_op): Add check_frame_info call for DW_OP_reg operations. --- gdb/dwarf2/expr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/dwarf2/expr.c b/gdb/dwarf2/expr.c index 5bec805a8fb..602a5186cfa 100644 --- a/gdb/dwarf2/expr.c +++ b/gdb/dwarf2/expr.c @@ -3270,6 +3270,7 @@ dwarf_expr_context::execute_stack_op (const gdb_byte *op_ptr, case DW_OP_reg31: case DW_OP_regx: { + ensure_have_frame (this->m_frame, "DW_OP_reg"); ULONGEST result; if (op == DW_OP_regx) -- 2.17.1