From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) by sourceware.org (Postfix) with ESMTPS id 2EC3D383FE3E for ; Mon, 20 Feb 2023 14:14:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2EC3D383FE3E Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=gdcproject.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gdcproject.org Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4PL4DV4wpfz9sTs; Mon, 20 Feb 2023 15:14:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gdcproject.org; s=MBO0001; t=1676902474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mtq0Jdhpiq+J7MeQx4ikrRbwsBUuKpTRDfQzWuDc41Q=; b=a8+ThW7yHxsPq+4D00TmkdsdRpSuWxWo8jd7EGyc1LuXE9c/DMFdNzK+DiTqekAGW8zFl5 9GLuHC/wm34KMoVbuxCjWV3lpLPQLif0FMs/o0mBu2O4wJpnxm/3wJGeyW3HNANXtue4ax Cm4dytKjklmRNrQBZS3ddcufN50Gc5KpQwKieOQTlB+rdTtqM95sDIMoBxfA1h6ngmRdHv xj2PDdvXVQ/QXZI/TE5DLLqe6CtcCmpyJrieBsFR0F5NNA5UX2sHlw0uV/xQ8K+jbFSOMw M3JVE1p/77wjyAdIc4t8qVi9rKlK+IpgMqM2YBJo5E7fU8sw1bj0Wkx77XKOzA== Date: Mon, 20 Feb 2023 15:14:31 +0100 From: Iain Buclaw Subject: Re: [RFC] [gdb/testsuite] Use dwarf assembly in gdb.dlang/dlang-start.exp To: gdb-patches@sourceware.org, Tom de Vries Cc: Tom Tromey References: <20230220134839.1944-1-tdevries@suse.de> In-Reply-To: <20230220134839.1944-1-tdevries@suse.de> MIME-Version: 1.0 Message-Id: <1676902127.35r1n62kps.astroid@pulse.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,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: Excerpts from Tom de Vries via Gdb-patches's message of Februar 20, 2023 2:= 48 pm: > For test-case gdb.dlang/dlang-start.exp, I run into: > ... > gdb compile failed, default_target_compile: Can't find gdc. > ... >=20 > AFAICT, my distro has no support for gdc, but I'd like to have the test-c= ase > running and passing, so let's rewrite the test-case using dwarf assembly > (though arguably, it's not a bad idea to have test-cases excercising > actual compilers). >=20 > My distro does have a package providing dmd, so let's try out simple.d > compiled with dmd, and investigate what the start command does. >=20 I'm pretty sure I'd get testsuite failures for not having Ada or Rust installed either. Shouldn't the testsuite just return UNSUPPORTED when there's a missing dependency? > AFAICT, gdb uses "D main" because the minimal symbol _Dmain: > ... > $ nm simple | grep 438448 > 0000000000438448 t > 0000000000438448 W _Dmain > ... > is demangled into "D main": > ... Yes. If I try to second guess my thinking from 2016 or so. I believe it was because "_Dmain" could come from any language, but having a space in the identifier pretty much guarantees only a D compiler generated it. Iain.