Use phex debug_reg_change_callback
authorYao Qi <yao.qi@linaro.org>
Tue, 25 Aug 2015 10:38:28 +0000 (11:38 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 25 Aug 2015 10:39:12 +0000 (11:39 +0100)
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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c

index 0b7e658b91cc94f4c62265c7e258a4e8c795c69c..fb5704559a9ee249c351ca5ef11d54ba47449cae 100644 (file)
@@ -1,3 +1,7 @@
+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.
index a8c2a24fa5a1c9b7b7cf15ada05b33f54bd64b12..0dfb7291fcab103cc86e4a14b3b5ca0feb02e8c4 100644 (file)
@@ -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;
This page took 0.031747 seconds and 4 git commands to generate.