Problem using gtags target

From: Punit Agrawal
Date: Mon Jul 08 2013 - 13:40:18 EST


Hi,

I am trying to use GNU global for kernel source browsing but have run
into a problem when using "gtags" target in Makefile. The index
files(GTAGS, GSYMS, GPATH, GRTAGS) don't work and on further
investigation turned out to be 16kb each in size. My command line is -

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j5 gtags

On some digging, I traced the relevant code to scripts/tags.sh which
produces reasonably sized indices (modulo some missing environment
variables) when run as -

./scripts/tags.sh gtags

I used the following patch

diff --git a/scripts/tags.sh b/scripts/tags.sh
index 74f02e4..59b24ee 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -143,7 +143,8 @@ docscope()

dogtags()
{
- all_target_sources | gtags -i -f -
+ all_target_sources > gtags.files
+ gtags -i -f gtags.files
}

exuberant()

to check the file list being produced and it seems correct but the
indices are still broken. Yet manually running

gtags -i -f gtags.files

does seem to do the right thing.

I was wondering if anybody has faced similar issues when using gtags and
how to fix this.

Thanks,
Punit

ps: Please include me in the cc as I am not subscribed to the list.

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