aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-valprint.c
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>2000-05-23 15:56:33 +0000
committerDavid Taylor <taylor@redhat.com>2000-05-23 15:56:33 +0000
commit9af9729377dcf027c06e1bf21f958df2c8907c3c (patch)
tree193669b6e580c46e59252f7a85f9a614352b02c5 /gdb/f-valprint.c
parentf5ff8c83c82bcf6d152bf5390a6ca8716dab1de3 (diff)
downloadgdb-9af9729377dcf027c06e1bf21f958df2c8907c3c.zip
gdb-9af9729377dcf027c06e1bf21f958df2c8907c3c.tar.gz
gdb-9af9729377dcf027c06e1bf21f958df2c8907c3c.tar.bz2
one line fix by Gregory Lielens <Gregory.Lielens@fft.be> to fix a problem
with the printing of complex numbers (it would print the real part twice).
Diffstat (limited to 'gdb/f-valprint.c')
-rw-r--r--gdb/f-valprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
index a007c87..92a10f2 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -564,7 +564,7 @@ f_val_print (type, valaddr, embedded_offset, address, stream, format, deref_ref,
fputs_filtered ("(", stream);
print_floating (valaddr, type, stream);
fputs_filtered (",", stream);
- print_floating (valaddr, type, stream);
+ print_floating (valaddr + TYPE_LENGTH (type), type, stream);
fputs_filtered (")", stream);
break;