This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Detect loops in the solib chain
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: jan dot kratochvil at redhat dot com (Jan Kratochvil)
- Cc: tromey at redhat dot com (Tom Tromey), gdb-patches at sourceware dot org, ppluzhnikov at google dot com (Paul Pluzhnikov), kevinb at redhat dot com (Kevin Buettner)
- Date: Fri, 11 Jun 2010 19:39:11 +0200 (CEST)
- Subject: Re: [RFC] Detect loops in the solib chain
Jan Kratochvil wrote:
> +2010-04-23 Jan Kratochvil <jan.kratochvil@redhat.com>
> +
> + Fix deadlock on looped list of loaded shared objects.
> + * gdb.base/solib-corrupted.exp: New.
> +
Like all solib test cases, this should be skipped on platforms
that do not support shared libraries.
Tested on spu-elf, committed to mainline.
Bye,
Ulrich
ChangeLog:
* gdb.base/solib-corrupted.exp: Respect skip_shlib_tests.
Index: gdb/testsuite/gdb.base/solib-corrupted.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/solib-corrupted.exp,v
retrieving revision 1.2
diff -u -p -r1.2 solib-corrupted.exp
--- gdb/testsuite/gdb.base/solib-corrupted.exp 1 Jun 2010 21:29:21 -0000 1.2
+++ gdb/testsuite/gdb.base/solib-corrupted.exp 11 Jun 2010 16:43:07 -0000
@@ -13,6 +13,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+if {[skip_shlib_tests]} {
+ return 0
+}
+
set testfile "solib-corrupted"
set srcfile start.c
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com