binutils-gdb/gdbsupport
Luis Machado 261b07488b 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".
2021-12-15 17:00:00 -03:00
..
.dir-locals.el
.gitattributes
acinclude.m4
aclocal.m4
agent.cc Remove defaulted 'tid' parameter to ptid_t constructor 2021-09-23 09:30:54 -06:00
agent.h
alt-stack.h
array-view.h gdbsupport: add array_view copy function 2021-12-03 16:37:36 -05:00
ax.def
block-signals.h
break-common.h
btrace-common.cc
btrace-common.h
buffer.cc
buffer.h
byte-vector.h
ChangeLog-2020-2021
check-defines.el
cleanups.cc
cleanups.h
common-debug.cc
common-debug.h
common-defs.h
common-exceptions.cc
common-exceptions.h
common-gdbthread.h
common-inferior.cc
common-inferior.h
common-regcache.cc
common-regcache.h
common-types.h
common-utils.cc gdb: introduce target_waitkind_str, use it in target_waitstatus::to_string 2021-11-22 13:57:49 -05:00
common-utils.h gdb: introduce target_waitkind_str, use it in target_waitstatus::to_string 2021-11-22 13:57:49 -05:00
common.m4 New --enable-threading configure option to control use of threads in GDB/GDBserver 2021-12-15 17:00:00 -03:00
config.in Fix build on rhES5 2021-11-09 08:21:18 -07:00
configure New --enable-threading configure option to control use of threads in GDB/GDBserver 2021-12-15 17:00:00 -03:00
configure.ac gdbsupport: remove attempt to define TARGET_WORD_SIZE 2021-10-04 10:52:35 +01:00
create-version.sh
def-vector.h
default-init-alloc.h
eintr.h
enum-flags.h
environ.cc
environ.h
errors.cc
errors.h
event-loop.cc gdbsupport: fix memory leak in create_file_handler when re-using file handler 2021-12-04 21:42:43 -05:00
event-loop.h
fileio.cc
fileio.h
filestuff.cc gdbsupport: make gdb_assert_not_reached accept a format string 2021-11-18 11:29:19 -05:00
filestuff.h gdbsupport: make gdb_mkostemp_cloexec return a scoped_fd 2021-09-30 15:21:48 -04:00
filtered-iterator.h
format.cc
format.h
forward-scope-exit.h
function-view.h
gdb_assert.h gdbsupport: make gdb_assert_not_reached accept a format string 2021-11-18 11:29:19 -05:00
gdb_binary_search.h
gdb_file.h gdbsupport: move gdb_file_up to its own file 2021-09-30 15:21:48 -04:00
gdb_locale.h
gdb_optional.h gdbsupport: add debug assertions in gdb::optional::get 2021-08-03 08:50:56 -04:00
gdb_proc_service.h gdbsupport/gdb_proc_service.h: use decltype instead of typeof 2021-09-20 07:59:53 -04:00
gdb_ref_ptr.h
gdb_select.h
gdb_setjmp.h
gdb_signals.h
gdb_splay_tree.h
gdb_string_view.h
gdb_string_view.tcc
gdb_sys_time.h
gdb_tilde_expand.cc
gdb_tilde_expand.h
gdb_unique_ptr.h gdbsupport: move xfree into its own file 2021-11-16 17:45:44 +00:00
gdb_unlinker.h
gdb_vecs.cc
gdb_vecs.h
gdb_wait.cc
gdb_wait.h
gdb-dlfcn.cc
gdb-dlfcn.h
gdb-safe-ctype.h
gdb-sigmask.h
gdb-xfree.h gdbsupport: move xfree into its own file 2021-11-16 17:45:44 +00:00
hash_enum.h
host-defs.h
intrusive_list.h
iterator-range.h
job-control.cc
job-control.h
Makefile.am
Makefile.in
netstuff.cc
netstuff.h
new-op.cc [gdb/build] Fix Wimplicit-exception-spec-mismatch in clang build 2021-11-11 11:22:39 +01:00
next-iterator.h
observable.h
offset-type.h
parallel-for.h
pathstuff.cc
pathstuff.h
poison.h
preprocessor.h
print-utils.cc
print-utils.h
ptid.cc Change ptid_t::tid to ULONGEST 2021-09-23 09:30:54 -06:00
ptid.h Change ptid_t::tid to ULONGEST 2021-09-23 09:30:54 -06:00
ptrace.m4
README
refcounted-object.h
reference-to-pointer-iterator.h
rsp-low.cc
rsp-low.h
run-time-clock.cc
run-time-clock.h
safe-iterator.h
safe-strerror.cc
scope-exit.h
scoped_fd.h gdbsupport: move gdb_file_up to its own file 2021-09-30 15:21:48 -04:00
scoped_ignore_signal.h
scoped_ignore_sigttou.h
scoped_mmap.cc gdbsupport: make gdb_open_cloexec return scoped_fd 2021-09-30 15:21:48 -04:00
scoped_mmap.h
scoped_restore.h
search.cc
search.h
selftest.cc Always use std::function for self-tests 2021-10-19 12:58:50 -06:00
selftest.h gdb: add selftest name completion 2021-10-28 11:17:45 -04:00
selftest.m4
signals-state-save-restore.cc
signals-state-save-restore.h
signals.cc
symbol.h
tdesc.cc Revert "gdbsupport: remove unnecessary #ifndef IN_PROCESS_AGENT" 2021-12-09 19:03:55 -05:00
tdesc.h
thread-pool.cc
thread-pool.h
traits.h
underlying.h
valid-expr.h
version.h
warning.m4
x86-xstate.h
xml-utils.cc
xml-utils.h

This is a helper library that is used by gdb and gdbserver.

To send patches, follow the gdb patch submission instructions in
../gdb/CONTRIBUTE.  For maintainers, see ../gdb/MAINTAINERS.