From e7fbb131d42983eec31231f8bb69cdd8d5a33ee6 Mon Sep 17 00:00:00 2001
From: Pedro Alves <palves@redhat.com>
Date: Thu, 19 Aug 2010 17:00:58 +0000
Subject: 	* gdb.python/py-shared.exp: New file, factored out from 
 python.exp. 	* gdb.python/py-shared.c: New file. 	*
 gdb.python/py-shared-sl.c: New file. 	* gdb.python/python-1.c: New file. 
 * gdb.python/python-sl.c: Delete. 	* gdb.python/python.c: Mention
 python-1.c. 	* gdb.python/python.exp: Move shared library tests to 
 py-shared.exp. 	* gdb.python/Makefile.in (EXECUTABLES): Add py-shared
 and python. 	(MISCELLANEOUS): New. 	(clean mostlyclean): Also remove
 $MISCELLANEOUS.

---
 gdb/testsuite/gdb.python/py-shared.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 gdb/testsuite/gdb.python/py-shared.c

(limited to 'gdb/testsuite/gdb.python/py-shared.c')

diff --git a/gdb/testsuite/gdb.python/py-shared.c b/gdb/testsuite/gdb.python/py-shared.c
new file mode 100644
index 0000000..6ece116
--- /dev/null
+++ b/gdb/testsuite/gdb.python/py-shared.c
@@ -0,0 +1,28 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+   Copyright 2010 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
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+
+/* Shared library functions */
+extern void func1 (void);
+extern int func2 (void);
+
+int
+main (int argc, char *argv[])
+{
+  func1 ();
+  func2 ();
+  return 0;      /* Break to end.  */
+}
-- 
cgit v1.1