mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
2011-02-28 Michael Snyder <msnyder@vmware.com>
* utils.c (decimal2str): Initialize 'width' to nine, then don't mess with it.
This commit is contained in:
@ -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>
|
2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* hostio.c (require_data): Free *data, not data.
|
* hostio.c (require_data): Free *data, not data.
|
||||||
|
@ -263,19 +263,16 @@ decimal2str (char *sign, ULONGEST addr)
|
|||||||
unsigned long temp[3];
|
unsigned long temp[3];
|
||||||
char *str = get_cell ();
|
char *str = get_cell ();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int width;
|
int width = 9;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
temp[i] = addr % (1000 * 1000 * 1000);
|
temp[i] = addr % (1000 * 1000 * 1000);
|
||||||
addr /= (1000 * 1000 * 1000);
|
addr /= (1000 * 1000 * 1000);
|
||||||
i++;
|
i++;
|
||||||
width -= 9;
|
|
||||||
}
|
}
|
||||||
while (addr != 0 && i < (sizeof (temp) / sizeof (temp[0])));
|
while (addr != 0 && i < (sizeof (temp) / sizeof (temp[0])));
|
||||||
|
|
||||||
width = 9;
|
|
||||||
|
|
||||||
switch (i)
|
switch (i)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
|
Reference in New Issue
Block a user