Blame SOURCES/gdb-bz634108-solib_address.patch

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