From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19555 invoked by alias); 18 Mar 2013 02:25:37 -0000 Received: (qmail 19480 invoked by uid 22791); 18 Mar 2013 02:25:36 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Mar 2013 02:25:30 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UHPlR-00003Y-LD from Yao_Qi@mentor.com ; Sun, 17 Mar 2013 19:25:29 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sun, 17 Mar 2013 19:25:28 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Sun, 17 Mar 2013 19:25:28 -0700 Message-ID: <51467ADB.10708@codesourcery.com> Date: Mon, 18 Mar 2013 02:25:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Hui Zhu CC: Subject: Re: [DIscussion] some thought about call a editor set the commands of breakpoints and tracepoints References: In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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 X-SW-Source: 2013-03/txt/msg00045.txt.bz2 On 03/09/2013 12:16 AM, Hui Zhu wrote: > So I thought why not let gdb call a editor set the commands of > breakpoints and tracepoints? > For example: > commands -e 1 > Then editor come out, the original commands of 1 is inside there. You > can just change some lines in there to change the commands. FWIW, GDB already has a command 'edit' which is to invoke editor to edit source file http://sourceware.org/gdb/current/onlinedocs/gdb/Edit.html It may be extended to edit breakpoint commands. -- Yao (齐尧)