mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
* nm.c (value_format_64bit): Define appropriately for __MSVCRT__.
(set_print_radix): Update for __MSVCRT__ definition of value_format_64bit.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2010-10-08 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* nm.c (value_format_64bit): Define appropriately for __MSVCRT__.
|
||||||
|
(set_print_radix): Update for __MSVCRT__ definition of
|
||||||
|
value_format_64bit.
|
||||||
|
|
||||||
2010-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
|
2010-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
Fix build with -DDEBUG=7
|
Fix build with -DDEBUG=7
|
||||||
|
@ -164,7 +164,11 @@ static char value_format_32bit[] = "%08lx";
|
|||||||
#if BFD_HOST_64BIT_LONG
|
#if BFD_HOST_64BIT_LONG
|
||||||
static char value_format_64bit[] = "%016lx";
|
static char value_format_64bit[] = "%016lx";
|
||||||
#elif BFD_HOST_64BIT_LONG_LONG
|
#elif BFD_HOST_64BIT_LONG_LONG
|
||||||
|
#ifndef __MSVCRT__
|
||||||
static char value_format_64bit[] = "%016llx";
|
static char value_format_64bit[] = "%016llx";
|
||||||
|
#else
|
||||||
|
static char value_format_64bit[] = "%016I64x";
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
static int print_width = 0;
|
static int print_width = 0;
|
||||||
static int print_radix = 16;
|
static int print_radix = 16;
|
||||||
@ -285,7 +289,11 @@ set_print_radix (char *radix)
|
|||||||
#if BFD_HOST_64BIT_LONG
|
#if BFD_HOST_64BIT_LONG
|
||||||
value_format_64bit[5] = *radix;
|
value_format_64bit[5] = *radix;
|
||||||
#elif BFD_HOST_64BIT_LONG_LONG
|
#elif BFD_HOST_64BIT_LONG_LONG
|
||||||
|
#ifndef __MSVCRT__
|
||||||
value_format_64bit[6] = *radix;
|
value_format_64bit[6] = *radix;
|
||||||
|
#else
|
||||||
|
value_format_64bit[7] = *radix;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
other_format[3] = desc_format[3] = *radix;
|
other_format[3] = desc_format[3] = *radix;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user