aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2017-12-07 18:27:22 -0500
committerSergio Durigan Junior <sergiodj@redhat.com>2017-12-08 11:27:33 -0500
commit1cd9a73b4280cb133b305ee31a0e87f114bd1be8 (patch)
treea86fbfb98d36c6a033ba9ac39b953e0f0b85268a /gdb/testsuite
parent6b05c8bd437152d7a3ecfc19074ab243ee6c92f2 (diff)
downloadgdb-1cd9a73b4280cb133b305ee31a0e87f114bd1be8.zip
gdb-1cd9a73b4280cb133b305ee31a0e87f114bd1be8.tar.gz
gdb-1cd9a73b4280cb133b305ee31a0e87f114bd1be8.tar.bz2
Adjust gdb.arch/i386-sse-stack-align.exp print statement
Since: commit 7022349d5c86bae74b49225515f42d2e221bd368 Author: Pedro Alves <palves@redhat.com> Date: Mon Sep 4 20:21:13 2017 +0100 Stop assuming no-debug-info functions return int We now have to explicitly tell GDB the type of the non-debug-info function 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-08 Sergio Durigan Junior <sergiodj@redhat.com> * gdb.arch/i386-sse-stack-align.exp: Cast "print" function call "int".
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.arch/i386-sse-stack-align.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index f8fa687..720a9ec 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * gdb.arch/i386-sse-stack-align.exp: Cast "print" function call
+ "int".
+
2017-12-07 Keith Seitz <keiths@redhat.com>
PR breakpoints/22569
diff --git a/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp b/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
index 47fb9f4..946f217 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