Re: [PATCH 4/4] gdb: kfail for PR14161

Pedro Alves
2012-06-12T16:21:08Z

On 06/09/2012 01:46 PM, Yao Qi wrote:

> 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.

Yeah, my ideal would be to merge gdb/gdbserver's backends, but you've been
distracting me from that goal. ;-)

> 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*"]
> +

"bother with". But note this doesn't work with remote host testing.

> return
> }
>

--
Pedro Alves