From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id E14433857C65 for ; Sun, 4 Oct 2020 16:18:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E14433857C65 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43262) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kP6iC-0004X6-8q; Sun, 04 Oct 2020 12:18:12 -0400 Received: from [176.228.60.248] (port=1533 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kP6iA-00043R-U6; Sun, 04 Oct 2020 12:18:12 -0400 Date: Sun, 04 Oct 2020 19:18:09 +0300 Message-Id: <83pn5ydkxq.fsf@gnu.org> From: Eli Zaretskii To: "Maciej W. Rozycki" Cc: gdb@sourceware.org In-Reply-To: (macro@linux-mips.org) Subject: Re: Running selftests in GDB References: <83h7rimej3.fsf@gnu.org> <83pn65lu67.fsf@gnu.org> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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 16:18:15 -0000 > Date: Sun, 4 Oct 2020 16:52:29 +0100 (BST) > From: "Maciej W. Rozycki" > cc: gdb@sourceware.org > > > 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? AFAIR, the object tree didn't change, but SELFTESTS_OBS don't appear in CONFIG_OBS. When you reconfigure, SELFTESTS_OBS gets added to CONFIG_OBS, but there's nothing to trigger init.c regeneration.