Missing 0x in phex_nz output

Stan Shebs stan@codesourcery.com
Thu Apr 1 22:50:00 GMT 2010


H.J. Lu wrote:
> Hi,
>
> phex_nz returns a string of hex number. But 0x is missing in many outputs:
>
> m32r-rom.c:      monitor_printf ("%s mw\r", phex_nz (section_base, addr_size));
> monitor.c:	monitor_printf ("%s\r", phex_nz (val, reg_size));
> monitor.c:	monitor_printf ("%s\r", phex_nz (val, reg_size));
> remote.c:  xsnprintf (buf, get_remote_packet_size (), "P%s=", phex_nz
> (reg->pnum, 0));
> remote.c:      sprintf (p, "pc:%s", phex_nz (addr1, 0));
> remote.c:      sprintf (p, "range:%s:%s", phex_nz (addr1, 0), phex_nz
> (addr2, 0));
> remote.c:      sprintf (p, "outside:%s:%s", phex_nz (addr1, 0),
> phex_nz (addr2, 0));
>   

All these cases are ones in which interface protocol prescribes that the 
values be hexadecimal, but with no qualifying prefix.

Stan




More information about the Gdb-patches mailing list