RE: ctags

From: Khachaturov, Vassilii (Vassilii.Khachaturov@comverse.com)
Date: Thu May 17 2001 - 09:28:29 EST


I use cscope instead, and vim's front-end to it.
(Emacs fans: XEmacs has a similar support, see cscope page on sourceforge).

Much more powerful than plain tags,
because it allows also things like
"where are all the calls to this function",
but you still can jump about with ^T/^]

At top level of the kernel source tree (/usr/src/linux) do

find . -name '*.[hc]' -print > cscope.files
cscope -b -k -I/usr/src/linux/include

In the .vimrc used for kernel editing, do:
cscope add /usr/src/linux/cscope.out /usr/src/linux
set cstag

And do :help cscope to see what this thing is about...
Or, for a quick start, just do :cs

See also cscope on sourceforge.

HTH,
        Vassilii

> -----Original Message-----
> From: Blesson Paul [mailto:blessonpaul@usa.net]
> Sent: Thursday, May 17, 2001 4:10 AM
> To: linux-kernel@vger.kernel.org
> Subject: ctags
>
>
>
> find -name '*.[ch]' | ctag -L- &
> echo "set tags-tags">>.vimrc
>
> Hi
> Thanks for the reply. To get the definition of the
> functions above is enough. Now if there are more than one
> definition of the
> same function how to get all the definitions
>
> by
> Blesson Paul
>
> ____________________________________________________________________
> Get free email and a permanent address at
> http://www.netaddress.com/?N=1
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 23 2001 - 21:00:23 EST