From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id A7C793858D1E for ; Tue, 31 Jan 2023 02:01:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A7C793858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca Received: from [10.0.0.11] (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 2414A1E0D3; Mon, 30 Jan 2023 21:01:19 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1675130479; bh=WZEp9y4p0A8dudyDsDbH65F6p1tCWW8RQFjPD6xc28A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VadrTfz9tyukw+pGe7AlObfAFvnhRQ82gXM0miKjWKmXAdwyXZQK9Mva9pyyC7rC4 wXrykJUr/RDbXdqHnvi5jtrWjn6S7o85aqYo3Ovn6fChbxa9/Mwwvbit86gqA9p1d6 RaCkKmDTJRtscCg7Qb0nLf6a0+KWMVjf782Uyfyc= Message-ID: Date: Mon, 30 Jan 2023 21:01:18 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [question] If the code format is wrong, the _initialize_xxx functions cannot be generated? Content-Language: en-US To: hilbert Cc: gdb@sourceware.org References: <6a6c1e38.1ced.1860075978e.Coremail.swdtian@163.com> <2c53edf.89cc.18601ccf519.Coremail.swdtian@163.com> <875a0ffb-929c-0323-3ec8-a260523b5fc5@simark.ca> <43ba228a.17f7.186058b9b59.Coremail.swdtian@163.com> From: Simon Marchi In-Reply-To: <43ba228a.17f7.186058b9b59.Coremail.swdtian@163.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS,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: On 1/30/23 20:58, hilbert via Gdb wrote: > Sorry, it was my mistake. > > I downloaded a custom cudagdb project which has .clang-format file inside. > So, which formatting tool do you need to use for the original GNU-GDB project? There is none, we format the code by hand. Many of us wish we could use a tool such as clang-format, but unfortunately it's not configurable enough (despite its many configuration options) to match our formatting and its many quirks. Simon