Running selftests in GDB
Eli Zaretskii
eliz@gnu.org
Mon Sep 28 16:53:20 GMT 2020
> Date: Mon, 28 Sep 2020 12:33:36 +0300
> From: Eli Zaretskii via Gdb <gdb@sourceware.org>
>
> 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.
More information about the Gdb
mailing list