aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/i386-prologue.exp
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-02-13 22:33:26 +0000
committerMark Kettenis <kettenis@gnu.org>2006-02-13 22:33:26 +0000
commit31d8bdd239bf74d90a9db06ff9e0690135b845b3 (patch)
treecf28385fb5dd017d49b4cfc70f2f7a36e625e2de /gdb/testsuite/gdb.arch/i386-prologue.exp
parent34e41e637a9134fd5d3fa00eefe4b42428e7ddc8 (diff)
downloadgdb-31d8bdd239bf74d90a9db06ff9e0690135b845b3.zip
gdb-31d8bdd239bf74d90a9db06ff9e0690135b845b3.tar.gz
gdb-31d8bdd239bf74d90a9db06ff9e0690135b845b3.tar.bz2
* gdb.arch/i386-prologue.exp: Add testcase for PR breakpoints/2080.
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-prologue.exp')
-rw-r--r--gdb/testsuite/gdb.arch/i386-prologue.exp36
1 files changed, 35 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-prologue.exp b/gdb/testsuite/gdb.arch/i386-prologue.exp
index 48aad1c..39f2a6d 100644
--- a/gdb/testsuite/gdb.arch/i386-prologue.exp
+++ b/gdb/testsuite/gdb.arch/i386-prologue.exp
@@ -1,4 +1,4 @@
-# Copyright 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2006 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
@@ -93,6 +93,38 @@ gdb_test "info frame" \
".*Saved registers:.*ebp at.*edi at.*eip at.*" \
"saved registers in standard"
+
+# Testcase from breakpoints/2080.
+
+gdb_test "break *(stack_align + 7)" \
+ "Breakpoint \[0-9\]* at $hex"
+
+gdb_test "continue" \
+ "Breakpoint \[0-9\]*.*stack_align.*" \
+ "continue to stack_align + 7"
+
+setup_kfail *-*-* gdb/2080
+gdb_test "backtrace 10" \
+ "#0\[ \t\]*$hex in stack_align.*\r\n#1\[ \t\]*$hex in main.*" \
+ "first backtrace in stack_align"
+
+gdb_test "continue" \
+ "Program received signal SIGTRAP.*" \
+ "continue in stack_align"
+
+skip_breakpoint stack_align
+
+setup_kfail *-*-* gdb/2080
+gdb_test "backtrace 10" \
+ "#0\[ \t\]*$hex in stack_align.*\r\n#1\[ \t\]*$hex in main.*" \
+ "second backtrace in stack_align"
+
+setup_kfail *-*-* gdb/2080
+gdb_test "info frame" \
+ ".*Saved registers:.*ecx at.*ebp at.*edi at.*eip at.*" \
+ "saved registers in stack_align"
+
+
# Testcase from symtab/1253.
gdb_test "continue" "Program received signal SIGTRAP.*" "continue to gdb1253"
@@ -107,6 +139,7 @@ gdb_test "info frame" \
".*Saved registers:.*ebp at.*edi at.*eip at.*" \
"saved registers in gdb1253"
+
# Testcase from backtrace/1718.
gdb_test "continue" "Program received signal SIGTRAP.*" "continue to gdb1718"
@@ -122,6 +155,7 @@ gdb_test "info frame" \
".*Saved registers:.*esi at.*ebx at.*eip at.*" \
"saved registers in gdb1718"
+
# Testcase from backtrace/1338.
gdb_test "continue" "Program received signal SIGTRAP.*" "continue to gdb1338"