public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@linux-mips.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb@sourceware.org
Subject: Re: Running selftests in GDB
Date: Sun, 4 Oct 2020 16:52:29 +0100 (BST)	[thread overview]
Message-ID: <alpine.LFD.2.21.2010041648350.333514@eddie.linux-mips.org> (raw)
In-Reply-To: <83pn65lu67.fsf@gnu.org>

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

  reply	other threads:[~2020-10-04 15:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-28  9:33 Eli Zaretskii
2020-09-28 16:53 ` Eli Zaretskii
2020-10-04 15:52   ` Maciej W. Rozycki [this message]
2020-10-04 16:18     ` Eli Zaretskii
2020-10-04 17:56       ` Maciej W. Rozycki
2020-10-04 18:27         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.21.2010041648350.333514@eddie.linux-mips.org \
    --to=macro@linux-mips.org \
    --cc=eliz@gnu.org \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).