* [PATCH] Fix %llx ARI gripe in aarch64-linux-nat.
@ 2013-02-13 13:22 Marcus Shawcroft
2013-02-13 13:53 ` Pierre Muller
0 siblings, 1 reply; 3+ messages in thread
From: Marcus Shawcroft @ 2013-02-13 13:22 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
Hi,
This patch fixes the ARI gripe about the use of %llx in aarch64-linux-nat.
I'll commit this as obvious shortly.
/Marcus
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().
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-AArch64-replace-ll-with-s-and-phex.patch --]
[-- Type: text/x-patch; name=0002-AArch64-replace-ll-with-s-and-phex.patch, Size: 2866 bytes --]
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
index 7cbd8b8..a2b6815 100644
--- a/gdb/aarch64-linux-nat.c
+++ b/gdb/aarch64-linux-nat.c
@@ -344,9 +344,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),
+ phex (info->dr_changed_wp));
}
dr_changed_ptr = is_watchpoint ? &info->dr_changed_wp
@@ -370,9 +371,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),
+ phex (info->dr_changed_wp));
}
/* Continue the iteration. */
@@ -745,16 +747,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;
}
@@ -765,16 +767,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;
}
}
--
1.7.9.5
^ permalink raw reply [flat|nested] 3+ messages in thread* RE: [PATCH] Fix %llx ARI gripe in aarch64-linux-nat.
2013-02-13 13:22 [PATCH] Fix %llx ARI gripe in aarch64-linux-nat Marcus Shawcroft
@ 2013-02-13 13:53 ` Pierre Muller
2013-02-13 14:36 ` Marcus Shawcroft
0 siblings, 1 reply; 3+ messages in thread
From: Pierre Muller @ 2013-02-13 13:53 UTC (permalink / raw)
To: 'Marcus Shawcroft', gdb-patches
Thanks for doing this.
Could you please also take care of the missing
internationalization code prefix?
> gdb/aarch64-linux-nat.c:736: gettext: _ markup: All messages should be
marked up with _.
gdb/aarch64-linux-nat.c:736: warning ("Unexpected number of hardware
watchpoint registers reported"
> gdb/aarch64-linux-nat.c:744: gettext: _ markup: All messages should be
marked up with _.
gdb/aarch64-linux-nat.c:744: warning ("Unable to determine the number
of hardware watchpoints"
> gdb/aarch64-linux-nat.c:756: gettext: _ markup: All messages should be
marked up with _.
gdb/aarch64-linux-nat.c:756: warning ("Unexpected number of hardware
breakpoint registers reported"
> gdb/aarch64-linux-nat.c:764: gettext: _ markup: All messages should be
marked up with _.
gdb/aarch64-linux-nat.c:764: warning ("Unable to determine the number
of hardware breakpoints"
Thanks,
Pierre Muller
as ARI maintainer.
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Marcus Shawcroft
> Envoyé : mercredi 13 février 2013 14:22
> À : gdb-patches@sourceware.org
> Objet : [PATCH] Fix %llx ARI gripe in aarch64-linux-nat.
>
> Hi,
>
> This patch fixes the ARI gripe about the use of %llx in aarch64-linux-nat.
>
> I'll commit this as obvious shortly.
>
> /Marcus
>
> 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().
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] Fix %llx ARI gripe in aarch64-linux-nat.
2013-02-13 13:53 ` Pierre Muller
@ 2013-02-13 14:36 ` Marcus Shawcroft
0 siblings, 0 replies; 3+ messages in thread
From: Marcus Shawcroft @ 2013-02-13 14:36 UTC (permalink / raw)
To: Pierre Muller; +Cc: gdb-patches
On 13/02/13 13:53, Pierre Muller wrote:
> Thanks for doing this.
>
> Could you please also take care of the missing
> internationalization code prefix?
Done.
Cheers
/Marcus
>
>> gdb/aarch64-linux-nat.c:736: gettext: _ markup: All messages should be
> marked up with _.
> gdb/aarch64-linux-nat.c:736: warning ("Unexpected number of hardware
> watchpoint registers reported"
>> gdb/aarch64-linux-nat.c:744: gettext: _ markup: All messages should be
> marked up with _.
> gdb/aarch64-linux-nat.c:744: warning ("Unable to determine the number
> of hardware watchpoints"
>> gdb/aarch64-linux-nat.c:756: gettext: _ markup: All messages should be
> marked up with _.
> gdb/aarch64-linux-nat.c:756: warning ("Unexpected number of hardware
> breakpoint registers reported"
>> gdb/aarch64-linux-nat.c:764: gettext: _ markup: All messages should be
> marked up with _.
> gdb/aarch64-linux-nat.c:764: warning ("Unable to determine the number
> of hardware breakpoints"
>
>
> Thanks,
>
>
> Pierre Muller
> as ARI maintainer.
>
>
>> -----Message d'origine-----
>> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
>> owner@sourceware.org] De la part de Marcus Shawcroft
>> Envoyé : mercredi 13 février 2013 14:22
>> À : gdb-patches@sourceware.org
>> Objet : [PATCH] Fix %llx ARI gripe in aarch64-linux-nat.
>>
>> Hi,
>>
>> This patch fixes the ARI gripe about the use of %llx in aarch64-linux-nat.
>>
>> I'll commit this as obvious shortly.
>>
>> /Marcus
>>
>> 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().
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-13 14:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-13 13:22 [PATCH] Fix %llx ARI gripe in aarch64-linux-nat Marcus Shawcroft
2013-02-13 13:53 ` Pierre Muller
2013-02-13 14:36 ` Marcus Shawcroft
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox