]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
New --enable-threading configure option to control use of threads in GDB/GDBserver
authorLuis Machado <luis.machado@linaro.org>
Fri, 26 Nov 2021 14:31:18 +0000 (11:31 -0300)
committerLuis Machado <luis.machado@linaro.org>
Wed, 15 Dec 2021 20:00:00 +0000 (17:00 -0300)
commit261b07488b9dfe69090e6980f6de9d0f4f3f03ca
treec962f1627fd0fa4daa203300f8fc2fc77fd0c47b
parent4d3605c8ca92bcde848581a8ec031827c798501b
New --enable-threading configure option to control use of threads in GDB/GDBserver

Add the --enable-threading configure option so multithreading can be disabled
at configure time. This is useful for statically-linked builds of
GDB/GDBserver, since the thread library doesn't play well with that setup.

If you try to run a statically-linked GDB built with threading, it will crash
when setting up the number of worker threads.

This new option is also convenient when debugging GDB in a system with lots of
threads, where the thread discovery code in GDB will emit too many messages,
like so:

[New Thread 0xfffff74d3a50 (LWP 2625599)]

If you have X threads, that message will be repeated X times.

The default for --enable-threading is "yes".
gdb/NEWS
gdb/configure
gdbserver/configure
gdbsupport/common.m4
gdbsupport/configure