This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] Adjust gdb.arch/i386-sse-stack-align.exp print statement
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Cc: Pedro Alves <palves at redhat dot com>, Sergio Durigan Junior <sergiodj at redhat dot com>
- Date: Thu, 7 Dec 2017 18:30:15 -0500
- Subject: [RFA] Adjust gdb.arch/i386-sse-stack-align.exp print statement
- Authentication-results: sourceware.org; auth=none
- References: <1499959929-29497-9-git-send-email-palves@redhat.com>
Since:
commit 46a4882b3c7d9ec981568b8b13a3c9c39c8f8e61
Author: Pedro Alves <palves@redhat.com>
Date: Mon Sep 4 20:21:15 2017 +0100
Stop assuming no-debug-info variables have type int
We now have to explicitly tell GDB the type of the non-debug-info
variable we want to print (by casting). This commit adjusts the
"print" statement on gdb.arch/i386-sse-stack-align.exp to do the
proper cast, fixing a failure that started to happen after the
mentioned commit.
gdb/testsuite/ChangeLog:
2017-12-07 Sergio Durigan Junior <sergiodj@redhat.com>
* gdb.arch/i386-sse-stack-align.exp: Cast "print" variable to
"int".
---
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.arch/i386-sse-stack-align.exp | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 53f114aa15..81d23d1bb1 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2017-12-07 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * gdb.arch/i386-sse-stack-align.exp: Cast "print" variable to
+ "int".
+
2017-12-07 Keith Seitz <keiths@redhat.com>
* gdb.cp/nested-types.cc: New file.
diff --git a/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp b/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
index 47fb9f42d2..946f217ce1 100644
--- a/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
+++ b/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
@@ -43,7 +43,7 @@ if ![runto_main] then {
set args ""
foreach i {0 1 2 3 4} {
- set test "print g$i ($args)"
+ set test "print (int) g$i ($args)"
gdb_test_multiple $test $test {
-re " = 2\r\n$gdb_prompt $" {
pass $test
--
2.14.3