Jan Kratochvil c804fb8
Fix gdb.solib_address (fix by Phil Muldoon).
Jan Kratochvil c804fb8
Jan Kratochvil fb75065
s/solib_address/solib_name/ during upstreaming.
Jan Kratochvil fb75065
Jan Kratochvil c804fb8
--- /dev/null
Jan Kratochvil c804fb8
+++ b/gdb/testsuite/gdb.python/rh634108-solib_address.exp
Jan Kratochvil c804fb8
@@ -0,0 +1,24 @@
Jan Kratochvil c804fb8
+# Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
Jan Kratochvil c804fb8
+
Jan Kratochvil c804fb8
+# This program is free software; you can redistribute it and/or modify
Jan Kratochvil c804fb8
+# it under the terms of the GNU General Public License as published by
Jan Kratochvil c804fb8
+# the Free Software Foundation; either version 3 of the License, or
Jan Kratochvil c804fb8
+# (at your option) any later version.
Jan Kratochvil c804fb8
+#
Jan Kratochvil c804fb8
+# This program is distributed in the hope that it will be useful,
Jan Kratochvil c804fb8
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
Jan Kratochvil c804fb8
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Jan Kratochvil c804fb8
+# GNU General Public License for more details.
Jan Kratochvil c804fb8
+#
Jan Kratochvil c804fb8
+# You should have received a copy of the GNU General Public License
Jan Kratochvil c804fb8
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Jan Kratochvil c804fb8
+
Jan Kratochvil c804fb8
+# https://bugzilla.redhat.com/show_bug.cgi?id=634108
Jan Kratochvil c804fb8
+
Jan Kratochvil c804fb8
+gdb_exit
Jan Kratochvil c804fb8
+gdb_start
Jan Kratochvil c804fb8
+
Jan Kratochvil c804fb8
+# Skip all tests if Python scripting is not enabled.
Jan Kratochvil c804fb8
+if { [skip_python_tests] } { continue }
Jan Kratochvil c804fb8
+
Jan Kratochvil fb75065
+gdb_test "python print gdb.solib_name(-1)" "None" "gdb.solib_name exists"