405ea9
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
405ea9
From: Fedora GDB patches <invalid@email.com>
405ea9
Date: Fri, 27 Oct 2017 21:07:50 +0200
405ea9
Subject: gdb-bz634108-solib_address.patch
405ea9
405ea9
;; Verify GDB Python built-in function gdb.solib_address exists (BZ # 634108).
405ea9
;;=fedoratest
405ea9
405ea9
Fix gdb.solib_address (fix by Phil Muldoon).
405ea9
405ea9
s/solib_address/solib_name/ during upstreaming.
405ea9
405ea9
diff --git a/gdb/testsuite/gdb.python/rh634108-solib_address.exp b/gdb/testsuite/gdb.python/rh634108-solib_address.exp
405ea9
new file mode 100644
405ea9
--- /dev/null
405ea9
+++ b/gdb/testsuite/gdb.python/rh634108-solib_address.exp
405ea9
@@ -0,0 +1,24 @@
405ea9
+# Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
405ea9
+
405ea9
+# This program is free software; you can redistribute it and/or modify
405ea9
+# it under the terms of the GNU General Public License as published by
405ea9
+# the Free Software Foundation; either version 3 of the License, or
405ea9
+# (at your option) any later version.
405ea9
+#
405ea9
+# This program is distributed in the hope that it will be useful,
405ea9
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
405ea9
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
405ea9
+# GNU General Public License for more details.
405ea9
+#
405ea9
+# You should have received a copy of the GNU General Public License
405ea9
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
405ea9
+
405ea9
+# https://bugzilla.redhat.com/show_bug.cgi?id=634108
405ea9
+
405ea9
+gdb_exit
405ea9
+gdb_start
405ea9
+
405ea9
+# Skip all tests if Python scripting is not enabled.
405ea9
+if { [skip_python_tests] } { continue }
405ea9
+
405ea9
+gdb_test "python print (gdb.solib_name(-1))" "None" "gdb.solib_name exists"