From b6702b23360ddb41470fd527a6e2ef6ad457f6be Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 1 Aug 2004 14:28:51 +0000 Subject: * gdb.arch/i386-prologue.exp: Add testcase for standard prolgue. * gdb.arch/i386-prologue.c (standard): New prototype and function. (main): Call new function. --- gdb/testsuite/gdb.arch/i386-prologue.exp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gdb/testsuite/gdb.arch/i386-prologue.exp') diff --git a/gdb/testsuite/gdb.arch/i386-prologue.exp b/gdb/testsuite/gdb.arch/i386-prologue.exp index 420773c6037..4c5089848d6 100644 --- a/gdb/testsuite/gdb.arch/i386-prologue.exp +++ b/gdb/testsuite/gdb.arch/i386-prologue.exp @@ -61,6 +61,18 @@ if ![runto_main] then { gdb_suppress_tests } +# Testcase for standard prologue. + +gdb_test "continue" "Program received signal SIGTRAP.*" "continue to standard" + +gdb_test "backtrace 10" \ + "#0\[ \t\]*$hex in standard.*\r\n#1\[ \t\]*$hex in main.*" \ + "backtrace in standard" + +gdb_test "info frame" \ + ".*Saved registers:.*ebp at.*edi at.*eip at.*" \ + "saved registers in standard" + # Testcase from symtab/1253. gdb_test "continue" "Program received signal SIGTRAP.*" "continue to gdb1253" -- cgit v1.2.1