aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2003-08-27 17:57:33 +0000
committerIan Lance Taylor <ian@airs.com>2003-08-27 17:57:33 +0000
commit49c97a80e31aa4752506c71c2bca013235f13649 (patch)
treee453112e9e751376374f2c8bb4bfd1380826ba6e /bfd/bfd.c
parentec317fb15734bd40e97f49c0f4718a5e316f5a22 (diff)
downloadgdb-49c97a80e31aa4752506c71c2bca013235f13649.zip
gdb-49c97a80e31aa4752506c71c2bca013235f13649.tar.gz
gdb-49c97a80e31aa4752506c71c2bca013235f13649.tar.bz2
* configure.in: Check for strtoull.
* bfd.c (bfd_scan_vma): Use strtoull when available. * configure, config.in: Regenerate.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r--bfd/bfd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 472d0ed..2957747 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -920,6 +920,11 @@ bfd_scan_vma (const char *string, const char **end, int base)
if (sizeof (bfd_vma) <= sizeof (unsigned long))
return strtoul (string, (char **) end, base);
+#ifdef HAVE_STRTOULL
+ if (sizeof (bfd_vma) <= sizeof (unsigned long long))
+ return strtoull (string, (char **) end, base);
+#endif
+
if (base == 0)
{
if (string[0] == '0')