[PING] [PATCH v2] gdb: Catch exceptions if the source file is not found

Shahab Vahedi
2020-01-31T10:28:19Z

I have added the test in v2:
https://sourceware.org/ml/gdb-patches/2020-01/msg00815.html

as suggested here:
https://sourceware.org/ml/gdb-patches/2020-01/msg00678.html

Cheers,
Shahab
From gdb-patches-return-163676-listarch-gdb-patches=sources.redhat.com@sourceware.org Fri Jan 31 10:34:56 2020
Return-Path: <gdb-patches-return-163676-listarch-gdb-patches=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-patches@sources.redhat.com
Received: (qmail 99826 invoked by alias); 31 Jan 2020 10:34:55 -0000
Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-patches.sourceware.org>
List-Subscribe: <mailto:gdb-patches-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-patches/>
List-Post: <mailto:gdb-patches@sourceware.org>
List-Help: <mailto:gdb-patches-help@sourceware.org>, <http://sourceware.org/ml/#faqs>
Sender: gdb-patches-owner@sourceware.org
Delivered-To: mailing list gdb-patches@sourceware.org
Received: (qmail 99817 invoked by uid 89); 31 Jan 2020 10:34:55 -0000
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Spam-Relays-External:15.20.2665.23, H*RU:15.20.2665.23
X-HELO: smtprelay-out1.synopsys.com
Received: from smtprelay-out1.synopsys.com (HELO smtprelay-out1.synopsys.com) (149.117.87.133) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 31 Jan 2020 10:34:54 +0000
Received: from mailhost.synopsys.com (badc-mailhost2.synopsys.com [10.192.0.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 8C432C056D; Fri, 31 Jan 2020 10:34:52 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t\x1580466892; bh=JlOp23TCH46DPTY7FXumF25AEtO80p+9ejoDyPN4nn4=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=SFG5xP6TRsOG8gZJKTWZ+VS/btimRLAPwYPa/dxP4u2YTm0AgtTGSSFwbrXIdEmgq +qzAx7F76LeIpmv6nkaCqfjyIMovTji0Z1su1M66StU6gX7Q8Scvf3Sj6ogMjrySKa VfCFydst7IpT7zRdHuUZobKeXDNlybbTsprhGGmnaEbzVNSJLUatpk2YaAU1EpYDiJ eaSHul+CNFEfpQV/p9SpovS/++xUrXyN8NglhDwa3xzrFnAyismTbo6NVNbJWr7glM VJKqhaMF1MKcA9rD60djwuO1Ne0I3GRBXY2C7uoEqVQhDqQns3FiVpwdFAH9oG8WDx PxrijPUg5A3Ag=Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id 45281A006A; Fri, 31 Jan 2020 10:34:47 +0000 (UTC)
Received: from US01HYBRID2.internal.synopsys.com (10.15.246.24) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 31 Jan 2020 02:34:36 -0800
Received: from NAM02-SN1-obe.outbound.protection.outlook.com (10.202.3.67) by mrs.synopsys.com (10.15.246.24) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 31 Jan 2020 02:34:36 -0800
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NHmYzCkUaiuI4//CXvCQnWkr+lFfhoN9gqa4GtVzEW1XOEO8WUaE2jzJZr3ZwPtc8uBlcOfR0GqgierX8PNa7DBUj2pW1VLoIi6UsNlTqOjEt78eJ0fYyOI7ByepI9ZYUn5VvdlPUakWfeRxg2PMbMesA25dM16PMiKCiYsTaYzxPHyo1gT1UEC8v4Dt5Vl9avxopaQxRdMA3Id+irKim6Y79jwpRQNNf5CCYSOI3DcLpvcapFwXEbbMjZKvYquCd2p/mg88ZLNFyxWRHKo5vKlHijooNeUVPziawhds7z+eP2ytWcFLLHYizlgPzzQEIbWkcX65rL1EzCpi4bwwSQ=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-SenderADCheck; bh=JlOp23TCH46DPTY7FXumF25AEtO80p+9ejoDyPN4nn4=; büaa72l4TnnTDNxD6GGe+4ftmo3yHmxPeXyXSQJKtAVB/CrSWxTWNdUgsb2XmbnDLyov7QIRCuoLSV8EBNwCgeUPrsH+NRcIluAtesVBb015HEVmI6NvfDuT2WtGeogtSw/MHLJ9Xeu0qTiLDYnprVGHxgDEvW5FJ4bqpSUdxG6/5xWKm/qugN8loPgFdBs0087SmX0gqaWD2D689ZbgsVVaVEXMWjtb4W8pXbIws0jlWaRicUQRp6j8dimdNhNKiYLrAo0uOVORJkbStF1Cj80GHWxXUKSIMpNp0zi51/OLaIfHEm7NqE9AVOpzdxdOPlYbBA1vPiG/L6ODuMCQiA=ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synopsys.com; dmarc=pass action=none header.from=synopsys.com; dkim=pass header.d=synopsys.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synopsys.onmicrosoft.com; s=selector2-synopsys-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JlOp23TCH46DPTY7FXumF25AEtO80p+9ejoDyPN4nn4=; b=Tsnhy7Mlk+lcd6erlUknt7olXOSSfEhUy/02DIK87aE+uoBDC7kKuQqFqo44KlW9Q6vfVHewHrddQEAnuguSG4BkVx39Fh0+0LbJ+m1D/GP2nYs/3ue45vVLMRMZjt24sB1WdrnaFkdPHu2blhwgNjWN0Ytrp/ODUnPKsQe8IgwReceived: from CH2PR12MB3847.namprd12.prod.outlook.com (52.132.247.27) by CH2PR12MB4101.namprd12.prod.outlook.com (20.180.6.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.23; Fri, 31 Jan 2020 10:34:35 +0000
Received: from CH2PR12MB3847.namprd12.prod.outlook.com ([fe80::c820:fae4:7b47:1ecb]) by CH2PR12MB3847.namprd12.prod.outlook.com ([fe80::c820:fae4:7b47:1ecb%5]) with mapi id 15.20.2665.027; Fri, 31 Jan 2020 10:34:35 +0000
From: Shahab Vahedi <Shahab.Vahedi@synopsys.com>
To: Shahab Vahedi <shahab.vahedi@gmail.com>, "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
CC: Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>, Francois Bedard <Francois.Bedard@synopsys.com>, Andrew Burgess <andrew.burgess@embecosm.com>
Subject: [PING] [PATCH] Do not print empty-group regs when printing general ones
Date: Fri, 31 Jan 2020 10:38:00 -0000
Message-ID: <CH2PR12MB3847E492663E7997CFAB1741A6070@CH2PR12MB3847.namprd12.prod.outlook.com>
References: <20200120155315.30333-1-shahab.vahedi@gmail.com>
In-Reply-To: <20200120155315.30333-1-shahab.vahedi@gmail.com>
authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahab@synopsys.com;
x-ms-exchange-transport-forked: True
x-ms-oob-tlc-oobclassifiers: OLM:3044;
received-spf: None (protection.outlook.com: synopsys.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-messagedata: XXXN2+2xMjQGhk54INErcX4EeRCvNn2H8mAKOAB/XFaKGfHK6u6EzgZtlKWN74o9ktGQppNnHuEHdPeBPnBO2w+TL/VULgHcG8aSx233wdB/DSdEfSo/+QfAjECXIcOAw6+T16dULWQzD+xq10lxaQ=Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: MTnkKmZJLwHnwDLfya+EUtFyyWlq6Sm9J4XvCYp7U/gBK4RPQ8ew4d8UlZE4NVC7UXRe3DiVIQ/ja2U70pYUow=X-SW-Source: 2020-01/txt/msg00990.txt.bz2
Content-length: 147

This patch was reviewed once (as OK):
https://sourceware.org/ml/gdb-patches/2020-01/msg00613.html

Could someone review/merge it?

Cheers,
Shahab
From gdb-patches-return-163677-listarch-gdb-patches=sources.redhat.com@sourceware.org Fri Jan 31 10:38:28 2020
Return-Path: <gdb-patches-return-163677-listarch-gdb-patches=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-patches@sources.redhat.com
Received: (qmail 102224 invoked by alias); 31 Jan 2020 10:38:27 -0000
Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-patches.sourceware.org>
List-Subscribe: <mailto:gdb-patches-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-patches/>
List-Post: <mailto:gdb-patches@sourceware.org>
List-Help: <mailto:gdb-patches-help@sourceware.org>, <http://sourceware.org/ml/#faqs>
Sender: gdb-patches-owner@sourceware.org
Delivered-To: mailing list gdb-patches@sourceware.org
Received: (qmail 102216 invoked by uid 89); 31 Jan 2020 10:38:27 -0000
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 testsºYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:734, resulted, sk:tromey, sk:tromey@
X-HELO: rock.gnat.com
Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 31 Jan 2020 10:38:26 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id A5D4E117919; Fri, 31 Jan 2020 05:38:24 -0500 (EST)
Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id frMVBUmZ5Egp; Fri, 31 Jan 2020 05:38:24 -0500 (EST)
Received: from murgatroyd (unknown [109.236.135.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 2EE50117918; Fri, 31 Jan 2020 05:38:24 -0500 (EST)
From: Tom Tromey <tromey@adacore.com>
To: Tom Tromey <tromey@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Fix ravenscar-thread.c for multi-target
References: <20200123205909.30663-1-tromey@adacore.com>
Date: Fri, 31 Jan 2020 10:43:00 -0000
In-Reply-To: <20200123205909.30663-1-tromey@adacore.com> (Tom Tromey's message of "Thu, 23 Jan 2020 13:59:09 -0700")
Message-ID: <87pnezykpt.fsf@tromey.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SW-Source: 2020-01/txt/msg00991.txt.bz2
Content-length: 686

>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:

Tom> ravenscar-thread.c needed a change to adapt to multi-target:
Tom> ravenscar_thread_target::mourn_inferior called the mourn_inferior
Tom> method on the target beneat -- but when the target beneath was the
Tom> remote target, this resulted in the ravenscar target being deleted.

Tom> Switching the order of the calls to unpush_target and the beneath's
Tom> mourn_inferior fixes this problem.

Tom> gdb/ChangeLog
Tom> 2020-01-23 Tom Tromey <tromey@adacore.com>

Tom> * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
Tom> Call beneath target's mourn_inferior after unpushing.

I'm checking this in now.

Tom