[PATCH] New --enable-threading configure option to control use of threads in GDB/GDBserver
Luis Machado
luis.machado@linaro.org
Wed Dec 15 17:17:55 GMT 2021
On 12/7/21 3:51 PM, Tom Tromey wrote:
>>>>>> "Luis" == Luis Machado via Gdb-patches <gdb-patches@sourceware.org> writes:
>
> Luis> Add the --enable-threading configure option so multithreading can be disabled
> Luis> at configure time. This is useful for statically-linked builds of
> Luis> GDB/GDBserver, since the thread library doesn't play well with that setup.
>
> This is ok.
>
> thanks,
> Tom
>
Thanks. As I was going to push this, I noticed I forgot to add a NEWS
entry to make it more obvious this option exists.
Here's what I plan to push alongside this patch:
diff --git a/gdb/NEWS b/gdb/NEWS
index 13b66286876..3f78ace82bb 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,17 @@
*** Changes since GDB 11
+* Configure changes
+
+--enable-threading
+
+ Enable or disable multithreaded symbol loading. This is enabled
+ by default, but passing --disable-threading or --enable-threading=no
+ to configure will disable it.
+
+ Disabling this can cause a performance penalty when there are a lot of
+ symbols to load, but is useful for debugging purposes.
+
* New commands
More information about the Gdb-patches
mailing list