From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17823 invoked by alias); 18 Dec 2012 16:39:23 -0000 Received: (qmail 17540 invoked by uid 22791); 18 Dec 2012 16:39:21 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Dec 2012 16:38:46 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBIGcgD1003401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 18 Dec 2012 11:38:42 -0500 Received: from host2.jankratochvil.net (ovpn-116-39.ams2.redhat.com [10.36.116.39]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qBIGcbCN027219 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 18 Dec 2012 11:38:40 -0500 Date: Tue, 18 Dec 2012 16:39:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: =?utf-8?B?QW5kcsOpIFDDtm5pdHo=?= , gdb-patches@sourceware.org Subject: Re: RFC: implement "catch signal" Message-ID: <20121218163837.GA23234@host2.jankratochvil.net> References: <87y5hfvu5v.fsf@fleche.redhat.com> <20121203193713.GA10256@host2.jankratochvil.net> <87obibvsb1.fsf@fleche.redhat.com> <20121203202233.GA23933@klara.mpi.htwm.de> <20121203203126.GA13490@host2.jankratochvil.net> <87mwxpvh4y.fsf@fleche.redhat.com> <20121207184456.GA15968@host2.jankratochvil.net> <87ehj1ve4f.fsf@fleche.redhat.com> <20121207200401.GA20329@host2.jankratochvil.net> <87d2y8v0b1.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87d2y8v0b1.fsf@fleche.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 X-SW-Source: 2012-12/txt/msg00639.txt.bz2 On Mon, 17 Dec 2012 22:25:06 +0100, Tom Tromey wrote: > I went through all the catchpoints and added a new "catch-type" field > that lists the type of catchpoint. Therefore it looks this way? body=[bkpt={number="1",type="catchpoint",disp="keep",enabled="y",catch-type="signal",what=[signal="SIGINT",signal="SIGTRAP"],times="0"}] I believe it still may break existing MI clients according to André. This one would be safer: body=[bkpt={number="1",type="catchpoint",disp="keep",enabled="y",catch-type="signal",what="",signal=["SIGINT","SIGTRAP"],times="0"}] Although it is becoming very "unusual". > Let me know what you think of this. I find more safe the latter choice but I would prefer to leave the choice on André with better MI real world experience. Thanks, Jan