aboutsummaryrefslogtreecommitdiff
path: root/gdb/doublest.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2011-08-01 16:02:03 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2011-08-01 16:02:03 +0000
commitfbe12357d4aaa2725add205fca71cbbc3cc82f9d (patch)
tree1de260706743f9cbebc22501868fed9fdf266858 /gdb/doublest.c
parentb1d288d35675434002cd5681b000a0e037989d36 (diff)
2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gdb/13045 * doublest.c (convert_doublest_to_floatformat): Pass correct mantissa length to put_field. testsuite/ChangeLog: 2011-07-30 Paul Pluzhnikov <ppluzhnikov@google.com> PR gdb/13045 * gdb.base/float.exp: Add new test case for PR gdb/13045 * gdb.base/float.c: New file.
Diffstat (limited to 'gdb/doublest.c')
-rw-r--r--gdb/doublest.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/doublest.c b/gdb/doublest.c
index a339887f8e..0739fdb91a 100644
--- a/gdb/doublest.c
+++ b/gdb/doublest.c
@@ -274,10 +274,6 @@ convert_floatformat_to_doublest (const struct floatformat *fmt,
*to = dto;
}
-static void put_field (unsigned char *, enum floatformat_byteorders,
- unsigned int,
- unsigned int, unsigned int, unsigned long);
-
/* Set a field which starts at START and is LEN bytes long. DATA and
TOTAL_LEN are the thing we are extracting it from, in byteorder ORDER. */
static void
@@ -449,7 +445,7 @@ convert_doublest_to_floatformat (CONST struct floatformat *fmt,
fmt->exp_len, fmt->exp_nan);
/* Be sure it's not infinity, but NaN value is irrel. */
put_field (uto, order, fmt->totalsize, fmt->man_start,
- 32, 1);
+ fmt->man_len, 1);
goto finalize_byteorder;
}