Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: gdb/testsuite/gdb.python/py-strfns.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.python/py-shared-sl.c ('k') | gdb/testsuite/gdb.python/py-strfns.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « gdb/testsuite/gdb.python/py-shared-sl.c ('k') | gdb/testsuite/gdb.python/py-strfns.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698