Running selftests in GDB
Eli Zaretskii
eliz@gnu.org
Sun Oct 4 16:18:09 GMT 2020
> Date: Sun, 4 Oct 2020 16:52:29 +0100 (BST)
> From: "Maciej W. Rozycki" <macro@linux-mips.org>
> 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.
More information about the Gdb
mailing list