Index: gdb/testsuite/gdb.arch/amd64-entry-value.exp |
diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value.exp b/gdb/testsuite/gdb.arch/amd64-entry-value.exp |
index dd22d42f619347e2752a3d86b816a7ea998c0950..2393a717f31479c0e218da79502471b3b95733c1 100644 |
--- a/gdb/testsuite/gdb.arch/amd64-entry-value.exp |
+++ b/gdb/testsuite/gdb.arch/amd64-entry-value.exp |
@@ -1,4 +1,4 @@ |
-# Copyright (C) 2011-2012 Free Software Foundation, Inc. |
+# Copyright (C) 2011-2013 Free Software Foundation, Inc. |
# This program is free software; you can redistribute it and/or modify |
# it under the terms of the GNU General Public License as published by |
@@ -13,8 +13,7 @@ |
# You should have received a copy of the GNU General Public License |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
-set testfile amd64-entry-value |
-set srcfile ${testfile}.s |
+standard_testfile .s |
set opts {} |
if [info exists COMPILE] { |
@@ -213,6 +212,25 @@ gdb_test {p $sp0 == $sp} " = true" |
gdb_test "frame 3" "\r\n#3 .*" |
gdb_test {p $sp0 + sizeof (void *) == $sp} " = true" |
+# Test $pc adjustment which is now right after the function end. |
+# Also verify the current PC indicator "=> " is not displayed anywhere. |
+gdb_test "down" "\r\n#2 .*" |
+set test "disassemble" |
+gdb_test_multiple $test $test { |
+ -re "^$test\r\n" { |
+ exp_continue |
+ } |
+ -re "^Dump of assembler code for function b\\(int, double\\):\r\n" { |
+ exp_continue |
+ } |
+ -re "^ 0x\[^\r\n\]*\r\n" { |
+ exp_continue |
+ } |
+ -re "^End of assembler dump\\.\r\n$gdb_prompt $" { |
+ pass $test |
+ } |
+} |
+ |
# Test partial-ambiguous virtual tail call frames chain. |