diff options
author | Pedro Alves <palves@redhat.com> | 2010-08-19 17:00:58 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-08-19 17:00:58 +0000 |
commit | e7fbb131d42983eec31231f8bb69cdd8d5a33ee6 (patch) | |
tree | 7c793bdbbfe7395f00891040ef36265a7afd3223 /gdb/testsuite/gdb.python/py-shared.c | |
parent | d30f5e1f70ffa9fab08ccdacdba1bd6365d2511d (diff) | |
download | binutils-e7fbb131d42983eec31231f8bb69cdd8d5a33ee6.zip binutils-e7fbb131d42983eec31231f8bb69cdd8d5a33ee6.tar.gz binutils-e7fbb131d42983eec31231f8bb69cdd8d5a33ee6.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-shared.c')
-rw-r--r-- | gdb/testsuite/gdb.python/py-shared.c | 28 |
1 files changed, 28 insertions, 0 deletions
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. */ +} |