diff options
author | Yao Qi <yao.qi@linaro.org> | 2015-08-25 11:38:28 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-08-25 11:39:12 +0100 |
commit | 0d51c8d71c19531bf29a3ba303c040c7c772a4a1 (patch) | |
tree | 5be8a702236a0a55a3084c8adbea3562e7557de2 /gdb | |
parent | 5e137137b2ff267fbf33b1e47f0413292ccb40d6 (diff) | |
download | gdb-0d51c8d71c19531bf29a3ba303c040c7c772a4a1.zip gdb-0d51c8d71c19531bf29a3ba303c040c7c772a4a1.tar.gz gdb-0d51c8d71c19531bf29a3ba303c040c7c772a4a1.tar.bz2 |
Use phex debug_reg_change_callback
This patch is to use phex in debug_reg_change_callback to make it
identical in GDB and GDBserver.
gdb/gdbserver:
2015-08-25 Yao Qi <yao.qi@linaro.org>
* linux-aarch64-low.c (debug_reg_change_callback): Use phex.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/linux-aarch64-low.c | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 0b7e658..fb57045 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,9 @@ 2015-08-25 Yao Qi <yao.qi@linaro.org> + * linux-aarch64-low.c (debug_reg_change_callback): Use phex. + +2015-08-25 Yao Qi <yao.qi@linaro.org> + * linux-aarch64-low.c (debug_reg_change_callback): Remove comments. 2015-08-25 Yao Qi <yao.qi@linaro.org> diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c index a8c2a24..0dfb729 100644 --- a/gdb/gdbserver/linux-aarch64-low.c +++ b/gdb/gdbserver/linux-aarch64-low.c @@ -262,10 +262,10 @@ debug_reg_change_callback (struct lwp_info *lwp, void *ptr) if (show_debug_regs) { fprintf (stderr, "debug_reg_change_callback: \n\tOn entry:\n"); - fprintf (stderr, "\tpid%d, dr_changed_bp=0x%llx, " - "dr_changed_wp=0x%llx\n", - pid, info->dr_changed_bp, - info->dr_changed_wp); + fprintf (stderr, "\tpid%d, dr_changed_bp=0x%s, " + "dr_changed_wp=0x%s\n", + pid, phex (info->dr_changed_bp, 8), + phex (info->dr_changed_wp, 8)); } dr_changed_ptr = is_watchpoint ? &info->dr_changed_wp @@ -288,10 +288,10 @@ debug_reg_change_callback (struct lwp_info *lwp, void *ptr) if (show_debug_regs) { - fprintf (stderr, "\tOn exit:\n\tpid%d, dr_changed_bp=0x%llx, " - "dr_changed_wp=0x%llx\n", - pid, info->dr_changed_bp, - info->dr_changed_wp); + fprintf (stderr, "\tOn exit:\n\tpid%d, dr_changed_bp=0x%s, " + "dr_changed_wp=0x%s\n", + pid, phex (info->dr_changed_bp, 8), + phex (info->dr_changed_wp, 8)); } return 0; |