]> git.ipfire.org Git - ipfire-3.x.git/blame - gdb/patches/gdb-bz634108-solib_address.patch
wget: LDFLAGS were accidentially overwritten
[ipfire-3.x.git] / gdb / patches / gdb-bz634108-solib_address.patch
CommitLineData
5a03b7c3
MT
1Fix gdb.solib_address (fix by Phil Muldoon).
2
3--- /dev/null
4+++ b/gdb/testsuite/gdb.python/rh634108-solib_address.exp
5@@ -0,0 +1,24 @@
6+# Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
7+
8+# This program is free software; you can redistribute it and/or modify
9+# it under the terms of the GNU General Public License as published by
10+# the Free Software Foundation; either version 3 of the License, or
11+# (at your option) any later version.
12+#
13+# This program is distributed in the hope that it will be useful,
14+# but WITHOUT ANY WARRANTY; without even the implied warranty of
15+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+# GNU General Public License for more details.
17+#
18+# You should have received a copy of the GNU General Public License
19+# along with this program. If not, see <http://www.gnu.org/licenses/>.
20+
21+# https://bugzilla.redhat.com/show_bug.cgi?id=634108
22+
23+gdb_exit
24+gdb_start
25+
26+# Skip all tests if Python scripting is not enabled.
27+if { [skip_python_tests] } { continue }
28+
29+gdb_test "python print gdb.solib_address(-1)" "None" "gdb.solib_address exists"