aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-11-24 06:50:12 +0000
committerAndrew Cagney <cagney@redhat.com>1997-11-24 06:50:12 +0000
commitf7b8c9ce46cd96bb86beddc9e33663a556702c61 (patch)
tree849a16ca5921a0b2a647b234e91023af49605a81 /gdb/c-exp.y
parentd14573e31eb6c22006d00de0be5336cfbc69257a (diff)
downloadgdb-f7b8c9ce46cd96bb86beddc9e33663a556702c61.zip
gdb-f7b8c9ce46cd96bb86beddc9e33663a556702c61.tar.gz
gdb-f7b8c9ce46cd96bb86beddc9e33663a556702c61.tar.bz2
Improve GDB support for FreeBSD host/target.
To configure.in: make PRINTF_HAS_LONG_LONG check more pedantic; check that SCANF_HAS_LONG_DOUBLE instead of assuming PRINTF_HAS_LONG_DOUBLE implies it; document.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 7ea6c1f..7316ae8 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -936,7 +936,7 @@ parse_number (p, len, parsed_float, putithere)
num = sscanf (p, "%lg%c", (double *) &putithere->typed_val_float.dval,&c);
else
{
-#ifdef PRINTF_HAS_LONG_DOUBLE
+#ifdef SCANF_HAS_LONG_DOUBLE
num = sscanf (p, "%Lg%c", &putithere->typed_val_float.dval,&c);
#else
/* Scan it into a double, then assign it to the long double.