binutils-gdb/gdbsupport
Simon Marchi 17417fb0ec gdb, gdbsupport: add debug_prefixed_printf, remove boilerplate functions
The *_debug_print_1 functions are all very similar, the only difference
being the subsystem name.  Remove them all and make the logging macros
use a new debug_prefixed_printf function directly.

gdb/ChangeLog:

	* infrun.c (infrun_debug_printf_1): Remove.
	(displaced_debug_printf_1): Remove.
	(stop_all_threads): Use debug_prefixed_printf.
	* infrun.h (infrun_debug_printf_1): Remove.
	(infrun_debug_printf): Use debug_prefixed_printf.
	(displaced_debug_printf_1): Remove.
	(displaced_debug_printf): Use debug_prefixed_printf.
	* linux-nat.c (linux_nat_debug_printf_1): Remove.
	(linux_nat_debug_printf): Use debug_prefixed_printf.

gdbsupport/ChangeLog:

	* common-debug.cc (debug_prefixed_printf): New.
	* common-debug.h (debug_prefixed_printf): New declaration.
	* event-loop.cc (event_loop_debug_printf_1): Remove.
	* event-loop.h (event_loop_debug_printf_1): Remove.
	(event_loop_debug_printf): Use debug_prefixed_printf.
	(event_loop_ui_debug_printf): Use debug_prefixed_printf.

Change-Id: Ib323087c7257f0060121d302055c41eb64aa60c6
2020-10-31 09:15:13 -04:00
..
.dir-locals.el
.gitattributes
acinclude.m4 gdb: move ptrace.m4 to gdbsupport 2020-10-25 21:08:49 -04:00
aclocal.m4 gdb: use AC_PROG_CC_STDC instead of AM_PROG_CC_STDC 2020-10-31 08:30:57 -04:00
agent.cc Preinitialize the sockaddr_un variable to zero 2020-10-02 00:38:12 +02:00
agent.h
alt-stack.h
array-view.h
ax.def
block-signals.h
break-common.h
btrace-common.cc
btrace-common.h Disable record btrace bts support for AMD processors 2020-05-14 17:56:33 -07:00
buffer.cc
buffer.h
byte-vector.h
ChangeLog gdb, gdbsupport: add debug_prefixed_printf, remove boilerplate functions 2020-10-31 09:15:13 -04:00
check-defines.el
cleanups.cc
cleanups.h
common-debug.cc gdb, gdbsupport: add debug_prefixed_printf, remove boilerplate functions 2020-10-31 09:15:13 -04:00
common-debug.h gdb, gdbsupport: add debug_prefixed_printf, remove boilerplate functions 2020-10-31 09:15:13 -04:00
common-defs.h
common-exceptions.cc
common-exceptions.h
common-gdbthread.h
common-inferior.cc gdbsupport: Let construct_inferior_arguments take gdb::array_view param 2020-05-25 11:38:45 -04:00
common-inferior.h gdbsupport: Let construct_inferior_arguments take gdb::array_view param 2020-05-25 11:38:45 -04:00
common-regcache.cc
common-regcache.h gdb: protect some 'regcache_read_pc' calls 2020-05-14 13:59:53 +02:00
common-types.h
common-utils.cc gdbsupport: Drop now unused function 'stringify_argv' 2020-05-25 11:40:35 -04:00
common-utils.h gdbsupport: Drop now unused function 'stringify_argv' 2020-05-25 11:40:35 -04:00
common.m4 gdbsupport: replace AC_TRY_COMPILE in common.m4 2020-10-31 08:31:00 -04:00
config.in Require kinfo_get_file and kinfo_get_vmmap for FreeBSD hosts. 2020-09-16 11:40:05 -07:00
configure gdbsupport: replace AC_TRY_COMPILE in common.m4 2020-10-31 08:31:00 -04:00
configure.ac gdb: use AC_PROG_CC_STDC instead of AM_PROG_CC_STDC 2020-10-31 08:30:57 -04:00
create-version.sh
def-vector.h
default-init-alloc.h
eintr.h gdb::handle_eintr, remove need to specify return type 2020-10-26 18:57:40 +00:00
enum-flags.h Rewrite enum_flags, add unit tests, fix problems 2020-09-14 22:21:07 +01:00
environ.cc
environ.h
errors.cc
errors.h
event-loop.cc gdb, gdbsupport: add debug_prefixed_printf, remove boilerplate functions 2020-10-31 09:15:13 -04:00
event-loop.h gdb, gdbsupport: add debug_prefixed_printf, remove boilerplate functions 2020-10-31 09:15:13 -04:00
fileio.cc
fileio.h
filestuff.cc
filestuff.h
filtered-iterator.h
format.cc
format.h
forward-scope-exit.h
function-view.h
gdb_assert.h
gdb_binary_search.h
gdb_locale.h
gdb_optional.h [gdb/build] Fix Wmaybe-uninitialized in gdb_optional.h 2020-07-28 15:07:44 +02:00
gdb_proc_service.h
gdb_ref_ptr.h
gdb_select.h
gdb_setjmp.h
gdb_signals.h
gdb_splay_tree.h
gdb_string_view.h Do not define basic_string_view::to_string 2020-06-30 07:53:03 -06:00
gdb_string_view.tcc
gdb_sys_time.h
gdb_tilde_expand.cc
gdb_tilde_expand.h
gdb_unique_ptr.h
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 Use safe-ctype.h (ISSPACE etc.) in symbol parsing & comparison 2020-05-23 12:46:37 +01:00
gdb-sigmask.h Fix typo (thead -> thread) 2020-04-28 11:38:26 +02:00
hash_enum.h
host-defs.h
job-control.cc
job-control.h
Makefile.am Move simple_search_memory to gdbsupport/search.cc 2020-10-07 12:07:55 -06:00
Makefile.in gdb: move ptrace.m4 to gdbsupport 2020-10-25 21:08:49 -04:00
netstuff.cc
netstuff.h
new-op.cc
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
ptid.h gdb: change regcache list to be a map 2020-08-07 11:29:00 -04:00
ptrace.m4 gdbsupport: replace AC_TRY_COMPILE in ptrace.m4 2020-10-31 08:30:59 -04:00
README
refcounted-object.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
scoped_mmap.cc
scoped_mmap.h
scoped_restore.h
search.cc Move simple_search_memory to gdbsupport/search.cc 2020-10-07 12:07:55 -06:00
search.h Move simple_search_memory to gdbsupport/search.cc 2020-10-07 12:07:55 -06:00
selftest.cc gdb: allow specifying multiple filters when running selftests 2020-08-13 07:55:48 -04:00
selftest.h gdb: allow specifying multiple filters when running selftests 2020-08-13 07:55:48 -04:00
selftest.m4
signals-state-save-restore.cc
signals-state-save-restore.h
signals.cc
symbol.h
tdesc.cc Add bfloat16 support for AVX512 register view. 2020-09-11 11:42:47 -07:00
tdesc.h gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
thread-pool.cc
thread-pool.h
traits.h Rewrite valid-expr.h's internals in terms of the detection idiom (C++17/N4502) 2020-09-14 22:19:31 +01:00
underlying.h
valid-expr.h Tweak gdbsupport/valid-expr.h for GCC 6, fix build 2020-09-29 23:48:04 +01:00
version.h
warning.m4 gdbsupport: replace AC_TRY_COMPILE in warning.m4 2020-10-31 08:30:59 -04:00
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.