From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22596 invoked by alias); 10 Jun 2002 16:23:39 -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 22584 invoked from network); 10 Jun 2002 16:23:36 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 10 Jun 2002 16:23:36 -0000 Received: from creche.cygnus.com (ta0205.peakpeak.com [204.144.244.205]) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id KAA16978; Mon, 10 Jun 2002 10:23:26 -0600 Received: (from tromey@localhost) by creche.cygnus.com (8.9.3/8.9.3) id KAA10678; Mon, 10 Jun 2002 10:36:31 -0600 To: Don Howard Cc: Eli Zaretskii , Subject: Re: Redefining built-in commands. References: From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: I call it a "SARDINE ON WHEAT"! Date: Mon, 10 Jun 2002 09:23:00 -0000 In-Reply-To: Don Howard's message of "Wed, 5 Jun 2002 14:39:44 -0700 (PDT)" Message-ID: <87bsajt7jk.fsf@creche.redhat.com> X-SW-Source: 2002-06/txt/msg00081.txt.bz2 >>>>> "Don" == Don Howard writes: Don> (gdb) define step Don> do something special Don> step Don> end Don> (gdb) Don> The above example ends up "doing something special" until gdb hits it's Don> recursion limit, rather than doing something special and then stepping. Don> The example *does* work just fine if the user picks anything other than a Don> built-in name: Bash solves this problem by adding a `command' command, which invokes the original command. So in the above you could use `command step' to invoke the real step. Perhaps this would be useful in gdb. Tom