Fix an incorrect adaptation on utrace regression of
`kernel-xen-2.6.18-1.2767.el5.i686'.
This commit is contained in:
parent
8955b7e320
commit
24da262922
@ -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 <jan.kratochvil@redhat.com>
|
||||
|
||||
* 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 <jan.kratochvil@redhat.com>
|
||||
|
||||
* 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
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user