This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] gdb.ada/lang_switch: Allow msg parameter to be a reference.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>, Joel Brobecker <brobecker at adacore dot com>
- Date: Fri, 7 Dec 2012 07:02:26 +0400
- Subject: [commit] gdb.ada/lang_switch: Allow msg parameter to be a reference.
See http://www.sourceware.org/ml/gdb/2012-12/msg00010.html.
gdb/testsuite/ChangeLog:
* gdb.ada/lang_switch.exp: The "msg" parameter may be a reference.
Tested on x86_64-linux and s390x. Checked in.
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.ada/lang_switch.exp | 5 ++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 335ecff..d440f85 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2012-12-07 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.ada/lang_switch.exp: The "msg" parameter may be a reference.
+
2012-12-06 Pedro Alves <palves@redhat.com>
Tom Tromey <tromey@redhat.com>
diff --git a/gdb/testsuite/gdb.ada/lang_switch.exp b/gdb/testsuite/gdb.ada/lang_switch.exp
index 6ee4c23..a217d2e 100644
--- a/gdb/testsuite/gdb.ada/lang_switch.exp
+++ b/gdb/testsuite/gdb.ada/lang_switch.exp
@@ -42,6 +42,5 @@ gdb_test "bt" \
# if the current language is not "auto".
gdb_test "set lang c"
gdb_test "bt" \
- ".*#1.*lang_switch\\.ada_procedure\\s*\\(msg={.*\\).*" \
- "backtrace"
-
+ ".*#1.*lang_switch\\.ada_procedure\\s*\\(msg=(@$hex: +)?{.*\\).*" \
+ "backtrace with lang set to C"
--
1.7.10.4