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