2006-01-19 11:29:09

by Aneesh Kumar K.V

[permalink] [raw]
Subject: Add entry.S labels to tag file.

The below patch add functions defined using ENTRY macro to the tag
file generated
using ctags.

Signed-off-by: Aneesh Kumar K.V <[email protected]>


Attachments:
(No filename) (153.00 B)
Makefile.diff (573.00 B)
Download all attachments

2006-01-19 16:30:11

by Sam Ravnborg

[permalink] [raw]
Subject: Re: Add entry.S labels to tag file.

On Thu, Jan 19, 2006 at 04:59:05PM +0530, Aneesh Kumar wrote:
> The below patch add functions defined using ENTRY macro to the tag
> file generated
> using ctags.
>
> Signed-off-by: Aneesh Kumar K.V <[email protected]>

> diff --git a/Makefile b/Makefile
> index 252a659..8f0cc11 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1272,7 +1272,7 @@ define cmd_tags
> CTAGSF=`ctags --version | grep -i exuberant >/dev/null && \
> echo "-I __initdata,__exitdata,__acquires,__releases \
> -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
> - --extra=+f --c-kinds=+px"`; \
> + --extra=+f --c-kinds=+px --regex-asm=/ENTRY\(([^)]*)\).*/\1/"`; \
> $(all-sources) | xargs ctags $$CTAGSF -a
> endef

Fixed line length and applied.
Was this not relevant for etags?

Sam