From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) by sourceware.org (Postfix) with ESMTPS id 4C0C63858CDB for ; Tue, 31 Jan 2023 02:10:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4C0C63858CDB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-f172.google.com with SMTP id h24so4055496qtr.0 for ; Mon, 30 Jan 2023 18:10:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5rWLN5Gxxn/ZZGbK7ZVLw06T6hV/Cw4nNl6f8+s7SEg=; b=TO4NjJEZ8DrP9DUKY568dqkI5El3RTmuE7OCcvwe0ohnM0O68GtmPtrBN2MZu+oY4M O+hbBZQoq+kd+VfEovdEIv9GSi8AQLiadQSnJHu3mFiSKVLNBebRi/AtzHVV7HFMQbJB zwLdCjAyfeRswkcbW/gyVdP9kGjzgf5yN55iOZaFOhSaUVrDaVL9iuqyrQhqqQkiAtpU bboe/Yo3BYq9PO87UYwIqLrA7kQmJCS6rfrtWMAUEkjhF12xKLjhtzU9l4zEmB0n5dHc axbmxm3pmqez44GuNQfDVvwdG4alNoJnL7rknijnM4gltExMsqX5Wth09hqR2/Q556hy Eg0Q== X-Gm-Message-State: AO0yUKUAfdx0zSytQhUr8th8av8TEYVHL6X8vmn7qb+zvIiLje6k4uG6 rtxj5hQiX7JkBROE+I3oNHtlzGM2rTU= X-Google-Smtp-Source: AK7set/vGncqanxt88+279n3HMjRlvIpY+0DEsRFVSUwhQ4E+N72TpMnep5/rvKno57cpUC4NJizzw== X-Received: by 2002:a05:622a:102:b0:3b6:46cf:7d06 with SMTP id u2-20020a05622a010200b003b646cf7d06mr16613826qtw.58.1675131040480; Mon, 30 Jan 2023 18:10:40 -0800 (PST) Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com. [209.85.219.175]) by smtp.gmail.com with ESMTPSA id l16-20020ac84cd0000000b003b630456b8fsm9038641qtv.89.2023.01.30.18.10.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 18:10:39 -0800 (PST) Received: by mail-yb1-f175.google.com with SMTP id u72so16423229ybi.7 for ; Mon, 30 Jan 2023 18:10:39 -0800 (PST) X-Received: by 2002:a25:7107:0:b0:7dc:55b:cc62 with SMTP id m7-20020a257107000000b007dc055bcc62mr6150896ybc.638.1675131039341; Mon, 30 Jan 2023 18:10:39 -0800 (PST) MIME-Version: 1.0 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: Reply-To: joel@rtems.org From: Joel Sherrill Date: Mon, 30 Jan 2023 20:10:27 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [question] If the code format is wrong, the _initialize_xxx functions cannot be generated? To: Simon Marchi Cc: hilbert , Eli Zaretskii via Gdb Content-Type: multipart/alternative; boundary="0000000000008d660205f385d656" X-Spam-Status: No, score=-3031.5 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000008d660205f385d656 Content-Type: text/plain; charset="UTF-8" On Mon, Jan 30, 2023, 8:01 PM Simon Marchi via Gdb wrote: > > > 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. > FWIW RTEMS also has its own formatting quirks and clang-format appears to be within one option for us now. One of our core folks was considering addressing that one. They get better and better so worth looking periodically. --joel > > Simon > --0000000000008d660205f385d656--