aboutsummaryrefslogtreecommitdiff
path: root/gdb/aarch64-linux-nat.c
diff options
context:
space:
mode:
authorMarcus Shawcroft <mshawcroft@sourceware.org>2013-02-13 13:42:39 +0000
committerMarcus Shawcroft <mshawcroft@sourceware.org>2013-02-13 13:42:39 +0000
commit1d3ffd6bfef1e9c7ceabba65a1d4cb0e7000c3aa (patch)
tree819d70f5da0af328b83af079c3b3db6b85936561 /gdb/aarch64-linux-nat.c
parent6eb044730a8991d0b43e89c7aa0f671bb577dfd0 (diff)
downloadgdb-1d3ffd6bfef1e9c7ceabba65a1d4cb0e7000c3aa.zip
gdb-1d3ffd6bfef1e9c7ceabba65a1d4cb0e7000c3aa.tar.gz
gdb-1d3ffd6bfef1e9c7ceabba65a1d4cb0e7000c3aa.tar.bz2
ARI fix: Replace %llx with %s and phex().
2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com> * aarch64-linux-nat.c (debug_reg_change_callback) (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with %s and phex().
Diffstat (limited to 'gdb/aarch64-linux-nat.c')
-rw-r--r--gdb/aarch64-linux-nat.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
index 268f98d..507ba81 100644
--- a/gdb/aarch64-linux-nat.c
+++ b/gdb/aarch64-linux-nat.c
@@ -335,9 +335,10 @@ debug_reg_change_callback (struct lwp_info *lwp, void *ptr)
fprintf_unfiltered (gdb_stdlog,
"debug_reg_change_callback: \n\tOn entry:\n");
fprintf_unfiltered (gdb_stdlog,
- "\tpid%d, dr_changed_bp=0x%llx, "
- "dr_changed_wp=0x%llx\n",
- pid, info->dr_changed_bp, info->dr_changed_wp);
+ "\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
@@ -361,9 +362,10 @@ debug_reg_change_callback (struct lwp_info *lwp, void *ptr)
if (debug_hw_points)
{
fprintf_unfiltered (gdb_stdlog,
- "\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);
+ "\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));
}
/* Continue the iteration. */
@@ -733,16 +735,16 @@ aarch64_linux_get_debug_reg_capacity (void)
aarch64_num_wp_regs = AARCH64_DEBUG_NUM_SLOTS (dreg_state.dbg_info);
if (aarch64_num_wp_regs > AARCH64_HWP_MAX_NUM)
{
- warning ("Unexpected number of hardware watchpoint registers reported"
- " by ptrace, got %d, expected %d.",
+ warning (_("Unexpected number of hardware watchpoint registers"
+ " reported by ptrace, got %d, expected %d."),
aarch64_num_wp_regs, AARCH64_HWP_MAX_NUM);
aarch64_num_wp_regs = AARCH64_HWP_MAX_NUM;
}
}
else
{
- warning ("Unable to determine the number of hardware watchpoints"
- " available.");
+ warning (_("Unable to determine the number of hardware watchpoints"
+ " available."));
aarch64_num_wp_regs = 0;
}
@@ -753,16 +755,16 @@ aarch64_linux_get_debug_reg_capacity (void)
aarch64_num_bp_regs = AARCH64_DEBUG_NUM_SLOTS (dreg_state.dbg_info);
if (aarch64_num_bp_regs > AARCH64_HBP_MAX_NUM)
{
- warning ("Unexpected number of hardware breakpoint registers reported"
- " by ptrace, got %d, expected %d.",
+ warning (_("Unexpected number of hardware breakpoint registers"
+ " reported by ptrace, got %d, expected %d."),
aarch64_num_bp_regs, AARCH64_HBP_MAX_NUM);
aarch64_num_bp_regs = AARCH64_HBP_MAX_NUM;
}
}
else
{
- warning ("Unable to determine the number of hardware breakpoints"
- " available.");
+ warning (_("Unable to determine the number of hardware breakpoints"
+ " available."));
aarch64_num_bp_regs = 0;
}
}