| Index: gdb/testsuite/gdb.python/py-strfns.c
|
| diff --git a/gdb/testsuite/gdb.base/frame-args.c b/gdb/testsuite/gdb.python/py-strfns.c
|
| similarity index 61%
|
| copy from gdb/testsuite/gdb.base/frame-args.c
|
| copy to gdb/testsuite/gdb.python/py-strfns.c
|
| index bfcc7c3f3f648978e6151ab3d9c9c4de37109efe..e9c0e207800cf71839172bf5968485f37b03c5b3 100644
|
| --- a/gdb/testsuite/gdb.base/frame-args.c
|
| +++ b/gdb/testsuite/gdb.python/py-strfns.c
|
| @@ -1,6 +1,6 @@
|
| /* This testcase is part of GDB, the GNU debugger.
|
|
|
| - Copyright 2007-2012 Free Software Foundation, Inc.
|
| + Copyright 2012-2013 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
|
| @@ -15,42 +15,36 @@
|
| You should have received a copy of the GNU General Public License
|
| along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
| -struct s
|
| -{
|
| - int a;
|
| - int b;
|
| -};
|
| -
|
| -union u
|
| -{
|
| - int a;
|
| - float b;
|
| -};
|
| +const char str1[] = "Hello.";
|
| +const char str2[] = "Hello.";
|
| +const char str3[] = "Goodbye.";
|
|
|
| -enum color { red, green, blue };
|
| +const char buf1[] = { 0, 1, 2, 3 };
|
| +const char buf2[] = { 0, 1, 2, 3 };
|
| +const char buf3[] = { 0, 1, 2, 4 };
|
|
|
| static void
|
| -break_me (void)
|
| +func (const char *arg)
|
| {
|
| + return; /* Break func here. */
|
| }
|
|
|
| static void
|
| -call_me (int i, float f, struct s s, struct s *ss, union u u, enum color e)
|
| +bfunc (const char *arg)
|
| {
|
| - break_me ();
|
| + return; /* Break bfunc here. */
|
| }
|
|
|
| int
|
| -main (void)
|
| +main ()
|
| {
|
| - struct s s;
|
| - union u u;
|
| -
|
| - s.a = 3;
|
| - s.b = 5;
|
| - u.a = 7;
|
| + func (str1);
|
| + func (str2);
|
| + func (str3);
|
|
|
| - call_me (3, 5.0, s, &s, u, green);
|
| + bfunc (buf1);
|
| + bfunc (buf2);
|
| + bfunc (buf3);
|
|
|
| return 0;
|
| }
|
|
|