From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2090.outbound.protection.outlook.com [40.92.90.90]) by sourceware.org (Postfix) with ESMTPS id D1D96385B831 for ; Mon, 6 Apr 2020 03:27:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D1D96385B831 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=hotmail.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bernd.edlinger@hotmail.de ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fUaO5hbp74chBy4KP1kApoNbzpQy6YxHDeDtElunktBkDJ/X3+dSzCAvAPk8BUe+GhTXFfNqKRe90eo95rxax24dg4JM7m9CgYyaD343jn+vih5RjU3eaKIwNDEMHQ5CqS1lET7L0AJucfptuVHwrRSkxil+fZ9LXxjGMce8LvhNXoBWH4bk3s8XfjNEuzErFYt2Yid9oiaNzh2uNnK/sbzLBGtUGUyXt0s1ty256rB9+4ElMH+aJq+ANqzCUdKdevwxzvRQ7ZGP+CzqGjC+2b+Ij6K+RxZAkpGwbOyZYhpgt+izpUbkOEkKSlMWZu6nICH7VRjdQnZuGH9nuifcsQ== 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=NUqFXjTek28PpoScXXChsFfKjQrTqppO4Hf9kLZOfe4=; b=b4EkkmMGAMAhnRJWXq++b1KAhx0OyRDSWLQChE3KJqaa4u58oTWhlRhs/4+p53rIaeAQWcFehSMBy6dqgz8J7H3ghYv09LsmMwv74Vc9QpsDAyAG8MROOVbzyxtVXLssUcMl+MBncrm+YpFavIvZGx1r7lgmLx5lDhhm3vo1cTxgffN1VSpsJWLFTRaUjkFKzmOfxXUE0M44PC70ixxy3TugtDyGRapj8xvWjYlaL2bGMq9BNYqkUJYtgaXDRr87CKeZN6s9rNnespcPNXGkZ+tftfXmgn0sqzZMFtuNmoxJ8nG4PrsFwTe62awXj373pHtHtdoy9c/RgpXNrgKW5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hotmail.de; dmarc=pass action=none header.from=hotmail.de; dkim=pass header.d=hotmail.de; arc=none Received: from VI1EUR05FT022.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::43) by VI1EUR05HT203.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15; Mon, 6 Apr 2020 03:27:11 +0000 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com (2a01:111:e400:fc12::53) by VI1EUR05FT022.mail.protection.outlook.com (2a01:111:e400:fc12::130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15 via Frontend Transport; Mon, 6 Apr 2020 03:27:11 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:37D3B1456B1D2CDCEBB4505D7B15FA8DE1F3F395AB2697B0ABFA935C2638BE2E; UpperCasedChecksum:A21616C41A65ECA185DD161F9AE5077DABB3D05B2C10BC30464078627833A788; SizeAsReceived:7965; Count:50 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::d57:5853:a396:969d]) by AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::d57:5853:a396:969d%7]) with mapi id 15.20.2878.018; Mon, 6 Apr 2020 03:27:11 +0000 Subject: Re: static linking of gdb To: Eli Zaretskii Cc: gdb-patches@sourceware.org, Tom Tromey References: <837dyut6kx.fsf@gnu.org> From: Bernd Edlinger Message-ID: Date: Mon, 6 Apr 2020 05:27:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 In-Reply-To: <837dyut6kx.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR05CA0009.eurprd05.prod.outlook.com (2603:10a6:208:55::22) To AM6PR03MB5170.eurprd03.prod.outlook.com (2603:10a6:20b:ca::23) X-Microsoft-Original-Message-ID: <4bb994d7-d209-343f-d355-a189101fb2a8@hotmail.de> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.101] (92.77.140.102) by AM0PR05CA0009.eurprd05.prod.outlook.com (2603:10a6:208:55::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19 via Frontend Transport; Mon, 6 Apr 2020 03:27:10 +0000 X-Microsoft-Original-Message-ID: <4bb994d7-d209-343f-d355-a189101fb2a8@hotmail.de> X-TMN: [xu7N7Ge9ohPKBAf86iCAwwO4tVxlwemE] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 50 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: c258d912-1368-4fb8-7c12-08d7d9da6471 X-MS-TrafficTypeDiagnostic: VI1EUR05HT203: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1FpgjGy1Ifji/GPegLwA5wMC9ujMXWqNM+NfuCgSlZKjMRFxcsmydloWlL0bXy10w4cgB+bcBtbQD7UAxRce0ZpAdtRJvJE/mTKoN3rpWvbAJ6FvLtauT4x/Y9A3nDzahFSVUwc6hA0OoMgtMiLgL6VUwZ5cWHLUi1eG0VnPSWph5x0Xwu4j94qr+/H3p655WdVws28v3RejCKoY5BXANtwR4DDO8IRWf9TI/uEmeyw= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR03MB5170.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; X-MS-Exchange-AntiSpam-MessageData: eFTEIQ6nxxzSrwc+7dONPdRe250YWPPQmseJbDhEv/KqOfMfHQb+iQDylIFpW6MfJnyibD+dP1K9+f//4lo6QpfCp/OrWnKTNVUmgXM6tVkggH+ZEu12Sl6GN3w3X0t8mkTleB9abBdbk7C9OdWnaQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c258d912-1368-4fb8-7c12-08d7d9da6471 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2020 03:27:11.0629 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR05HT203 X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00, FORGED_MUA_MOZILLA, FREEMAIL_FROM, KAM_DMARC_STATUS, KAM_SHORT, MSGID_FROM_MTA_HEADER, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Mon, 06 Apr 2020 03:27:15 -0000 On 4/5/20 3:17 PM, Eli Zaretskii wrote: >> From: Bernd Edlinger >> Date: Sun, 5 Apr 2020 12:13:42 +0200 >> >> I noticed that gdb is currently not >> linking libstdc++ statically, as it did >> in the past if I remember correclty. > > You need to request that by passing --with-static-standard-libraries > to the configure script. Note that if you do that, you may encounter > an error at configure time, because the configure script thinks the > above option is incompatible with source-highlight library (without > checking whether a static version of that library is available). This > was reported here: > > https://sourceware.org/pipermail/gdb-patches/2020-February/165843.html > > but AFAIK was not fixed yet. > But when I follow this pointer, I end up here: https://gcc.gnu.org/legacy-ml/gcc-patches/2019-08/msg00287.html > gdb should normally not be linked with -static-libstdc++. Currently > this has not caused problems, but it's incompatible with catching an > exception thrown from a shared library -- and a subsequent patch > changes gdb to do just this. Now this makes me a bit nervios. Tom can you explain where this might happen? In general I don't think that throwing and catching exceptions makes a good design, please dont take that personally, but throwing exceptions of a shared library looks like hazard to me. Thanks Bernd.