From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by sourceware.org (Postfix) with ESMTPS id 345F63858D33 for ; Thu, 16 Feb 2023 11:01:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 345F63858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676545275; x=1708081275; h=from:to:subject:date:message-id:references:in-reply-to: mime-version:content-transfer-encoding; bh=7XN4IiSLqSAtZefZUerpdD2kFdMCP8cLwqUfZp+bZ6o=; b=eB1gaw5jO/5Zf43jXBTvG5kmPcxAGreFS1EYPzQcMYeF67knzV32aH6n omyp6aopJqkb+Ajz6LpLyDk68/kJGQaHR/sjfqQGoZKo4T3MVcSYbxX3j QFLaSEPzNGdLBu55vsKMydP1sED2l6WNgVKdB8+EMv/kdhcrSlXHCjTeX 5yU9YufnT/FCjene8mFSWlrV46VyUY1py+XoMLeOhhlq3ANa36aiICnTu wvJGWfddilE3LiUULfh3DJb2fnlEF9lYgF36Xbx7sgUzMy8CNeMMl6WqP tC9Ojc80pxXYAwfxSQ0Vl+O0sWuhVj4b800Aj8F6qfeVt72UquPBD8Mvy w==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="315366419" X-IronPort-AV: E=Sophos;i="5.97,302,1669104000"; d="scan'208";a="315366419" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 03:01:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="702516439" X-IronPort-AV: E=Sophos;i="5.97,302,1669104000"; d="scan'208";a="702516439" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga001.jf.intel.com with ESMTP; 16 Feb 2023 03:01:13 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 16 Feb 2023 03:01:13 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 16 Feb 2023 03:01:13 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Thu, 16 Feb 2023 03:01:13 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Thu, 16 Feb 2023 03:01:13 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NAQUQ6kWBvvhoYUTxFLwviMOa3Xauv/eab9MqQJP2koFtpZgthzMydvibW+TBt+P7xZyLD/Md2bXHScbwAdgd/VHs4U/dODwgzDwIGfrgw/g/F9MTGqbn+wrP3U9aCXUk2ct4YDOp1GxQ50vs5x2vBT1ZVaqRJ3qhWgf1AZ56ettLxpeuQffFSHHR8eBcc0ljwQVah7KHqLrM85U+Zkm/1rQ8Zy3tyBuiDvxe1CSnJcB27c5OQDgFwY/TBs9p9lW7+xbT9FR8zaK3Ti67yhbB5LoTGYTSlkQTp626ktq9dRmcxgdKYjDzUrlONdO0ZRe8ESbi34hcvwMoYdWY02x9g== 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=eJnTLH9arMVRwnYgtNMWGUZFu88W5Pv8aDfXOnYrBBA=; b=ZAk7VNZ/1GAV46vbTMz7V1PKJHOhSSqjPQ8VX49rtj8VWD7vRGcOPgP0Hwm57AbUkKw1GOohJ3ku9e9TjGIfgwoqBhC0OJMeqNkS5ZXck/nhTCGDt2Wbko0FTV7D9zVo0HU6dw3TsfeTOfqUEcM8rfS3k1yej5EwuVyV55m1m5pI6X+hUTUnyFydCDpBFxTnIO4AFk/xT4FgE+/aAPzjbCJjsIFHyy46xAB455rRpdYzN7pe/b2tEnz3q5eAXRXX5VSISa5DsOckFc2Ap7XM0+3X/EIr/cslB/ESsLKCPnaMZ2FqBaaeKeiNWFhv6G6kWI2jMAZ4zkOCQko27Nwh+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM4PR11MB7303.namprd11.prod.outlook.com (2603:10b6:8:108::21) by DS7PR11MB7783.namprd11.prod.outlook.com (2603:10b6:8:e1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.13; Thu, 16 Feb 2023 11:01:11 +0000 Received: from DM4PR11MB7303.namprd11.prod.outlook.com ([fe80::dec6:d57d:f767:c5f2]) by DM4PR11MB7303.namprd11.prod.outlook.com ([fe80::dec6:d57d:f767:c5f2%4]) with mapi id 15.20.6111.013; Thu, 16 Feb 2023 11:01:11 +0000 From: "Aktemur, Tankut Baris" To: Andrew Burgess , "gdb-patches@sourceware.org" Subject: RE: [PATCHv3 12/13] gdb: introduce unwind-on-timeout setting Thread-Topic: [PATCHv3 12/13] gdb: introduce unwind-on-timeout setting Thread-Index: AQHZNZyOExcxgpSlPEiv0/dAgJd4bK7RgENA Date: Thu, 16 Feb 2023 11:01:11 +0000 Message-ID: References: <4550bcb939249fa7618b80ed872dccdf51fa6f25.1675185990.git.aburgess@redhat.com> In-Reply-To: <4550bcb939249fa7618b80ed872dccdf51fa6f25.1675185990.git.aburgess@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB7303:EE_|DS7PR11MB7783:EE_ x-ms-office365-filtering-correlation-id: 918aa2dc-536e-476c-1f34-08db100d1d55 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IkHHl5xDnWqeReepmGFMxOb4xl40teU9YpzAxl7ZBTAlJemuG3UnqPtzxN2724OZWjLQ99Bq7FVu+ichhPqljgctEP4GQkw9DCShIVXtvaYC+r4oJVfODzYpWzK/LfjTpUz4eyUWIr78HTTCQD+T4QhFYwyXbAnn86Od+I/gLe8IMAncj3IXLbOv124HWyCOECOiLvh6TQ5wguQbigeVYjHOXvLafRnZIa1qnO5d0SlruhXrRAW/KySYaBiBfcbCpQeJGOyILMa00wvVRnvsTZLFvek19vuS01/z9j3lgEjAXpHll8GwcAofuVWFmonfZ8it4nSbswbCIrAVsBMs+rjHOTa/X/+ae9mmrg33X87T5i85vFdWzrLG7W3EyDHyEWFFHzBKgWxSAEg2QmDjFTOAr//7pidiGh49h3e7fEtUzbcHZAfKkqxcKs9g+0Ilc9QeaTxNfORpQ1J+y+K02lwgDIvPFc15LC2ivcWgwLkAczZSB3r44Z9zhHmZn9ah5Q7jQ9xmdHHlNGhK3TznxrQfDJLUifY90DA+8vyWzxARxv122J/V0RbjvYtoPTP4ft/bW/QnhI55Nf16SjyyoTMPivQCnCyI58pFf7rzb9DNChXyGJP0HdcMuoG/pmzWULgl70fi0wWgehH48XJWrtM+fuZuCihfmhSDEgFJ6Q6jcJq4L9io8W3bdWE2DcNEj6xcCPlMK18kC4sjRwG2nw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB7303.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(396003)(39860400002)(346002)(376002)(136003)(366004)(451199018)(76116006)(66556008)(41300700001)(64756008)(8676002)(66946007)(66476007)(66446008)(33656002)(316002)(52536014)(55016003)(86362001)(110136005)(478600001)(8936002)(5660300002)(38070700005)(38100700002)(122000001)(82960400001)(71200400001)(7696005)(83380400001)(26005)(9686003)(53546011)(186003)(6506007)(2906002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jWxPOymawIVkz2XEyO47uyLLTpk2ZViu0EwIvT9BfUuXi6zcC0ID1F8ZMVBX?= =?us-ascii?Q?0BQ3S85Vz4WifWUpqxXr77TFqeltjZukc++uthvqQeLYBWNe5qqoyj/8P8hu?= =?us-ascii?Q?4+lXJivkD2W4ZKVxW51DYGakgEJO6KITppi9ktmnIINVgxUDHZPB0nnFf4v9?= =?us-ascii?Q?Ucuj8je7ZnCfRC5xChkcxeVRghnXRExi4wxaglN+Q7YV8kUNJJDQIuDF2gHR?= =?us-ascii?Q?7LqIa64p0C/Og+qZIjfIcrDA1xx4d9CohanzNMsnkNKDx0+inOi3tTGiCj0i?= =?us-ascii?Q?/bvrZ/KXeMIbSJnKNpw/j+CXgWg2XTs8EfkNa8pluOUp/JolTjfEHCbGt3bc?= =?us-ascii?Q?tNFK/Jc+eaYctjmK4LotQxb4RJLCWnw6nCRGLYa1Li9aPp4LN3+K05Z1j9hc?= =?us-ascii?Q?ze/5f34MvA19a1We9+J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us-ascii?Q?PjRgq7GLab/4HzTE4Vt0meCGfz8LFJuFi8P/Rnu2IoyA6wJJHC+HOHftbY6H?= =?us-ascii?Q?qWOMQyfcTLK9mknRfNYT+NP2M0GHHvyJdJOR6DmMtIzR0pdRa79HPnCnC3PW?= =?us-ascii?Q?tVskuf0A/GFZx0z3iaQIybF3819JEvXoAVCcLbZb2KcElP9Kzcgo0wwZ/u7v?= =?us-ascii?Q?+jZSxAhSyFDV7ZVo+9IK94oNSbHJDmJBgEBW7bvAI9KmxugKqS2dtCmDRaWx?= =?us-ascii?Q?SvTfiXFFRNLn2tzoewQN/+Jl/NnKAGO4u4H4Zgs7ObpifuT+givTMHyyrMXd?= =?us-ascii?Q?Gg=3D=3D?= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB7303.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 918aa2dc-536e-476c-1f34-08db100d1d55 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Feb 2023 11:01:11.5325 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3uv/i1hDQFKKvJjqxoC2WTqMh7rFSv1hFuVFw7rbCJeAs26gYZgoT1vLgM46GPdEyLFHCrCoTj+8LTBCSf+xIeNof8Ek7mcPC5UwuOUho8I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB7783 X-OriginatorOrg: intel.com Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tuesday, January 31, 2023 6:27 PM, Andrew Burgess wrote: > Now that inferior function calls can timeout (see the recent > introduction of direct-call-timeout and indirect-call-timeout), this > commit adds a new setting unwind-on-timeout. > = > This new setting is just like the existing unwindonsignal and > unwind-on-terminating-exception, but the new setting will cause GDB to > unwind the stack if an inferior function call times out. > = > The existing inferior function call timeout tests have been updated to > cover the new setting. > --- > gdb/NEWS | 9 +++ > gdb/doc/gdb.texinfo | 33 +++++++--- > gdb/infcall.c | 62 ++++++++++++++++--- > gdb/testsuite/gdb.base/infcall-timeout.exp | 49 +++++++++++---- > .../infcall-from-bp-cond-timeout.exp | 55 +++++++++++----- > 5 files changed, 164 insertions(+), 44 deletions(-) > = ... > diff --git a/gdb/infcall.c b/gdb/infcall.c > index 92f49a64e3e..20d63ba4627 100644 > --- a/gdb/infcall.c > +++ b/gdb/infcall.c > @@ -217,6 +217,27 @@ show_unwind_on_terminating_exception_p (struct ui_fi= le *file, int > from_tty, > value); > } > = > +/* This boolean tells GDB what to do if an inferior function, called from > + GDB, times out. If true GDB unwinds the stack and restores the conte= xt Nit: comma after "If true". > + to what it was before the call. When false GDB leaves the thread as = it Nit: comma after "When false". > + is at the point of the timeout. > + > + The default is to stop in the frame where the time out occurred. */ "time out" -> "timeout". Regards, -Baris Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva = Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928