mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
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().
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
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().
|
||||||
|
|
||||||
2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
||||||
|
|
||||||
* aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
|
* aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
|
||||||
|
@ -335,9 +335,10 @@ debug_reg_change_callback (struct lwp_info *lwp, void *ptr)
|
|||||||
fprintf_unfiltered (gdb_stdlog,
|
fprintf_unfiltered (gdb_stdlog,
|
||||||
"debug_reg_change_callback: \n\tOn entry:\n");
|
"debug_reg_change_callback: \n\tOn entry:\n");
|
||||||
fprintf_unfiltered (gdb_stdlog,
|
fprintf_unfiltered (gdb_stdlog,
|
||||||
"\tpid%d, dr_changed_bp=0x%llx, "
|
"\tpid%d, dr_changed_bp=0x%s, "
|
||||||
"dr_changed_wp=0x%llx\n",
|
"dr_changed_wp=0x%s\n",
|
||||||
pid, info->dr_changed_bp, info->dr_changed_wp);
|
pid, phex (info->dr_changed_bp, 8),
|
||||||
|
phex (info->dr_changed_wp, 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
dr_changed_ptr = is_watchpoint ? &info->dr_changed_wp
|
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)
|
if (debug_hw_points)
|
||||||
{
|
{
|
||||||
fprintf_unfiltered (gdb_stdlog,
|
fprintf_unfiltered (gdb_stdlog,
|
||||||
"\tOn exit:\n\tpid%d, dr_changed_bp=0x%llx, "
|
"\tOn exit:\n\tpid%d, dr_changed_bp=0x%s, "
|
||||||
"dr_changed_wp=0x%llx\n",
|
"dr_changed_wp=0x%s\n",
|
||||||
pid, info->dr_changed_bp, info->dr_changed_wp);
|
pid, phex (info->dr_changed_bp, 8),
|
||||||
|
phex (info->dr_changed_wp, 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Continue the iteration. */
|
/* 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);
|
aarch64_num_wp_regs = AARCH64_DEBUG_NUM_SLOTS (dreg_state.dbg_info);
|
||||||
if (aarch64_num_wp_regs > AARCH64_HWP_MAX_NUM)
|
if (aarch64_num_wp_regs > AARCH64_HWP_MAX_NUM)
|
||||||
{
|
{
|
||||||
warning ("Unexpected number of hardware watchpoint registers reported"
|
warning (_("Unexpected number of hardware watchpoint registers"
|
||||||
" by ptrace, got %d, expected %d.",
|
" reported by ptrace, got %d, expected %d."),
|
||||||
aarch64_num_wp_regs, AARCH64_HWP_MAX_NUM);
|
aarch64_num_wp_regs, AARCH64_HWP_MAX_NUM);
|
||||||
aarch64_num_wp_regs = AARCH64_HWP_MAX_NUM;
|
aarch64_num_wp_regs = AARCH64_HWP_MAX_NUM;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
warning ("Unable to determine the number of hardware watchpoints"
|
warning (_("Unable to determine the number of hardware watchpoints"
|
||||||
" available.");
|
" available."));
|
||||||
aarch64_num_wp_regs = 0;
|
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);
|
aarch64_num_bp_regs = AARCH64_DEBUG_NUM_SLOTS (dreg_state.dbg_info);
|
||||||
if (aarch64_num_bp_regs > AARCH64_HBP_MAX_NUM)
|
if (aarch64_num_bp_regs > AARCH64_HBP_MAX_NUM)
|
||||||
{
|
{
|
||||||
warning ("Unexpected number of hardware breakpoint registers reported"
|
warning (_("Unexpected number of hardware breakpoint registers"
|
||||||
" by ptrace, got %d, expected %d.",
|
" reported by ptrace, got %d, expected %d."),
|
||||||
aarch64_num_bp_regs, AARCH64_HBP_MAX_NUM);
|
aarch64_num_bp_regs, AARCH64_HBP_MAX_NUM);
|
||||||
aarch64_num_bp_regs = AARCH64_HBP_MAX_NUM;
|
aarch64_num_bp_regs = AARCH64_HBP_MAX_NUM;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
warning ("Unable to determine the number of hardware breakpoints"
|
warning (_("Unable to determine the number of hardware breakpoints"
|
||||||
" available.");
|
" available."));
|
||||||
aarch64_num_bp_regs = 0;
|
aarch64_num_bp_regs = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user