aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorCatalin Udma <catalin.udma@freescale.com>2016-04-05 12:55:14 +0300
committerCatalin Udma <catalin.udma@freescale.com>2016-04-06 09:39:16 +0300
commitac17fda08bf2a75ba561a919f05df95ff07959de (patch)
tree6edef76b60e4caf626f8253fc3aa8dcf843e77c5 /gdb
parent03a8c4dfc295fdebf4dac7a5ee91592e69b404a6 (diff)
downloadgdb-ac17fda08bf2a75ba561a919f05df95ff07959de.zip
gdb-ac17fda08bf2a75ba561a919f05df95ff07959de.tar.gz
gdb-ac17fda08bf2a75ba561a919f05df95ff07959de.tar.bz2
testsuite: Update py-mi-objfile to expect console format print
Starting with this commit: commit e7ea3ec7c623be0b9be1eaf4929794652a84be11 Author: Catalin Udma <catalin.udma@freescale.com> Date: Mon Feb 29 16:16:19 2016 +0200 python: Use console format for output of gdb.execute command the python script would use console format for gdb.execute output. This patch fixes py-mi-objfile to expect the console format when is checking for gdb.execute printing. gdb/testsuite/ChangeLog: 2016-04-05 Catalin Udma <catalin.udma@freescale.com> * gdb.python/py-mi-objfile-gdb.py: Use "list main" command. * gdb.python/py-mi-objfile.exp: Match "list main" output in console format. Signed-off-by: Catalin Udma <catalin.udma@freescale.com>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.python/py-mi-objfile-gdb.py5
-rw-r--r--gdb/testsuite/gdb.python/py-mi-objfile.exp3
3 files changed, 10 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 222e2f5..27806a0 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2016-04-05 Catalin Udma <catalin.udma@freescale.com>
+
+ * gdb.python/py-mi-objfile-gdb.py: Use "list main" command.
+ * gdb.python/py-mi-objfile.exp: Match "list main" output
+ in console format.
+
2016-04-05 Simon Marchi <simon.marchi@polymtl.ca>
* gdb.arch/ftrace-insn-reloc.exp: Check for IPA basename instead of
diff --git a/gdb/testsuite/gdb.python/py-mi-objfile-gdb.py b/gdb/testsuite/gdb.python/py-mi-objfile-gdb.py
index 492d71c..2c7f96d 100644
--- a/gdb/testsuite/gdb.python/py-mi-objfile-gdb.py
+++ b/gdb/testsuite/gdb.python/py-mi-objfile-gdb.py
@@ -22,6 +22,5 @@ import gdb
# This will create one for to_string=True and then another for the
# parameter change notification.
gdb.execute("set width 101", to_string=True)
-# And finally a command that will use the original MI stream, which in a
-# buggy gdb will use just-freed data.
-gdb.execute("list")
+# And finally a command that will use the console stream without redirection
+gdb.execute("list main")
diff --git a/gdb/testsuite/gdb.python/py-mi-objfile.exp b/gdb/testsuite/gdb.python/py-mi-objfile.exp
index 073e4d9..bfa43a2 100644
--- a/gdb/testsuite/gdb.python/py-mi-objfile.exp
+++ b/gdb/testsuite/gdb.python/py-mi-objfile.exp
@@ -53,5 +53,6 @@ if [is_remote host] {
# PR 18833. This will cause an unpatched gdb to crash.
mi_gdb_test "-file-exec-and-symbols ${filename}" \
- ".*\\^done,line=.*${srcfile}\"" \
+ ".*main \\(.*void\\).*\
+ return 0;.*\\^done" \
"file-exec-and-symbols operation"