From a10c9419a4c9533a651c831ea505ed87825276ed Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 18 Sep 2001 17:49:06 +0000 Subject: [PATCH] * gdb.base/ending-run.c (main): Set stdout buffersize to the same reasonable value for any target. * gdb.base/ending-run.exp: Add a regular expression to make testsuite happy on Sanyo Stormy16 target. --- gdb/testsuite/ChangeLog | 7 +++++++ gdb/testsuite/gdb.base/ending-run.c | 2 +- gdb/testsuite/gdb.base/ending-run.exp | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index bf5afd1898b..23445950581 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2001-09-18 Corinna Vinschen + + * gdb.base/ending-run.c (main): Set stdout buffersize + to the same reasonable value for any target. + * gdb.base/ending-run.exp: Add a regular expression + to make testsuite happy on Sanyo Stormy16 target. + 2001-09-17 Corinna Vinschen * gdb.base/display.c (do_loops): Add float variable `f'. diff --git a/gdb/testsuite/gdb.base/ending-run.c b/gdb/testsuite/gdb.base/ending-run.c index 09361460d7b..ccf8c502668 100644 --- a/gdb/testsuite/gdb.base/ending-run.c +++ b/gdb/testsuite/gdb.base/ending-run.c @@ -22,7 +22,7 @@ int main() int i; p = (int *) malloc( 4 ); - + setvbuf (stdout, alloca (64), _IOLBF, 64); for (i = 1; i < 10; i++) { printf( "%d ", callee( i )); diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp index 360edc89f22..c35caf6187c 100644 --- a/gdb/testsuite/gdb.base/ending-run.exp +++ b/gdb/testsuite/gdb.base/ending-run.exp @@ -170,6 +170,10 @@ gdb_expect { # This is what happens on Solaris currently -sts 1999-08-25 pass "step out of main on Solaris" } + -re ".*in _int_reset ().*$gdb_prompt $" { + # This is what happens on Sanyo Stormy16 + pass "step out of main" + } -re ".*in ..change.mode ().*$gdb_prompt $" { # This is what happens on ARM in thumb mode -fn 2000-02-01 pass "step out of main on ARM thumb" -- 2.30.2