Re: Running selftests in GDB
Eli Zaretskii via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
> Date: Sun, 4 Oct 2020 16:52:29 +0100 (BST) > From: "Maciej W. Rozycki" <[email protected]> > cc: [email protected] > > > 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.