Message ID | ZqtSgzKxKeAkaCsf@arm.com |
---|---|
State | Committed |
Commit | f01df5e47b2551e0f435a9efa8e0a30142f3d46b |
Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 434213858289 for <patchwork@sourceware.org>; Thu, 1 Aug 2024 09:18:18 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2060c.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::60c]) by sourceware.org (Postfix) with ESMTPS id 8CB5A3857000 for <gcc-patches@gcc.gnu.org>; Thu, 1 Aug 2024 09:17:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8CB5A3857000 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8CB5A3857000 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::60c ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1722503839; cv=pass; b=LqCoUXtcsSSM+ndOQ/cuFCH5cKiSxtVb5wc9qthUI7fOg3/iGYkIU1RMEVlDIbtUdtUakowLhsHcQpwuNCt9meEQzb77RtvWPhrvS9sbsXO8YxwMbfZzwIUkza6dkX8cauNV82DIH2jWuRWJp7bDJV1WO1bsUks+6AB3fTBDJvs= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1722503839; c=relaxed/simple; bh=dp/hxDOk/V5jgm0w/H2y385SDV06/mXqcio74Hpnh6E=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=V6Dgh2HvK0qCTcGRvj0Ot+GIOEMqEBfJbDSeIqXn6XHsiHWCpYCAeDi18z43hGoHazPoXzXPAhTqvzpg66HLrsBD9Z12s0K2FttpzmGJlTf7OENwcih+LXfcqhgh1vDnWTv863e87MN22Ftv66z1L3M2IWyMpEphg44v2JNSOiA= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=XnQ2r+IiKE5QejBx+K6xZygvtzhg47FnrKlb7adedYv5iigQ7vrTO6g391Cwp/pxBhRZC5x6eqF8lpa3uTdaEfVmeQ/vsyBuzaypRPlv1+0Qq7Eu2xSu1+wzZCZZdFqeYrb8C3iIedhmWg414CGn7k++M3r8e/VADb/zhWhbAC99ptDMLBuBp6WkP1pOe3Nx8pqRBPLKihBOt283Gqa6KENZDoNLVwp9SfuTYvoMFAAgSBtWDvCTba2/Le1s+/ALjtt9FhbBOOnT7aOG0l+B5bsMBgk8sfokzxuqLUmTEMJLkBVlU8/MVfOmH6m7mQeeTZs8LjzIQyFj8vuowm3nrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=TBSo1KoDET3EVqVQxaDYV8FerRQlaUc7zocJMu+hp64=; b=mHQINA/VJGUs2Arz4GM5rZ8kWXJiMwc7yiGZU5yrXjV9n2GkPWccRLDqwH5UfFrGNwmO7NvPGa6kz2eToUANyBdrWx4l+5b0WMBRFatDK+XXpSQfdt3mHCDp76sFZQZE8j2HU1hBEx+2d0A45sHAyVbfAJn5r+zNJOzhxi6/WFJ2/iiei93q86qMPfFi06tYQiX6lRwv3Gltx5yyxYX/SCtJoGNNIVQP2BQWvlzGm7vHfmQeRo77Yz1DaQfaCpNGZT0VexGr0c1Q+VInUvnEYw2vyBVNP7bLufk+3bsF3kfhZ7njCNvMRktmHB4uqonbqMDqfON3BWpFxyxBBica+A== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TBSo1KoDET3EVqVQxaDYV8FerRQlaUc7zocJMu+hp64=; b=Eoueg+C0EcNkSeZgeG1PC/l98z3AtImtDF2p0bGV8OezF8MOtexqAImSUhghLq8a2NTjRJgT8yrzeqNq5CphuPy6jBVJ72g9HcUvKhJZ1WllGHtaMyBD+2n4bLdcksml1MdviHX2RPq7TbG4VIJoZXfs5sjsN8PLFl5TAKK+DJ8= Received: from DU6P191CA0034.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:53f::6) by AS8PR08MB8993.eurprd08.prod.outlook.com (2603:10a6:20b:5b4::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Thu, 1 Aug 2024 09:17:11 +0000 Received: from DB5PEPF00014B99.eurprd02.prod.outlook.com (2603:10a6:10:53f:cafe::5b) by DU6P191CA0034.outlook.office365.com (2603:10a6:10:53f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.22 via Frontend Transport; Thu, 1 Aug 2024 09:17:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5PEPF00014B99.mail.protection.outlook.com (10.167.8.166) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7828.19 via Frontend Transport; Thu, 1 Aug 2024 09:17:11 +0000 Received: ("Tessian outbound 64d41e6a4c04:v365"); Thu, 01 Aug 2024 09:17:11 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 784beea2d6708f3c X-CR-MTA-TID: 64aa7808 Received: from L97610b3b7ddd.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C5D8592D-6B19-45FD-BFFF-8767F493B363.1; Thu, 01 Aug 2024 09:17:03 +0000 Received: from EUR02-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L97610b3b7ddd.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 01 Aug 2024 09:17:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rjLpYHjm4kN4xU9jdVaVxbLm76qM2XEsn2rfjkMYFX0j8ZPyFZb1hLpcFhkoiSfDNLmsLYk7T7hpDcAnaL7oyWKmWdt0fbWeMSx/7gcolMRSyHZ3bxoOVLY0tvgZnGLKU9LaGmxfPdA0Xh9WVcmw/OqdEwCC1EvN96r0kDQvGEp3+oSQCwUKDpgl9onuqF7NLH0Pxd0y20o1J99OLIrVRJzahsDS/Qpkwwcw4Y6u18FkVrjJCLvOpNOaP1ZFVmlnLI9g6hf9vEJoLONP4GhbWU/VzypjvewK0Wap/7DV6VuiOPLElkpCUXcL6yAr/4Ly0IWJrQbJR86nCqyDdX1dBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=TBSo1KoDET3EVqVQxaDYV8FerRQlaUc7zocJMu+hp64=; b=URSzCpP4MeuSsHkLk+g0sH/OzABPYRw75aXNVs1bToMqsZnEYVJSGuV9R2xU4mTb3Jvit/pKcM4xa0gaZFmDEPr2kROOlgYGfbvIYbJnXXvihuX6q7b5zjtO/ZoKa5V2iJUVDsw0Zh18NnW9aKx8QHv6RhcGWVAflKYsy8oOM9Rt6zq2ERysSuEs4quFcESpkrpoO+goCQiLa8C1/haKHnMs8wI0Ogz1QE75XDESEH6KQUyoNIgSqFpCXrnQ+SqMLQMD2LG1VjPUmiYsXEGmZIIkd2F5ndwyTjKCzNh00wQS+qJ9iX4CYQx64dfV7HHC1dKX/MXFT3zPP6b514CmMA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TBSo1KoDET3EVqVQxaDYV8FerRQlaUc7zocJMu+hp64=; b=Eoueg+C0EcNkSeZgeG1PC/l98z3AtImtDF2p0bGV8OezF8MOtexqAImSUhghLq8a2NTjRJgT8yrzeqNq5CphuPy6jBVJ72g9HcUvKhJZ1WllGHtaMyBD+2n4bLdcksml1MdviHX2RPq7TbG4VIJoZXfs5sjsN8PLFl5TAKK+DJ8= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from PAWPR08MB8958.eurprd08.prod.outlook.com (2603:10a6:102:33e::15) by DB9PR08MB7512.eurprd08.prod.outlook.com (2603:10a6:10:303::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.22; Thu, 1 Aug 2024 09:16:54 +0000 Received: from PAWPR08MB8958.eurprd08.prod.outlook.com ([fe80::9f32:dc2a:5bec:aeac]) by PAWPR08MB8958.eurprd08.prod.outlook.com ([fe80::9f32:dc2a:5bec:aeac%4]) with mapi id 15.20.7807.026; Thu, 1 Aug 2024 09:16:54 +0000 Date: Thu, 1 Aug 2024 10:16:51 +0100 From: Alex Coplan <alex.coplan@arm.com> To: gcc-patches@gcc.gnu.org Cc: David Malcolm <dmalcolm@redhat.com>, Richard Biener <rguenther@suse.de> Subject: [PATCH 2/2] gdbhooks: Add attempt to invoke on-gcc-hooks-load Message-ID: <ZqtSgzKxKeAkaCsf@arm.com> Content-Type: multipart/mixed; boundary="NdUxE958PtGyrgl4" Content-Disposition: inline X-ClientProxiedBy: LO4P123CA0538.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:319::8) To PAWPR08MB8958.eurprd08.prod.outlook.com (2603:10a6:102:33e::15) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: PAWPR08MB8958:EE_|DB9PR08MB7512:EE_|DB5PEPF00014B99:EE_|AS8PR08MB8993:EE_ X-MS-Office365-Filtering-Correlation-Id: 7620eb68-f1b6-4882-d2b1-08dcb20ab9bc x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info-Original: 7HOuXNXTiF4mRS3TCXRBf3aQ4H+4gLF5+T6TKWLFcwLwh7pIYVs0NdzOS/ikuamc6rkdp9XA7pCcpECFT9uIUyH95YQAsuVKkwnP9ZXkAuvnA9mZhhR6+VVKUMQalVjPt4ueOU/TeOOC/0uLaYavo/Zm+U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cUVGCl/tumfz6MIQlhtICc+lqlUBmdhm25QMVCRMlxHjJ27yJDLdPglscN9I1L+ktpTCatvtR0kG1AYxIEpacOeAkYRROZUlfeHLfpshdIsBF4uBdB/plDiI5QWaA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAWPR08MB8958.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB7512 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:102:33e::15]; domain=PAWPR08MB8958.eurprd08.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B99.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f896764d-5410-48df-d4ff-08dcb20aaf38 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|35042699022|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?z+vc4RPN0rYMl7JKw83p1BbLvZSUcbB?= =?utf-8?q?+/7NG3fDTXnx5mrd/Nkr6Wp3US3OCXf+6lT0fJ6cmyRU/FfKbAGOcoqmfptHXAxs5?= =?utf-8?q?bhBF+12lQkbs0fbsLPR191fOJqJnRYUxjtRpDVu2ejX7MqUoM1VZo+VYoU/mEcTZQ?= =?utf-8?q?uHjvqKZGKF/KgyDAz7WU2ljfmRynpLy2RQ4+MIKLwpusxf5rxdiKZ06cQL3iXxboA?= =?utf-8?q?Kv5XvOC9n8D5gE2rzWiIuAoXryGE4QXiC9iyn1UZ1lJteJkLeZucZrpgWL5PXGBjY?= =?utf-8?q?3KOfpAP13UGLOLKlOYTeJZChqnp/qvgcis3xMDkPKPgP0LG1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w?= =?utf-8?q?xYGn9UoxGDDJdtV7RgbM++lBRQoysUo6Uq3h6M440BXxamfOdOjVkbMqx4/1qGZJV?= =?utf-8?q?sWExRtT1KqXD6cRAxYCckFLQtfPVLQTY2F6cpluhqDbC3Y7tN9cIjXrPKwDSGjWSd?= =?utf-8?q?8a3fJYinnRoqoJWkCmjsCReutis5AjNPHRBj7vOFeumDdWJONn8t1xz3X+YI8Dm8u?= =?utf-8?q?tWF9Ftxyn+m?= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230040)(376014)(1800799024)(35042699022)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 09:17:11.5188 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7620eb68-f1b6-4882-d2b1-08dcb20ab9bc X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B99.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8993 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
Series |
[1/2] gdbhooks: Make dot viewer configurable
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 | success | Build passed |
linaro-tcwg-bot/tcwg_gcc_build--master-arm | success | Build passed |
Commit Message
Alex Coplan
Aug. 1, 2024, 9:16 a.m. UTC
This extends GCC's GDB hooks to attempt invoking the user-defined command "on-gcc-hooks-load". The idea is that users can define the command in their .gdbinit to override the default values of parameters defined by GCC's GDB extensions. For example, together with the previous patch, I can add the following fragment to my .gdbinit: define on-gcc-hooks-load set gcc-dot-cmd xdot end which means, once the GCC extensions get loaded, whenever I invoke dot-fn then the graph will be rendered using xdot. The try/except should make this patch a no-op for users that don't currently define this command. I looked for a way to test explicitly for whether a GDB command exists but didn't find one. This is needed because the user's .gdbinit is sourced before GCC's GDB extensions are loaded, and GCC-specific parameters can't be configured before they are defined. As an alternative (to avoid having the callback), I considered having the user define a convenience variable with a well-known name and using that (if defined) in gdbhooks.py to set the default value for gcc-dot-cmd. But that seemed like a hack. I'd be interested to hear from any GDB experts if there's a better way of managing configuration like this. Tested by invoking dot-fn with/without the above fragment in my .gdbinit and observing the change in dot renderer. OK to install? Thanks, Alex gcc/ChangeLog: * gdbhooks.py: Add attempted call to "on-gcc-hooks-load" once we've finished loading the hooks.
diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py index db8ce0d071b..7a64c03b8ac 100644 --- a/gcc/gdbhooks.py +++ b/gcc/gdbhooks.py @@ -865,4 +865,12 @@ class DotFn(gdb.Command): DotFn() +# Try and invoke the user-defined command "on-gcc-hooks-load". Doing +# this allows users to customize the GCC extensions once they've been +# loaded by defining the hook in their .gdbinit. +try: + gdb.execute('on-gcc-hooks-load') +except gdb.error: + pass + print('Successfully loaded GDB hooks for GCC')