Blame SOURCES/gdb-bz634108-solib_address.patch

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