| Index: gdb/testsuite/gdb.mi/mi-stepn.c
|
| diff --git a/gdb/testsuite/gdb.python/py-events.c b/gdb/testsuite/gdb.mi/mi-stepn.c
|
| similarity index 77%
|
| copy from gdb/testsuite/gdb.python/py-events.c
|
| copy to gdb/testsuite/gdb.mi/mi-stepn.c
|
| index 00490c6951f474ae1169c558590831183a92a0f9..b8663d9bdfbcb325d390ad31fb2def17db8f3dda 100644
|
| --- a/gdb/testsuite/gdb.python/py-events.c
|
| +++ b/gdb/testsuite/gdb.mi/mi-stepn.c
|
| @@ -1,6 +1,6 @@
|
| /* This testcase is part of GDB, the GNU debugger.
|
|
|
| - Copyright 2010-2012 Free Software Foundation, Inc.
|
| + Copyright 2012 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
|
| @@ -16,18 +16,17 @@
|
| along with this program. If not, see <http://www.gnu.org/licenses/>.
|
| */
|
|
|
| -extern void do_nothing (void);
|
| -
|
| -int second(){
|
| - fork() ;
|
| - return 12;
|
| +void
|
| +do_nothing (void)
|
| +{
|
| }
|
|
|
| -int first(){
|
| - return second();
|
| -}
|
| +int
|
| +main ()
|
| +{
|
| + int i;
|
|
|
| -int main (){
|
| - do_nothing();
|
| - return first();
|
| + for (i = 0; i < 2; i++)
|
| + do_nothing ();
|
| + return 0;
|
| }
|
|
|