when printing the GDB config, explicitly say if configured without python
authorДилян Палаузов <dilyan.palauzov@aegee.org>
Fri, 21 Dec 2018 15:09:40 +0000 (19:09 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Fri, 21 Dec 2018 17:59:09 +0000 (21:59 +0400)
commit50c7c5b8df15aad66a9d2f6759e85689a2a74271
treeb08ddb53e276ef49f8fb2a27267ee0d1562f17c5
parenta96bd1ccc0dca2d260e0e30de462f37066973ceb
when printing the GDB config, explicitly say if configured without python

When using the --configuration command line switch, or using
the "show configuration" command with a version of GDB which
was configured without Python supoprt, this patch changes
the resulting output to include...

    --without-python

... instead of not printing anything about Python support.

gdb/ChangeLog:

        * top.c (print_gdb_configuration): Print "--without-python"
        if GDB was configured without Python.

Tested on x86_64-linux by rebuilding GDB with and without Python,
and checking the output of "gdb --configuration" in both cases.
gdb/ChangeLog
gdb/top.c