From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12569 invoked by alias); 18 Mar 2013 09:33:15 -0000 Received: (qmail 12561 invoked by uid 22791); 18 Mar 2013 09:33:14 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=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 09:33:03 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UHWRC-0000sH-2N from Hui_Zhu@mentor.com ; Mon, 18 Mar 2013 02:33:02 -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); Mon, 18 Mar 2013 02:33:01 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Mon, 18 Mar 2013 02:33:00 -0700 Message-ID: <5146DF47.4020407@codesourcery.com> Date: Mon, 18 Mar 2013 09:33:00 -0000 From: Hui Zhu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130126 Thunderbird/19.0 MIME-Version: 1.0 To: Yao Qi , Hui Zhu CC: Subject: Re: [DIscussion] some thought about call a editor set the commands of breakpoints and tracepoints References: <51467ADB.10708@codesourcery.com> In-Reply-To: <51467ADB.10708@codesourcery.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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/msg00046.txt.bz2 On 03/18/13 10:24, Yao Qi wrote: > 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. > I am not sure about that. This "source" is the "source" of the code. Not the "source" command of GDB. I'm afraid it will confuse the user. Thanks, Hui