This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix illegal upper case gdb cmd in chained-calls.exp
- From: Thomas Preud'homme <thopre01 at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 15 Feb 2017 11:28:10 -0000
- Subject: [binutils-gdb] Fix illegal upper case gdb cmd in chained-calls.exp
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b58a8c0c83d58c8f4be67dc1d7a1d9a5e1edba82
commit b58a8c0c83d58c8f4be67dc1d7a1d9a5e1edba82
Author: Thomas Preud'homme <thomas.preudhomme@arm.com>
Date: Wed Feb 15 11:24:27 2017 +0000
Fix illegal upper case gdb cmd in chained-calls.exp
3d7b173c29900879c9a5958dd6029fd36666e57c made upper case commands now
illegal. However gdb.cp/chained-calls.exp still contains one test using
P to print an expression. This patch fixes the testcase to use p
instead.
2017-02-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
gdb/
* gdb.cp/chained-calls.exp: Use p instead of P.
Diff:
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.cp/chained-calls.exp | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 7b58506..0a4f81e 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2017-02-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
+
+ * gdb.cp/chained-calls.exp: Use p instead of P.
+
2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
* gdb.python/py-record-btrace.c, gdb.python/py-record-btrace.exp,
diff --git a/gdb/testsuite/gdb.cp/chained-calls.exp b/gdb/testsuite/gdb.cp/chained-calls.exp
index c48bd49..17c164d 100644
--- a/gdb/testsuite/gdb.cp/chained-calls.exp
+++ b/gdb/testsuite/gdb.cp/chained-calls.exp
@@ -40,5 +40,5 @@ gdb_test "p g(f(g(f(300) + f(40))) + f(5))" ".* = 345" \
gdb_test "p getb(makeb(), 789)" ".* = 789" "getb(makeb(), ...)"
gdb_test "p *c" ".* = {a = 5678}" "*c"
gdb_test "p *c + *c" ".* = {a = 11356}" "*c + *c"
-gdb_test "P q(*c + *c)" ".* = {a = 11356}" "q(*c + *c)"
+gdb_test "p q(*c + *c)" ".* = {a = 11356}" "q(*c + *c)"
gdb_test "p make_int().get_type ()" ".* = INT" "make_int().get_type ()"