From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23527 invoked by alias); 8 Mar 2013 16:17:28 -0000 Received: (qmail 23510 invoked by uid 22791); 8 Mar 2013 16:17:25 -0000 X-SWARE-Spam-Status: No, hits=-4.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ob0-f169.google.com (HELO mail-ob0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Mar 2013 16:17:17 +0000 Received: by mail-ob0-f169.google.com with SMTP id ta14so1392808obb.28 for ; Fri, 08 Mar 2013 08:17:17 -0800 (PST) X-Received: by 10.60.29.194 with SMTP id m2mr1898866oeh.36.1362759437114; Fri, 08 Mar 2013 08:17:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.60.7 with HTTP; Fri, 8 Mar 2013 08:16:37 -0800 (PST) From: Hui Zhu Date: Fri, 08 Mar 2013 16:17:00 -0000 Message-ID: Subject: [DIscussion] some thought about call a editor set the commands of breakpoints and tracepoints To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00002.txt.bz2 Hi, I think a lot of people had gotten a problem is when you want change the commands of breakpoints or tracepoints when the commands is complicated. For example, maybe you just want to change one or two lines inside the commands, you need re-input all of them. And if you input something wrong, then all of commands that you input in before will be droped. Of course, you can use "save tracepoint xxx" "!vim xxx" "source xxx" handle it. But it is still cumbersome. 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. What do you think about it? Any comments is always welcome. Thanks, Hui