From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78631 invoked by alias); 13 Apr 2015 13:25:31 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 78617 invoked by uid 89); 13 Apr 2015 13:25:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f171.google.com Received: from mail-pd0-f171.google.com (HELO mail-pd0-f171.google.com) (209.85.192.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 13 Apr 2015 13:25:30 +0000 Received: by pdea3 with SMTP id a3so107132691pde.3 for ; Mon, 13 Apr 2015 06:25:29 -0700 (PDT) X-Received: by 10.68.175.66 with SMTP id by2mr26236841pbc.141.1428931528987; Mon, 13 Apr 2015 06:25:28 -0700 (PDT) Received: from [127.0.0.1] (gcc1-power7.osuosl.org. [140.211.15.137]) by mx.google.com with ESMTPSA id el6sm7341740pdb.93.2015.04.13.06.25.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Apr 2015 06:25:28 -0700 (PDT) Message-ID: <552BC3C2.6010103@gmail.com> Date: Mon, 13 Apr 2015 13:25:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Pedro Alves CC: gdb-patches@sourceware.org Subject: Re: [PATCH 4/6] testsuite: Don't use expect_background to reap gdbserver References: <1424699660-11727-1-git-send-email-palves@redhat.com> <1424699660-11727-5-git-send-email-palves@redhat.com> <864mokuuep.fsf@gmail.com> <552BB206.4000803@redhat.com> In-Reply-To: <552BB206.4000803@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00456.txt.bz2 On 13/04/15 13:09, Pedro Alves wrote: >> I wrap the send_gdb and gdb_expect statement above by "catch", >> >testing looks fine, although error messages are still shown in the >> >console and gdb.log. > Why not suppress the error message? I think you just need to pass > a var name as second parameter to "catch". I did that, but it is useless. These messages prefixed with "ERROR OCCURED:" are printed by DejaGNU, lib/remote.exp:remote_expect, if {$code == 1} { if {[info exists string]} {send_user "ERROR OCCURED: $errorInfo $errorCode $string"} looks we can't prevent DejaGNU invoking send_user. If this error is annoying, we can unset gdb_spawn_id at the end of proc do_test in gdb-sigterm.exp. -- Yao (齐尧)