diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-01-24 20:35:35 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-01-24 20:35:35 +0000 |
commit | 30b91c90791df291e824964776a8c9c89d66d4bc (patch) | |
tree | 84535c5af35349f2c394d147b6648d22e19d483e | |
parent | a9b3a50fbaa6ade527760b3183885e2eb24d339b (diff) | |
download | gdb-30b91c90791df291e824964776a8c9c89d66d4bc.zip gdb-30b91c90791df291e824964776a8c9c89d66d4bc.tar.gz gdb-30b91c90791df291e824964776a8c9c89d66d4bc.tar.bz2 |
gdb/testsuite/
Fix fuzzy results.
* gdb.mi/var-cmd.c (do_locals_tests): Initialize variables lsimple,
lpsimple and func.
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/var-cmd.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 95a890d..bad0406 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> + + Fix fuzzy results. + * gdb.mi/var-cmd.c (do_locals_tests): Initialize variables lsimple, + lpsimple and func. + 2012-01-24 Gary Benson <gbenson@redhat.com> Delete #if 0'd out code. diff --git a/gdb/testsuite/gdb.mi/var-cmd.c b/gdb/testsuite/gdb.mi/var-cmd.c index 0a993a1..abdeb66 100644 --- a/gdb/testsuite/gdb.mi/var-cmd.c +++ b/gdb/testsuite/gdb.mi/var-cmd.c @@ -140,9 +140,9 @@ do_locals_tests () float *lpfloat = 0; double ldouble = 0; double *lpdouble = 0; - struct _simple_struct lsimple; - struct _simple_struct *lpsimple; - void (*func) (void); + struct _simple_struct lsimple = { 0 }; + struct _simple_struct *lpsimple = 0; + void (*func) (void) = 0; /* Simple assignments */ linteger = 1234; |