diff options
author | Phil Muldoon <pmuldoon@redhat.com> | 2010-08-11 12:48:24 +0000 |
---|---|---|
committer | Phil Muldoon <pmuldoon@redhat.com> | 2010-08-11 12:48:24 +0000 |
commit | cb2e07a6f002d0b1b6e7339b0475e674955c03ef (patch) | |
tree | 165397cdd9807e469cb55c615aeaf72bb51af933 /gdb/testsuite/gdb.python/python.c | |
parent | bd69efceb48c29b8ca1f1c845fd9e8032a1fb778 (diff) | |
download | binutils-cb2e07a6f002d0b1b6e7339b0475e674955c03ef.zip binutils-cb2e07a6f002d0b1b6e7339b0475e674955c03ef.tar.gz binutils-cb2e07a6f002d0b1b6e7339b0475e674955c03ef.tar.bz2 |
2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
Tom Tromey <tromey@redhat.com>
* python/python.c (gdbpy_solib_address): New function.
(gdbpy_decode_line): Likewise.
2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Basic Python): Describe solib_address and
decode_line Python APIs
2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/python.c: New File.
* gdb.python/python-sl.c: New File.
* gdb.python/python.exp: Test solib_address and decode_line
* functions.
Diffstat (limited to 'gdb/testsuite/gdb.python/python.c')
-rw-r--r-- | gdb/testsuite/gdb.python/python.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/python.c b/gdb/testsuite/gdb.python/python.c new file mode 100644 index 0000000..750a90a --- /dev/null +++ b/gdb/testsuite/gdb.python/python.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 function */ +extern void func1 (void); +extern int func2 (void); + +int +main (int argc, char *argv[]) +{ + func1 (); + func2 (); + return 0; /* Break to end. */ +} |