Re: [RFA] New gnats #14 bug fix

John R. Moore
2001-02-19T10:36:00Z

This time, we pulled the hpux fix for this into all platforms.
This was tested with cvs version of gcc (2.97) on linux-2.4.

Changelog:

2001-02-19 John Moore <jmoore@redhat.com>

* gdb.base/commands.exp (infrun_breakpoint_command_test):
Converted HPUX fix for non-expected items following multiple
step commands into general solution for all platforms.

Index: commands.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/commands.exp,v
retrieving revision 1.6
diff -p -u -w -r1.6 gdb/testsuite/gdb.base/commands.exp
--- commands.exp 2000/10/24 18:36:32 1.6
+++ commands.exp 2001/02/19 16:50:30
@@ -202,26 +202,9 @@ proc infrun_breakpoint_command_test {} {
gdb_test "step\nstep\nstep\nstep\nbt\nend" "" \
"commands in infrun_breakpoint_command_test #2"

- if { [istarget "hppa*-hp-hpux*"] } {
gdb_test "continue" \
"Continuing.*.*.*Breakpoint \[0-9\]*, factorial \\(value=5\\).*at.*\[0-9\]*\[ \]*if \\(value > 1\\) \{.*\[0-9\]*\[ \]*value \\*= factorial \\(value - 1\\);.*" \
"continue in infrun_breakpoint_command_test"
- } else {
- gdb_test "continue" \
- "Breakpoint \[0-9\]*, factorial \\(value=5\\).*at.*
-\[0-9\]*\[ \]*if \\(value > 1\\) \{.*
-\[0-9\]*\[ \]*value \\*= factorial \\(value - 1\\);.*
-factorial \\(value=4\\) at.*\[0-9\]*\[ \]*if \\(value > 1\\) \{.*
-\[0-9\]*\[ \]*value \\*= factorial \\(value - 1\\);.*
-factorial \\(value=3\\) at .*
-\[0-9\]*\[ \]*if \\(value > 1\\) \{.*
-#0 factorial \\(value=3\\).*
-#1 \[0-9a-fx\]* in factorial \\(value=4\\).*
-#2 \[0-9a-fx\]* in factorial \\(value=5\\).*
-#3 \[0-9a-fx\]* in factorial \\(value=6\\).*
-#4 \[0-9a-fx\]* in main \\(.*\\).*" \
- "continue in infrun_breakpoint_command_test";
- }

gdb_stop_suppressing_tests;
}