old-cross-binutils/gdb/common
Gary Benson 34abf635b3 Introduce common-debug.h
This introduces common-debug.h.  This holds the functions debug_printf
and debug_vprintf, two functions that the common code can use to print
debugging messages.  Clients of the common code are expected to
implement debug_vprintf; a debug_vprintf function is written from
scratch for GDB, and gdbserver's existing debug_printf is repurposed
as debug_vprintf.

common/agent.c is changed to use debug_vprintf rather than
defining the macro DEBUG_AGENT depending on GDBSERVER.

nat/i386-dregs.c is changed to use the externally-implemented
debug_printf, rather than defining it itself.

gdb/ChangeLog:

	* common/common-debug.h: New file.
	* common/common-debug.c: Likewise.
	* debug.c: Likewise.
	* Makefile.in (SFILES): Add common/common-debug.c.
	(HFILES_NO_SRCDIR): Add common/common-debug.h.
	(COMMON_OBS): Add common-debug.o and debug.o.
	(common-debug.o): New rule.
	* common/common-defs.h: Include common-debug.h.
	* common/agent.c (debug_agent_printf): New function.
	(DEBUG_AGENT): Redefine.
	* nat/i386-dregs.c (debug_printf): Undefine.

gdb/gdbserver/ChangeLog:

	* Makefile.in (SFILES): Add common/common-debug.c.
	(OBS): Add common-debug.o.
	(common-debug.o): New rule.
	* debug.h (debug_printf): Don't declare.
	* debug.c (debug_printf): Renamed and rewritten as...
	(debug_vprintf): New function.
2014-08-19 10:07:20 +01:00
..
agent.c Introduce common-debug.h 2014-08-19 10:07:20 +01:00
agent.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
ax.def Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
break-common.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
btrace-common.h Do not include defs.h or server.h in any header file 2014-07-31 13:25:01 +01:00
buffer.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
buffer.h Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
common-debug.c Introduce common-debug.h 2014-08-19 10:07:20 +01:00
common-debug.h Introduce common-debug.h 2014-08-19 10:07:20 +01:00
common-defs.h Introduce common-debug.h 2014-08-19 10:07:20 +01:00
common-types.h Introduce common-types.h 2014-08-19 10:07:19 +01:00
common-utils.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
common-utils.h Introduce common/errors.h 2014-08-19 10:07:18 +01:00
common.m4 Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
create-version.sh Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
errors.c Introduce common/errors.h 2014-08-19 10:07:18 +01:00
errors.h Introduce common/errors.h 2014-08-19 10:07:18 +01:00
filestuff.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
filestuff.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
format.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
format.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_assert.h Move common-utils.h to common-defs.h 2014-08-07 09:06:44 +01:00
gdb_locale.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_signals.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_vecs.c Add delim_string_to_char_ptr_vec. 2014-01-17 10:23:29 -08:00
gdb_vecs.h Add delim_string_to_char_ptr_vec. 2014-01-17 10:23:29 -08:00
gdb_wait.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
host-defs.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
i386-xstate.h Add AVX512 registers support to GDB and GDBserver. 2014-04-24 16:30:03 +02:00
print-utils.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
print-utils.h share "cell" code 2014-02-12 09:59:13 -07:00
ptid.c Make all source files include defs.h or server.h first 2014-07-30 09:22:48 +01:00
ptid.h Move ptid_match to common/ptid.c. 2014-02-27 14:30:07 +00:00
queue.h Include gdb_assert.h in common-defs.h 2014-08-07 09:06:45 +01:00
rsp-low.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
rsp-low.h update rsp-low comments 2014-02-12 09:59:20 -07:00
signals.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
vec.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
vec.h Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
version.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
xml-utils.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
xml-utils.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00