aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-01-29 16:36:33 +0000
committerNick Clifton <nickc@redhat.com>2008-01-29 16:36:33 +0000
commit2e14fae29a88badc00f7707721f1fdf551391919 (patch)
tree4ccbc98a12a4ecef62fc575641e3d5543a9727db /binutils/dwarf.c
parentc55a82bb3c2419caa36768233704e9ef424aff36 (diff)
downloadgdb-2e14fae29a88badc00f7707721f1fdf551391919.zip
gdb-2e14fae29a88badc00f7707721f1fdf551391919.tar.gz
gdb-2e14fae29a88badc00f7707721f1fdf551391919.tar.bz2
* dwarf.c (print_dwarf_vma): Use mingw field type specified if necessary.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 057a1e6..814e479 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -175,8 +175,12 @@ print_dwarf_vma (dwarf_vma val, unsigned byte_size)
integer value, so we print the full value into a buffer and then select
the precision we need. */
#if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2)
+#ifndef __MSVCRT__
snprintf (buff, sizeof (buff), "%16.16llx ", val);
#else
+ snprintf (buff, sizeof (buff), "%016I64x ", val);
+#endif
+#else
snprintf (buff, sizeof (buff), "%16.16lx ", val);
#endif