From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17320 invoked by alias); 23 Sep 2013 19:32:40 -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 17304 invoked by uid 89); 23 Sep 2013 19:32:39 -0000 Received: from mailrelay005.isp.belgacom.be (HELO mailrelay005.isp.belgacom.be) (195.238.6.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Sep 2013 19:32:39 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.0 required=5.0 tests=AWL,BAYES_00,CK_HELO_DYNAMIC_SPLIT_IP,HELO_DYNAMIC_SPLIT_IP,SPF_SOFTFAIL,TVD_RCVD_IP autolearn=no version=3.3.2 X-HELO: mailrelay005.isp.belgacom.be X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAAOXQFJtgPmS/2dsb2JhbAANTIc6vgCBOYMZAQEBBCNWEAsYAgImAgJXBrB7dJI2gSmOPAeCaYE1A60Z Received: from 146.249-128-109.adsl-dyn.isp.belgacom.be (HELO [192.168.1.5]) ([109.128.249.146]) by relay.skynet.be with ESMTP; 23 Sep 2013 21:32:34 +0200 Subject: RE: RFA [PATCH v3] Implement 'catch syscall' for gdbserver From: Philippe Waroquiers To: "Agovic, Sanimir" Cc: "gdb-patches@sourceware.org" In-Reply-To: <0377C58828D86C4588AEEC42FC3B85A717680EC1@IRSMSX105.ger.corp.intel.com> References: <1379796907.5980.20.camel@soleil> <0377C58828D86C4588AEEC42FC3B85A717680EC1@IRSMSX105.ger.corp.intel.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 23 Sep 2013 19:32:00 -0000 Message-ID: <1379964754.2226.6.camel@soleil> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00827.txt.bz2 On Mon, 2013-09-23 at 11:50 +0000, Agovic, Sanimir wrote: > Hello Philippe, > > > + if (the_low_target.get_syscall_trapinfo == NULL) > > + { > > + *sysno = 0; > > + *sysret = 0; > > + return; > > + } > > > Is it sufficient to assign sysno/sysret to 0 to indicate missing 'catch syscall' > functionality? Both values seem legal to me. The idea is that will be used in case the user forces the use of the QCatchSyscalls packet. So, I think it is better to return "valid" (but not used) values : I do not think there is a syscall nr 0. Philippe