]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/gdbserver/ChangeLog
Introduce common-debug.h
authorGary Benson <gbenson@redhat.com>
Wed, 30 Jul 2014 15:21:55 +0000 (16:21 +0100)
committerGary Benson <gbenson@redhat.com>
Tue, 19 Aug 2014 09:07:20 +0000 (10:07 +0100)
commit34abf635b3edf9d70b24aa655ffd7d4696d48cde
tree589de322e6cadff3b9cf9475927ee15e021903f9
parentf6e94d78b2fe30977ffefcb26420109940ca7bb1
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.
12 files changed:
gdb/ChangeLog
gdb/Makefile.in
gdb/common/agent.c
gdb/common/common-debug.c [new file with mode: 0644]
gdb/common/common-debug.h [new file with mode: 0644]
gdb/common/common-defs.h
gdb/debug.c [new file with mode: 0644]
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in
gdb/gdbserver/debug.c
gdb/gdbserver/debug.h
gdb/nat/i386-dregs.c