This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Testsuite fix for ending-run.exp "step at end 2"
- To: gdb-patches at sources dot redhat dot com
- Subject: Testsuite fix for ending-run.exp "step at end 2"
- From: Drew Moseley <dmoseley at redhat dot com>
- Date: Thu, 26 Oct 2000 14:16:55 -0400
The following patch and ChangeLog entry fix a case where the
gdb.base/ending-run.exp test reports a failure when running on real
hardware. This case is not really a failure and this patch recognizes
it as such.
Drew Moseley
Index: gdb/testsuite/gdb.base/ending-run.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/ending-run.exp,v
retrieving revision 1.12
diff -u -5 -r1.12 ending-run.exp
--- gdb/testsuite/gdb.base/ending-run.exp 2000/10/17 19:37:38
1.12
+++ gdb/testsuite/gdb.base/ending-run.exp 2000/10/26 17:32:17
@@ -1,6 +1,6 @@
-# Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1997, 1998, 1999, 2000 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@@ -148,10 +148,13 @@
-re ".*Unable to find return pc for this frame.*$gdb_prompt
$" {
fail "Old bug came back!"
gdb_test "n" ".*" ""
}
-re ".*in.*start.*$gdb_prompt $" {
+ pass "step out of main"
+ }
+ -re ".*in.*bsp_trap.*$gdb_prompt $" {
pass "step out of main"
}
-re ".*in.*init.*$gdb_prompt $" {
# This is what happens on sparc64-elf ultra.
pass "step out of main"
ChangeLog Entry:
================
2000-10-26 Drew Moseley <dmoseley@redhat.com>
* gdb.base/ending-run.exp: Properly handle the BSP state when
stepping past the end of main.
--
mailto:dmoseley@redhat.com