This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Add completer to commands 'target {core/tfile/exec}'
- From: Yao Qi <yao at codesourcery dot com>
- To: Doug Evans <dje at google dot com>
- Cc: Pedro Alves <palves at redhat dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 3 Apr 2013 18:05:14 +0800
- Subject: Re: [PATCH] Add completer to commands 'target {core/tfile/exec}'
- References: <1364462710-16702-1-git-send-email-yao at codesourcery dot com> <51545E43 dot 1020703 at redhat dot com> <5155B1A9 dot 3030503 at codesourcery dot com> <CADPb22RRFHi_54L96B-dvzzKFOHfntfM_5jKQNd6D0t7pv8vXQ at mail dot gmail dot com> <515BA2E7 dot 6080808 at codesourcery dot com>
On 04/03/2013 11:32 AM, Yao Qi wrote:
> gdb/testsuite:
>
> 2013-04-03 Yao Qi<yao@codesourcery.com>
>
> * gdb.trace/tfile.c (write_basic_trace_file): Pass argument
> "tfile-basic.tf" instead of "basic.tf".
> (write_error_trace_file): Pass argument "tfile-error.tf"
> instead of "error.tf".
> * gdb.trace/tfile.exp: Update tfile names to
> "tfile-basic.tf" and "tfile-error.tf".
The change on tfile name affects gdb.trace/mi-traceframe-changed.exp.
Update the tfile name in it.
--
Yao (éå)
gdb/testsuite:
2013-04-03 Yao Qi <yao@codesourcery.com>
* gdb.trace/mi-traceframe-changed.exp: Update tfile name to
"tfile-basic.tf".
(test_tfind_tfile): Likewise.
---
gdb/testsuite/gdb.trace/mi-traceframe-changed.exp | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/gdb/testsuite/gdb.trace/mi-traceframe-changed.exp b/gdb/testsuite/gdb.trace/mi-traceframe-changed.exp
index 7849a7e..cb83dbe 100644
--- a/gdb/testsuite/gdb.trace/mi-traceframe-changed.exp
+++ b/gdb/testsuite/gdb.trace/mi-traceframe-changed.exp
@@ -27,12 +27,13 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
}
# Make sure we are starting fresh.
-remote_file host delete basic.tf
-remote_file target delete basic.tf
+remote_file host delete tfile-basic.tf
+remote_file target delete tfile-basic.tf
remote_exec target "$binfile"
# Copy tracefile from target to host.
-remote_download host [remote_upload target basic.tf] basic.tf
+remote_download host [remote_upload target tfile-basic.tf] \
+ tfile-basic.tf
proc test_tfind_tfile { } {
with_test_prefix "tfile" {
@@ -44,7 +45,7 @@ proc test_tfind_tfile { } {
}
mi_gdb_load ${binfile}
- mi_gdb_test "-target-select tfile basic.tf" \
+ mi_gdb_test "-target-select tfile tfile-basic.tf" \
".*=breakpoint-created,bkpt=\{number=\"${decimal}\",type=\"tracepoint\",disp=\"keep\",enabled=\"y\",.*,func=\"write_basic_trace_file\".*\\^connected" \
"select trace file"
--
1.7.7.6