From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21502 invoked by alias); 23 Mar 2014 15:19:21 -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 21486 invoked by uid 89); 23 Mar 2014 15:19:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 23 Mar 2014 15:19:13 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Sun, 23 Mar 2014 15:19:10 +0000 Received: from [10.1.201.52] ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 23 Mar 2014 15:19:23 +0000 Message-ID: <532EFB6C.2030003@arm.com> Date: Sun, 23 Mar 2014 15:19:00 -0000 From: Yufeng Zhang User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Jan Kratochvil CC: Doug Evans , "gdb-patches@sourceware.org" Subject: Re: [patchv3] Fix SIGTERM signal safety (PR gdb/15358) References: <20140314183709.GA28050@host2.jankratochvil.net> <20140314184535.GA30853@host2.jankratochvil.net> <21284.44419.745786.47756@ruffy.mtv.corp.google.com> <20140316135334.GA30698@host2.jankratochvil.net> In-Reply-To: <20140316135334.GA30698@host2.jankratochvil.net> X-MC-Unique: 114032315191000201 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00564.txt.bz2 On 03/16/14 13:53, Jan Kratochvil wrote: [snip] > diff --git a/gdb/testsuite/gdb.base/gdb-sigterm.exp b/gdb/testsuite/gdb.b= ase/gdb-sigterm.exp > new file mode 100644 > index 0000000..b57680d > --- /dev/null > +++ b/gdb/testsuite/gdb.base/gdb-sigterm.exp > @@ -0,0 +1,96 @@ > +# This testcase is part of GDB, the GNU debugger. > +# > +# Copyright 2013 Free Software Foundation, Inc. > +# > +# This program is free software; you can redistribute it and/or modify > +# it under the terms of the GNU General Public License as published by > +# the Free Software Foundation; either version 3 of the License, or > +# (at your option) any later version. > +# > +# This program is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > +# GNU General Public License for more details. > +# > +# You should have received a copy of the GNU General Public License > +# along with this program. If not, see. > + > +standard_testfile > + > +if { [build_executable ${testfile}.exp ${testfile}] =3D=3D -1 } { > + return -1 > +} > + > +proc do_test { pass } { > + global testfile gdb_prompt binfile pf_prefix > + > + if ![runto_main] { > + return -1 > + } > + > + gdb_breakpoint "${testfile}.c:[gdb_get_line_number "loop-line" ${tes= tfile}.c]" \ > + temporary > + > + # gdb_continue_to_breakpoint would print a pass message. > + gdb_test "continue" "Temporary breakpoint .* loop-line .*" "" > + > + gdb_test_no_output "set range-stepping off" "" > + gdb_test_no_output "set debug infrun 1" "" > + gdb_test_no_output "set debug lin-lwp 1" "" The test fails on aarch64-none-elf. Should the test only run on Linux=20 targets? Thanks, Yufeng