From 24da2629226c8d844b973fb5f9b887e7ea8f38a1 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 21 Mar 2007 23:04:08 +0000 Subject: [PATCH] Fix an incorrect adaptation on utrace regression of `kernel-xen-2.6.18-1.2767.el5.i686'. --- gdb-6.5-attach-stop.patch | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gdb-6.5-attach-stop.patch b/gdb-6.5-attach-stop.patch index 69dbd55..c592a4b 100644 --- a/gdb-6.5-attach-stop.patch +++ b/gdb-6.5-attach-stop.patch @@ -5,6 +5,11 @@ http://sources.redhat.com/ml/gdb-patches/2006-09/msg00092.html Specific to Red Hat kernels, kernel.org kernels lockup on gdb "attach". +2007-03-20 Jan Kratochvil + + * gdb.base/attachstop.exp: Fix an incorrect adaptation on utrace + regression of `kernel-xen-2.6.18-1.2767.el5.i686'. + 2006-12-11 Jan Kratochvil * gdb-6.5/gdb/linux-nat.c (linux_nat_attach): Handle already stopped @@ -154,7 +159,7 @@ diff -u -ruNp gdb-6.5-orig/gdb/testsuite/gdb.base/attachstop.c gdb-6.5/gdb/tests diff -u -ruNp gdb-6.5-orig/gdb/testsuite/gdb.base/attachstop.exp gdb-6.5/gdb/testsuite/gdb.base/attachstop.exp --- gdb-6.5-orig/gdb/testsuite/gdb.base/attachstop.exp 1970-01-01 01:00:00.000000000 +0100 +++ gdb-6.5/gdb/testsuite/gdb.base/attachstop.exp 2006-12-12 00:26:39.000000000 +0100 -@@ -0,0 +1,234 @@ +@@ -0,0 +1,228 @@ +# Copyright 2005-2006 + +# This program is free software; you can redistribute it and/or modify @@ -322,16 +327,10 @@ diff -u -ruNp gdb-6.5-orig/gdb/testsuite/gdb.base/attachstop.exp gdb-6.5/gdb/tes + # Continue the program + remote_exec build "kill -s CONT ${testpid}" + -+ if {[string equal $threadtype threaded]} { -+ # Isn't a bug? kernel-xen-2.6.18-1.2767.el5.i686 -+ set signal_expect "SIGCONT" -+ } else { -+ set signal_expect "SIGINT" -+ } + # Already sent before: after 1000 {send_gdb "\003"} + set test "$threadtype: attach2 stop by interrupt" + gdb_expect { -+ -re "Program received signal $signal_expect,.*$gdb_prompt $" ++ -re "Program received signal SIGSTOP,.*$gdb_prompt $" + { + pass $test + }