aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.base/callfuncs.exp10
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 68d564f..68ede89 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,11 @@
2015-11-20 Jose E. Marchesi <jose.marchesi@oracle.com>
+ * gdb.base/callfuncs.exp (fetch_all_registers): Filter out the
+ pstate register when comparing registers values in
+ sparc64-*-linux-gnu targets to avoid spurious differences.
+
+2015-11-20 Jose E. Marchesi <jose.marchesi@oracle.com>
+
* gdb.arch/sparc-sysstep.c: Include unistd.h for getpid.
2015-11-19 Sandra Loosemore <sandra@codesourcery.com>
diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp
index fda3cb7..28e2fe1 100644
--- a/gdb/testsuite/gdb.base/callfuncs.exp
+++ b/gdb/testsuite/gdb.base/callfuncs.exp
@@ -254,6 +254,16 @@ proc fetch_all_registers {test} {
}
exp_continue
}
+ -re "^pstate\[ \t\]+\[^\r\n\]+\r\n" {
+ if [istarget "sparc64-*-linux-gnu"] {
+ # Filter out the pstate register, since in sparc64
+ # targets the Linux kernel disables pstate.PEF when
+ # returning from traps, giving spurious differences.
+ } else {
+ lappend all_registers_lines $expect_out(0,string)
+ }
+ exp_continue
+ }
-re "^last_break\[ \t\]+\[^\r\n\]+\r\n" {
if [istarget "s390*-*-*"] {
# Filter out last_break which is read-only,