diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8c0438f355c..701d979b79a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-09-18 Sergio Durigan Junior + + * gdb.arch/amd64-invalid-stack-top.exp: Expect optional + "arch=" keyword when executing "-stack-list-frames". + 2018-09-18 Sergio Durigan Junior * gdb.arch/amd64-invalid-stack-middle.exp: Expect optional diff --git a/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp b/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp index 64bcfe00994..d3a4eab9475 100644 --- a/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp +++ b/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp @@ -72,9 +72,9 @@ if ![runto breakpt] { } gdb_test "interpreter-exec mi \"-stack-list-frames\"" \ - "\\^done,stack=\\\[frame=\{level=\"0\",addr=\"$hex\",func=\"func2\"\}\\\]" \ + "\\^done,stack=\\\[frame=\{level=\"0\",addr=\"$hex\",func=\"func2\"(,arch=\"\[^\"\]+\")?\}\\\]" \ "check mi -stack-list-frames command, first time" gdb_test "interpreter-exec mi \"-stack-list-frames\"" \ - "\\^done,stack=\\\[frame=\{level=\"0\",addr=\"$hex\",func=\"func2\"\}\\\]" \ + "\\^done,stack=\\\[frame=\{level=\"0\",addr=\"$hex\",func=\"func2\"(,arch=\"\[^\"\]+\")?\}\\\]" \ "check mi -stack-list-frames command, second time"