Fix ARI warnings to nat/aarch64-linux-hw-point.{c,h}
authorYao Qi <yao.qi@linaro.org>
Mon, 20 Jul 2015 15:29:16 +0000 (16:29 +0100)
committerYao Qi <yao.qi@linaro.org>
Mon, 20 Jul 2015 15:49:22 +0000 (16:49 +0100)
This patch is to fix two ARI warnings for nat/aarch64-linux-hw-point.{c,h}.

gdb:

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

* nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
Re-indent the code.
* nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
"unsigned long long".

gdb/ChangeLog
gdb/nat/aarch64-linux-hw-point.c
gdb/nat/aarch64-linux-hw-point.h

index 7f31ff58c9a06f74396f6678879d52a5637dc358..61a28b6191b3e9ef33fc410c2de202e1e257c8f3 100644 (file)
@@ -1,3 +1,10 @@
+2015-07-20  Yao Qi  <yao.qi@linaro.org>
+
+       * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
+       Re-indent the code.
+       * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
+       "unsigned long long".
+
 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
 
        * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
index ded4a197f3a293f870386857cbf3fdd7d573e71d..f58e0c5ff36f5ab17e0193e2b58f3e1634d8f655 100644 (file)
@@ -409,12 +409,13 @@ aarch64_handle_unaligned_watchpoint (enum target_hw_bp_type type,
                                                 aligned_len);
 
       if (show_debug_regs)
-       debug_printf (
-"handle_unaligned_watchpoint: is_insert: %d\n"
-"                             aligned_addr: %s, aligned_len: %d\n"
-"                                next_addr: %s,    next_len: %d\n",
-is_insert, core_addr_to_string_nz (aligned_addr), aligned_len,
-core_addr_to_string_nz (addr), len);
+       debug_printf ("handle_unaligned_watchpoint: is_insert: %d\n"
+                     "                             "
+                     "aligned_addr: %s, aligned_len: %d\n"
+                     "                                "
+                     "next_addr: %s,    next_len: %d\n",
+                     is_insert, core_addr_to_string_nz (aligned_addr),
+                     aligned_len, core_addr_to_string_nz (addr), len);
 
       if (ret != 0)
        return ret;
index 44dc5cf5341be64e0dfcd37c7d4960265541e115..1d81a08bfbaa0a233a5694d2e777cc8853cc6afa 100644 (file)
    ptrace calls to the kernel, i.e. avoid asking the kernel to write
    to the debug registers with unchanged values.  */
 
-typedef unsigned long long dr_changed_t;
+typedef ULONGEST dr_changed_t;
 
 /* Set each of the lower M bits of X to 1; assert X is wide enough.  */