Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Use standard_output_file for saved trace file.
@ 2013-03-13 12:32 Yao Qi
  2013-03-13 15:09 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Yao Qi @ 2013-03-13 12:32 UTC (permalink / raw)
  To: gdb-patches

Hi,
During the review of CTF patches, Tom pointed out that we should use
standard_output_file for these generated trace files.  I've done that
in my CTF patches, but find my recent commit in gdb.trace/report.exp
doesn't follow this rule.  This patch is to fix it.

gdb/testsuite:

2013-03-13  Yao Qi  <yao@codesourcery.com>

	* gdb.trace/report.exp: Use standard_output_file for saved
	trace file.
---
 gdb/testsuite/gdb.trace/report.exp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/gdb.trace/report.exp b/gdb/testsuite/gdb.trace/report.exp
index b32bca1..1ad5696 100644
--- a/gdb/testsuite/gdb.trace/report.exp
+++ b/gdb/testsuite/gdb.trace/report.exp
@@ -406,11 +406,14 @@ gdb_tfind_test "finished: make sure not debugging any trace frame" \
     "none" "-1"
 
 # Save trace frames to tfile.
-gdb_test "tsave report.tf" "Trace data saved to file 'report.tf'.*"
+set tracefile [standard_output_file ${testfile}]
+gdb_test "tsave ${tracefile}.tf" \
+    "Trace data saved to file '${tracefile}.tf'.*" \
+    "save tfile trace file"
 
 # Change target to tfile.
 set test "change to tfile target"
-gdb_test_multiple "target tfile report.tf" "$test" {
+gdb_test_multiple "target tfile ${tracefile}.tf" "$test" {
     -re "A program is being debugged already.  Kill it. .y or n. " {
 	send_gdb "y\n"
 	exp_continue
-- 
1.7.7.6


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-10  5:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-13 12:32 [PATCH] Use standard_output_file for saved trace file Yao Qi
2013-03-13 15:09 ` Tom Tromey
2013-04-10 18:27   ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox