From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id DnMEKYp22GPG1iUAWB0awg (envelope-from ) for ; Mon, 30 Jan 2023 21:01:46 -0500 Received: by simark.ca (Postfix, from userid 112) id 9BB2D1E15D; Mon, 30 Jan 2023 21:01:46 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=K3PhPOhq; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 546171E124 for ; Mon, 30 Jan 2023 21:01:46 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F201E3858409 for ; Tue, 31 Jan 2023 02:01:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F201E3858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675130506; bh=Bq8c7SDZCxOx1cWekr9WLTNHZHlt2CTdtc2+euMPJC8=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=K3PhPOhqdeBV+wUKJ5B4JB38WLK7VTIz5rIPzWCP+kKM4/Nitd34zz+fOxUMnCVIl PNGTPB/16b8NpuVc59KCVV0o/PFd57gj1NTWZ9DFwc9WZhFL4RENt1ULAAB8zJUq3H nuyK7zFofhoRLDvikyTicsC17OY5Kkx2ho2iHfk8= 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 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) 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> In-Reply-To: <43ba228a.17f7.186058b9b59.Coremail.swdtian@163.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb Reply-To: Simon Marchi Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" 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