This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC 4/6] Always set testsuite mode and interactive mode for mingw hosts.
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'gdb-patches'" <gdb-patches at sourceware dot org>
- Date: Thu, 26 Sep 2013 22:02:33 +0200
- Subject: [RFC 4/6] Always set testsuite mode and interactive mode for mingw hosts.
- Authentication-results: sourceware.org; auth=none
- References: <002901cebaf2$35ec65a0$a1c530e0$ at muller@ics-cnrs.unistra.fr>
In order to get reliable results on mingw compiled GDB,
we still need to convert output mode from text mode to binary mode.
We also need to for GDB to behave interactively, and mingw GDb
do not recognize correctly the pipes used by DejaGnu testsuite
as an interactive setup.
Pierre Muller
GDB pascal language maintainer
2013-09-26 Pierre Muller <muller@sourceware.org>
lib/gdb.exp (mingw hosts): Add "maint set testsuite-mode on" and
"set interactive-mode on" to startup commands.
---
gdb/testsuite/lib/gdb.exp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 5e3331a..031da7e 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -61,6 +61,10 @@ global INTERNAL_GDBFLAGS
if ![info exists INTERNAL_GDBFLAGS] {
set INTERNAL_GDBFLAGS "-nw -nx -data-directory $BUILD_DATA_DIRECTORY"
}
+if [ishost "*-*-mingw*"] {
+ verbose "mingw host, needs testsuite-mode"
+ append INTERNAL_GDBFLAGS " -iex {maint set testsuite-mode on} -iex {set
interactive-mode on}"
+}
# The variable gdb_prompt is a regexp which matches the gdb prompt.
# Set it if it is not already set.
--
1.7.9