This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Missing 0x in phex_nz output
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.
>
> --
> 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