linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: ctags
@ 2001-05-17 14:28 Khachaturov, Vassilii
  0 siblings, 0 replies; 3+ messages in thread
From: Khachaturov, Vassilii @ 2001-05-17 14:28 UTC (permalink / raw)
  To: 'Blesson Paul'; +Cc: linux-kernel

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/
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* ctags
@ 2001-05-17  8:09 Blesson Paul
  0 siblings, 0 replies; 3+ messages in thread
From: Blesson Paul @ 2001-05-17  8:09 UTC (permalink / raw)
  To: linux-kernel


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* ctags
@ 2001-02-09 14:34 John Levon
  0 siblings, 0 replies; 3+ messages in thread
From: John Levon @ 2001-02-09 14:34 UTC (permalink / raw)
  To: linux-kernel, alan


On the system here, ctags is called ctags-exuberant.
Against 2.4.1ac8

thanks
john

--- Makefile.old	Fri Feb  9 14:24:29 2001
+++ Makefile	Fri Feb  9 14:06:08 2001
@@ -33,6 +33,7 @@
 STRIP		= $(CROSS_COMPILE)strip
 OBJCOPY		= $(CROSS_COMPILE)objcopy
 OBJDUMP		= $(CROSS_COMPILE)objdump
+CTAGS		= ctags
 MAKEFILES	= $(TOPDIR)/.config
 GENKSYMS	= /sbin/genksyms
 DEPMOD		= /sbin/depmod
@@ -334,10 +335,10 @@
 
 # Exuberant ctags works better with -I
 tags: dummy
-	CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS"`; \
-	ctags $$CTAGSF `find include/asm-$(ARCH) -name '*.h'` && \
-	find include -type d \( -name "asm-*" -o -name config \) -prune -o -name '*.h' -print | xargs ctags $$CTAGSF -a && \
-	find $(SUBDIRS) init -name '*.[ch]' | xargs ctags $$CTAGSF -a
+	CTAGSF=`$(CTAGS) --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS"`; \
+	$(CTAGS) $$CTAGSF `find include/asm-$(ARCH) -name '*.h'` && \
+	find include -type d \( -name "asm-*" -o -name config \) -prune -o -name '*.h' -print | xargs $(CTAGS) $$CTAGSF -a && \
+	find $(SUBDIRS) init -name '*.[ch]' | xargs $(CTAGS) $$CTAGSF -a
 
 ifdef CONFIG_MODULES
 ifdef CONFIG_MODVERSIONS


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-05-17 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-17 14:28 ctags Khachaturov, Vassilii
  -- strict thread matches above, loose matches on Subject: below --
2001-05-17  8:09 ctags Blesson Paul
2001-02-09 14:34 ctags John Levon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).