This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Add support for hooking prefix commands


> Date: Wed, 09 Mar 2011 15:54:41 +0200
> From: Sorin Otescu <sorinu@gmail.com>
> 
> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]