From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from orcam.me.uk (unknown [157.25.102.26]) by sourceware.org (Postfix) with ESMTP id 0E5663857C65 for ; Sun, 4 Oct 2020 15:52:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0E5663857C65 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-mips.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=macro@linux-mips.org Received: from bugs.linux-mips.org (eddie.linux-mips.org [IPv6:2a01:4f8:201:92aa::3]) by orcam.me.uk (Postfix) with ESMTPS id 4B9872BE086; Sun, 4 Oct 2020 16:52:30 +0100 (BST) Date: Sun, 4 Oct 2020 16:52:29 +0100 (BST) From: "Maciej W. Rozycki" To: Eli Zaretskii cc: gdb@sourceware.org Subject: Re: Running selftests in GDB In-Reply-To: <83pn65lu67.fsf@gnu.org> Message-ID: References: <83h7rimej3.fsf@gnu.org> <83pn65lu67.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, 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@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: , X-List-Received-Date: Sun, 04 Oct 2020 15:52:34 -0000 On Mon, 28 Sep 2020, Eli Zaretskii via Gdb wrote: > > By default, GDB built from a release tarball doesn't include the > > selftest. I've configured GDB with --enable-unit-tests, and then some > > selftests are available. But not all: a development version runs 63 > > unit tests, whereas the release version configured with unit tests > > runs only 24. > > > > How do I enable all the selftests that are available in the > > development build? > > Answering myself: after reconfiguring with --enable-unit-tests, one > should make sure gdb/init.c is regenerated. It looks like it won't be > regenerated, unless you touch one of the source files mentioned in > COMMON_SFILES by gdb/Makefile. It looks like a dependency needs to be added to gdb/Makefile.in for gdb/init.c on whatever is changed with `--enable-unit-tests' that affects the file; can you run a diff on the object tree configured with and without the option to figure out what has changed that affects gdb/init.c? Maciej