Use debug_printf to print debug message
authorYao Qi <yao.qi@linaro.org>
Fri, 17 Jul 2015 13:32:40 +0000 (14:32 +0100)
committerYao Qi <yao.qi@linaro.org>
Fri, 17 Jul 2015 13:32:40 +0000 (14:32 +0100)
commit25abf97969e50190cb5532b25b8e1deef3ab3bde
tree3bda45276d1ab32aa52a6ebd21eea6dd7b5dcdb5
parent2ecd81c23cd070cb66073f726bddf2a7083bdaf1
Use debug_printf to print debug message

Some functions in aarch64-linux-nat.c and linux-aarch64-low.c looks
the same except for the code printing debug message.  In GDB, we use
fprintf_unfiltered (gdb_stdlog, ...) while in GDBserver, we use
fprintf (stderr, ...).  This patch is to change them to use debug_printf
so that these functions are the same, and I can move them to a common
place in the following patch.

gdb:

2015-07-17  Yao Qi  <yao.qi@linaro.org>

* aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
debug_printf.
(aarch64_handle_unaligned_watchpoint): Likewise.

gdb/gdbserver:

2015-07-17  Yao Qi  <yao.qi@linaro.org>

* linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
debug_printf.
(aarch64_handle_unaligned_watchpoint): Likewise.
gdb/ChangeLog
gdb/aarch64-linux-nat.c
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c