Re: Include assembly entry points in TAGS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As it stands, etags doesn't find labels in the IA64 or i386 assembler source 
code, because they're disguised inside a preprocessor macro. 
 
I propose the attached fix, which adds a regular expression to enable 
labels disguised by ENTRY() and GLOBAL_ENTRY() macros. 
 
There's a similar problem for MIPS, which needs to match LEAF(entrypoint) 
 
Signed-off-by: Peter Chubb <[email protected]> 
 

If you're using Emacs and TAGS, it's useful to be able to get the
global assembler variables as tags into the TAGS file.  But they're
hidden by a macro.  This patch teaches etags about the macro.

 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6-vmm/Makefile
===================================================================
--- linux-2.6-vmm.orig/Makefile	2006-01-17 11:38:27.544972040 +1100
+++ linux-2.6-vmm/Makefile	2006-01-17 11:42:02.587956460 +1100
@@ -1251,7 +1251,7 @@ define cmd_TAGS
                 echo "-I __initdata,__exitdata,__acquires,__releases  \
                       -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL              \
                       --extra=+f --c-kinds=+px"`;                     \
-                $(all-sources) | xargs etags $$ETAGSF -a
+                $(all-sources) | xargs etags $$ETAGSF -a  --regex='{asm}/^\(GLOBAL_\)?ENTRY(\([^)]*\))/\2/'
 endef
 
 TAGS: FORCE
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux