binutils-gdb/gdb/nat
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
..
gdb_thread_db.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
glibc_thread_db.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
i386-cpuid.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
i386-dregs.c Introduce common-debug.h 2014-08-19 10:07:20 +01:00
i386-dregs.h Vectorize gdbserver x86 debug register accessors 2014-06-20 13:05:50 +01:00
i386-gcc-cpuid.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-btrace.c Move errno.h to common-defs.h 2014-08-07 09:06:48 +01:00
linux-btrace.h Move ptid.h to common-defs.h 2014-08-07 09:06:44 +01:00
linux-nat.h
linux-osdata.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
linux-osdata.h Move ptid.h to common-defs.h 2014-08-07 09:06:44 +01:00
linux-procfs.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
linux-procfs.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-ptrace.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
linux-ptrace.h Remove some GDBSERVER checks from linux-ptrace 2014-07-24 15:06:39 +01:00
linux-waitpid.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
linux-waitpid.h Move linux-nat.c:status_to_str to nat/linux-waitpid.c. 2014-02-27 14:30:08 +00:00
mips-linux-watch.c Include gdb_assert.h in common-defs.h 2014-08-07 09:06:45 +01:00
mips-linux-watch.h Do not include defs.h or server.h in any header file 2014-07-31 13:25:01 +01:00