]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/gdb.fortran/print-formatted.exp
Fix PR fortran/17237: bug in f-valprint.c
authorSergio Durigan Junior <sergiodj@redhat.com>
Thu, 4 Sep 2014 14:28:31 +0000 (10:28 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Thu, 4 Sep 2014 14:30:01 +0000 (10:30 -0400)
commiteb0b04635f2f57506ab4365b32a6fc0b62920d2f
tree3986b8aebc430e79b24014dee46cddd4558994bb
parent5ee44bfa6bdb8eaf7f30eccb4fbdc989cb9bb7ca
Fix PR fortran/17237: bug in f-valprint.c

This commit fixes the PR mentioned in $subject.  It is about a set but
unused variable that refers to the output format of integer values
printed in Fortran.

This was probably a thinko (like most set-but-unused-vars), but it
could cause an internal error depending on the scenario.  I am sending
a testcase which triggers this error as well.

gdb/ChangeLog:
2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>

PR fortran/17237
* f-valprint.c (f_val_print): Specify the correct print option to
use when printing integer values.

gdb/testsuite/ChangeLog:
2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>

PR fortran/17237
* gdb.fortran/print-formatted.exp: New file.
* gdb.fortran/print-formatted.f90: Likewise.
gdb/ChangeLog
gdb/f-valprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/print-formatted.exp [new file with mode: 0644]
gdb/testsuite/gdb.fortran/print-formatted.f90 [new file with mode: 0644]