From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4584 invoked by alias); 20 Jun 2014 05:41:30 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 4519 invoked by uid 89); 20 Jun 2014 05:41:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Jun 2014 05:41:25 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1WxrZh-0005Zn-UI from Yao_Qi@mentor.com ; Thu, 19 Jun 2014 22:41:21 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 19 Jun 2014 22:41:21 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.2.247.3; Thu, 19 Jun 2014 22:41:12 -0700 Message-ID: <53A3C91D.7010304@codesourcery.com> Date: Fri, 20 Jun 2014 05:41:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: David Taylor , Subject: Re: gdb remote protocol breakpoints (Z0 command) References: <20417.1403189074@usendtaylorx2l> In-Reply-To: <20417.1403189074@usendtaylorx2l> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00057.txt.bz2 On 06/19/2014 10:44 PM, David Taylor wrote: > There are many things you might want to do at a breakpoint that lack > bytecode operators. Just for starters, > > . there is no bytecode operator for setting memory > > . there is no bytecode operator for setting registers It is fine to extend bytecode for setting memory and registers... > > . there is no bytecode operator for calling arbitrary functions ... but calling functions is too complex to be operated by bytecode. Each bytecode operator just does simple/primitive operation. If we've already had bytecode for setting memory and registers, GDB may generate a sequence of bytecode (including setting memory and registers) to do function call. However, I am not very sure. > > . there is no 'continue' option (as in: ``after performing the > requested commands, continue the current thread'') > > There are other capabilities that I would like as well, but without the > four mentioned above, I don't consider it very useful at all. > > Has anyone else thought about these issuses and possibly sketched out > extensions to allow such capabilities? > > [The 'continue' command would likely be an extension to the Z0 command, > the others would likely be extensions to the bytecode language.] We have a kind of breakpoint, dprintf, which is a breakpoint plus printing and a 'continue' command at the end. It has some flaws, but closed to your needs. If you don't require much interactive operations, tracepoint is a better choice, IMO. -- Yao (齐尧)