From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9513 invoked by alias); 26 Mar 2004 17:36:29 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9490 invoked from network); 26 Mar 2004 17:36:28 -0000 Received: from unknown (HELO neon-gw.transmeta.com) (63.209.4.196) by sources.redhat.com with SMTP; 26 Mar 2004 17:36:28 -0000 Received: (from root@localhost) by neon-gw.transmeta.com (8.9.3/8.9.3) id JAA27964 for ; Fri, 26 Mar 2004 09:36:24 -0800 Received: from mailhost.transmeta.com(10.1.1.15) by neon-gw.transmeta.com via smap (V2.1) id xma027911; Fri, 26 Mar 04 09:36:19 -0800 Received: from claire.transmeta.com (claire.transmeta.com [10.10.25.31]) by deepthought.transmeta.com (8.11.6/8.11.6) with ESMTP id i2QHaLx21275 for ; Fri, 26 Mar 2004 09:36:21 -0800 (PST) Received: (from dje@localhost) by claire.transmeta.com (8.11.6/8.11.6) id i2QHaLn29409; Fri, 26 Mar 2004 09:36:21 -0800 Date: Mon, 29 Mar 2004 18:43:00 -0000 Message-Id: <200403261736.i2QHaLn29409@claire.transmeta.com> From: Doug Evans To: gdb@sources.redhat.com Subject: commands command not allowed in macros, bug? X-SW-Source: 2004-03/txt/msg00278.txt.bz2 gdb = 5.2.1 I'm unable to add any commands commands to macros. The command line reader doesn't know to specially parse `commands' commands like it does `if' and `while'. It'd be a useful feature to have. [whether one want this to apply to all commands that take input followed by `end' I dunno] --- bash$ gcc -g hello.c bash$ gdb-5.2.1 ./a.out (gdb) define foo break main commands echo foo\n end (gdb) show user foo User command foo: break main commands echo foo\n (gdb) foo Breakpoint 1 at 0x8048406: file hello.c, line 6. [gdb is now hung waiting for the user to type `end'] end # <<< type this in foo # gdb prints this, the commands of breakpoint 1 are run (gdb) quit --- fwiw I have a patch, if only I could submit it ....