2011-02-28 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Mon, 28 Feb 2011 22:00:45 +0000 (22:00 +0000)
committerMichael Snyder <msnyder@vmware.com>
Mon, 28 Feb 2011 22:00:45 +0000 (22:00 +0000)
* utils.c (decimal2str): Initialize 'width' to nine, then
don't mess with it.

gdb/gdbserver/ChangeLog
gdb/gdbserver/utils.c

index 02b50a4cd81cbe1caa09da2d7d58b6451b92c6cf..3b7be586363ca8c70c15afe17ba2bf80fc377fb3 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-28  Michael Snyder  <msnyder@vmware.com>
+
+       * utils.c (decimal2str): Initialize 'width' to nine, then
+       don't mess with it.
+
 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * hostio.c (require_data): Free *data, not data.
index 45d032cd9d3e7cc4e9543926672c70593a05a0f9..78ae6f7fcee0627384b186cf79d3328387488a19 100644 (file)
@@ -263,19 +263,16 @@ decimal2str (char *sign, ULONGEST addr)
   unsigned long temp[3];
   char *str = get_cell ();
   int i = 0;
-  int width;
+  int width = 9;
 
   do
     {
       temp[i] = addr % (1000 * 1000 * 1000);
       addr /= (1000 * 1000 * 1000);
       i++;
-      width -= 9;
     }
   while (addr != 0 && i < (sizeof (temp) / sizeof (temp[0])));
 
-  width = 9;
-
   switch (i)
     {
     case 1:
This page took 0.031962 seconds and 4 git commands to generate.