Hi all, I recently needed to add a hook for the "info threads" command. Unfortunately, this was not possible because GDB only allows hooking of single word commands. This patch adds support for multi-word command (prefix command) hooks. In my case, the format of the hook commands is: define hook-info_threads define hookpost-info_threads Sorin gdb/cli/ 2011-03-09 Sorin Otescu * cli-script.c (define_command): Add support for hooking prefix commands. Example usage: for hooking "info threads", a hook command will be defined as: define hook-info_threads and/or define hookpost-info_threads