fix up log-file toggling
authorTom Tromey <tromey@redhat.com>
Thu, 22 Aug 2013 19:09:35 +0000 (13:09 -0600)
committerTom Tromey <tromey@redhat.com>
Mon, 4 Nov 2013 17:55:19 +0000 (10:55 -0700)
commit95d7853ebb9258f938839ef257242f10851c7c09
tree22859ba4fe68babb832f8ee8abe00b143a6ea557
parente4630f71b252fa13df07f93d427e7c9f4505c1fe
fix up log-file toggling

Currently a proc in gdb.exp toggles the expect (and thus dejagnu)
logging.  This is not a super idea, but it is there to avoid putting
some preprocessor output into the log.

In the right circumstances, this can result in the log file being
mysteriously truncated.  I think this happens because it doesn't
necessarily write to the correct log file again.

The fix is to use "log_file -info" to save the previous log file.

2013-11-04  Tom Tromey  <tromey@redhat.com>

* lib/gdb.exp (get_compiler_info): Use log_file -info and
restore from that.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp
This page took 0.024633 seconds and 4 git commands to generate.