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-sl.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-sl.c')
-rw-r--r-- | gdb/testsuite/gdb.python/python-sl.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/python-sl.c b/gdb/testsuite/gdb.python/python-sl.c new file mode 100644 index 0000000..579a74e --- /dev/null +++ b/gdb/testsuite/gdb.python/python-sl.c @@ -0,0 +1,26 @@ +/* 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/>. */ + +void func1 () +{ + return; +} + +int func2 () +{ + return 0; +} |