Use hex_string instead of phex_nz for error.
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 1 Apr 2010 23:13:24 +0000 (23:13 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 1 Apr 2010 23:13:24 +0000 (23:13 +0000)
2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>

* remote.c (remote_parse_stop_reply): Use hex_string instead
of phex_nz for error.

gdb/ChangeLog
gdb/remote.c

index 087b57d..3c2f5d8 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * remote.c (remote_parse_stop_reply): Use hex_string instead
+       of phex_nz for error.
+
 2010-04-01  Stan Shebs  <stan@codesourcery.com>
            Nathan Sidwell  <nathan@codesourcery.com>
 
index 395a56d..0108fdb 100644 (file)
@@ -4884,7 +4884,7 @@ Packet: '%s'\n"),
              if (reg == NULL)
                error (_("Remote sent bad register number %s: %s\n\
 Packet: '%s'\n"),
-                      phex_nz (pnum, 0), p, buf);
+                      hex_string (pnum), p, buf);
 
              cached_reg.num = reg->regnum;