This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH OBV] Use the right file name on remote host
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Thu, 26 Sep 2013 08:59:11 +0800
- Subject: [PATCH OBV] Use the right file name on remote host
- Authentication-results: sourceware.org; auth=none
File ${msymfile} is generated on host, and used on host. If the host
is remote, it makes no sense to set msymfile by standard_output_file.
This patch sets msymfile to "shreloc.txt" when host is remote.
It fixes some fails in gdb.base/shreloc.exp.
gdb/testsuite:
2013-09-26 Yao Qi <yao@codesourcery.com>
* gdb.base/shreloc.exp: Set $msymfile to 'shreloc.txt' if host
is remote.
---
gdb/testsuite/gdb.base/shreloc.exp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/gdb/testsuite/gdb.base/shreloc.exp b/gdb/testsuite/gdb.base/shreloc.exp
index 2baf676..8a53359 100644
--- a/gdb/testsuite/gdb.base/shreloc.exp
+++ b/gdb/testsuite/gdb.base/shreloc.exp
@@ -221,7 +221,11 @@ proc check_different {var msymfile} {
return 1
}
-set msymfile [standard_output_file shreloc.txt]
+if [is_remote host] {
+ set msymfile shreloc.txt
+} else {
+ set msymfile [standard_output_file shreloc.txt]
+}
if [send_gdb_discard "maint print msymbols ${msymfile}"] {
if {[check_different "static_var_\[12\]" "${msymfile}"]} {
--
1.7.7.6