From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17352 invoked by alias); 9 Mar 2011 14:01:20 -0000 Received: (qmail 17343 invoked by uid 22791); 9 Mar 2011 14:01:19 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Mar 2011 14:01:13 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LHS00300MV3EC00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Wed, 09 Mar 2011 16:01:11 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.58.59]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LHS002NIMXWOZ40@a-mtaout20.012.net.il>; Wed, 09 Mar 2011 16:01:11 +0200 (IST) Date: Wed, 09 Mar 2011 14:15:00 -0000 From: Eli Zaretskii Subject: Re: [patch] Add support for hooking prefix commands In-reply-to: <4D7786A1.8020806@gmail.com> To: Sorin Otescu Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83hbbcpf4q.fsf@gnu.org> References: <4D776143.4000200@gmail.com> <83oc5kpivg.fsf@gnu.org> <4D777894.5040204@gmail.com> <83k4g8pg4x.fsf@gnu.org> <4D7786A1.8020806@gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00598.txt.bz2 > Date: Wed, 09 Mar 2011 15:54:41 +0200 > From: Sorin Otescu > > I see some problems with that approach, even if it works. What happens > if two or more commands > have the same second word ? Which one would be used ? I see no problem. For hooking "target remote" you'd say define target hook-remote and for hooking "foo remote" you'd say define foo hook-remote This is what the manual says.