This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Missing 0x in phex_nz output


On Thu, Apr 1, 2010 at 4:04 PM, Pedro Alves <pedro@codesourcery.com> wrote:
> On Thursday 01 April 2010 23:54:30, H.J. Lu wrote:
>> How about this one?
>>
>
> Use hex_string instead of adding the "0x"; it does
> that for you. ?Preaproved with that change.

Done.  Thanks.


H.J.
---
>>
>> --
>> H.J.
>> diff --git a/gdb/remote.c b/gdb/remote.c
>> index 395a56d..bb80afb 100644
>> --- a/gdb/remote.c
>> +++ b/gdb/remote.c
>> @@ -4882,7 +4882,7 @@ Packet: '%s'\n"),
>> ? ? ? ? ?++p;
>>
>> ? ? ? ? ?if (reg == NULL)
>> - ? ? error (_("Remote sent bad register number %s: %s\n\
>> + ? ? error (_("Remote sent bad register number 0x%s: %s\n\
>> ?Packet: '%s'\n"),
>> ? ? ? ? ? ? ?phex_nz (pnum, 0), p, buf);
>
>
> --
> Pedro Alves
>



-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]