Missing 0x in phex_nz output

H.J. Lu hjl.tools@gmail.com
Thu Apr 1 23:13:00 GMT 2010


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.



More information about the Gdb-patches mailing list