[PATCH 4/4] gdb: kfail for PR14161

Yao Qi
2012-06-09T12:47:18Z

GDB doesn't have something equivalent to pause_all/unpause_all in GDBserver,
so GDB is unable to control the threads correctly after sending commands
to agent. KFAIL this first.

gdb/testsuite:

2012-06-09 Yao Qi <yao@codesourcery.com>

KFAIL for PR14161.
* gdb.trace/strace.exp (strace_remove_socket): kfail for native.
Cleanup socket files.
---
gdb/testsuite/gdb.trace/strace.exp | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/gdb/testsuite/gdb.trace/strace.exp b/gdb/testsuite/gdb.trace/strace.exp
index f141e9b..00a3fad 100644
--- a/gdb/testsuite/gdb.trace/strace.exp
+++ b/gdb/testsuite/gdb.trace/strace.exp
@@ -92,6 +92,10 @@ proc strace_remove_socket { action } {

sleep 2

+ if { ![is_remote target] && ! [string equal $action "detach"] } {
+ setup_kfail gdb/14161 *-*-*
+ }
+
set test "socket file removed"
if { [file exists $socket_file] } {
fail $test
@@ -318,6 +322,13 @@ if { ![is_remote target]
strace_remove_socket "quit"
strace_remove_socket "detach"
strace_remove_socket "continue"
+
+ # Due to PR gdb/14161, sockets files are not removed when agent exists.
+ # However this problem only affects native gdb, so we don't have to bother
+ # 'remote_file target delete'. Simple tcl command 'file delete' should
+ # be OK.
+ eval file delete [glob "/tmp/gdb_ust*"]
+
return
}

--
1.7.0.4