binutils-gdb/gdbsupport
Christian Biesinger 43198d2089 Support the NetBSD version of pthread_setname_np
On NetBSD, pthread_setname_np takes a printf-style format string plus
one argument:
https://netbsd.gw.com/cgi-bin/man-cgi?pthread_setname_np++NetBSD-current

This patch makes thread-pool.c handle that.

gdbsupport/ChangeLog:

2020-01-24  Christian Biesinger  <cbiesinger@google.com>

	* thread-pool.c (set_thread_name): Add an overload for the NetBSD
	version of pthread_setname_np.

Change-Id: I61e664a813eaa7f52b6811b1a43e08ac3082d8ef
2020-01-24 16:39:01 +01:00
..
acinclude.m4 Move many configure checks to common.m4 2020-01-14 16:25:03 -07:00
aclocal.m4 Move many configure checks to common.m4 2020-01-14 16:25:03 -07:00
agent.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
agent.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
alt-stack.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
array-view.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
ax.def Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
block-signals.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
break-common.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
btrace-common.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
btrace-common.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
buffer.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
buffer.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
byte-vector.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
ChangeLog Support the NetBSD version of pthread_setname_np 2020-01-24 16:39:01 +01:00
check-defines.el Add gdbsupport check-defines script 2020-01-14 16:25:04 -07:00
cleanups.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
cleanups.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-debug.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-debug.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-defs.h Fix gdbsupport build 2020-01-17 15:14:56 +00:00
common-exceptions.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-exceptions.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-gdbthread.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-inferior.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-inferior.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-regcache.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-regcache.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-types.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-utils.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common-utils.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
common.m4 Move many configure checks to common.m4 2020-01-14 16:25:03 -07:00
config.in Move many configure checks to common.m4 2020-01-14 16:25:03 -07:00
configure Fix gdbsupport build 2020-01-17 15:14:56 +00:00
configure.ac Fix gdbsupport build 2020-01-17 15:14:56 +00:00
create-version.sh Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
def-vector.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
default-init-alloc.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
enum-flags.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
environ.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
environ.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
errors.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
errors.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
fileio.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
fileio.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
filestuff.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
filestuff.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
filtered-iterator.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
format.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
format.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
forward-scope-exit.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
function-view.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_assert.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_binary_search.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_locale.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_optional.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_proc_service.h Ensure proc-service symbols have default visibility (PR build/24805) 2020-01-16 19:14:14 +00:00
gdb_ref_ptr.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_setjmp.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_signals.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_splay_tree.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_string_view.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_string_view.tcc Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_sys_time.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_tilde_expand.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_tilde_expand.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_unique_ptr.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_unlinker.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_vecs.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_vecs.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_wait.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb_wait.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb-dlfcn.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb-dlfcn.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
gdb-sigmask.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
hash_enum.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
host-defs.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
job-control.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
job-control.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
Makefile.am Fix gdbsupport build on compilers that don't default to C++11 or above 2020-01-17 15:19:42 +00:00
Makefile.in Fix gdbsupport build on compilers that don't default to C++11 or above 2020-01-17 15:19:42 +00:00
netstuff.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
netstuff.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
new-op.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
next-iterator.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
observable.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
offset-type.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
parallel-for.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
pathstuff.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
pathstuff.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
poison.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
preprocessor.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
print-utils.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
print-utils.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
ptid.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
ptid.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
README Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
refcounted-object.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
rsp-low.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
rsp-low.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
run-time-clock.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
run-time-clock.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
safe-iterator.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
safe-strerror.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
scope-exit.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
scoped_fd.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
scoped_mmap.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
scoped_mmap.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
scoped_restore.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
selftest.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
selftest.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
signals-state-save-restore.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
signals-state-save-restore.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
signals.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
symbol.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
tdesc.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
tdesc.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
thread-pool.c Support the NetBSD version of pthread_setname_np 2020-01-24 16:39:01 +01:00
thread-pool.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
traits.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
underlying.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
valid-expr.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
version.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
x86-xstate.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
xml-utils.c Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00
xml-utils.h Move gdbsupport to the top level 2020-01-14 16:25:02 -07:00

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.