diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2011-08-01 16:02:03 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2011-08-01 16:02:03 +0000 |
commit | fbe12357d4aaa2725add205fca71cbbc3cc82f9d (patch) | |
tree | 1de260706743f9cbebc22501868fed9fdf266858 /gdb/doublest.c | |
parent | b1d288d35675434002cd5681b000a0e037989d36 (diff) | |
download | gdb-fbe12357d4aaa2725add205fca71cbbc3cc82f9d.zip gdb-fbe12357d4aaa2725add205fca71cbbc3cc82f9d.tar.gz gdb-fbe12357d4aaa2725add205fca71cbbc3cc82f9d.tar.bz2 |
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.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/doublest.c b/gdb/doublest.c index a339887..0739fdb 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; } |