News for hackers. Stuff that matters.
Re:GNU GLOBAL source code tagging system by dima55 on Monday November 17, 2014 @12:51AM (#8617027)
The fancy language support is provided by exuberant ctags, so look into that if that excites you. As for cscope, GNU global is very similar; it's a bit slower for some things and a bit faster for others. Global can only find references, not callers/callees like cscope can. And the Debian maintainer of GNU Global thinks that the GNU Global maintainer is an idiot, and a consequence of this is that on Debian and derived distros the GNU Global package is ancient. But cscope is so similar, it doesn't really matter. Oh, and the gtags-cscope frontend global gives you is pretty much compatible with cscope, so any frontend that uses cscope will just work with gtags-cscope.
Re:GNU GLOBAL source code tagging system by jboy on Monday November 17, 2014 @01:12AM (#8617064)
Can you elaborate on the difference between finding references (in GLOBAL) and finding callers/callees (in cscope)?

The cscope caller/callee search is apparently still just text search in the code (rather than unambiguous call-graph resolution by compilation).

Re:GNU GLOBAL source code tagging system by dima55 on Monday November 17, 2014 @01:46AM (#8617145)
Both cscope and GNU global are "just text search", but cscope's C parsing is fancier. Among other things, you can ask cscope

1. Where is symbol "foo" mentioned? 2. Where is function "foo" called? 3. What other functions does function "foo" call?

GNU global can do #1, but not #2 or #3.

Re:GNU GLOBAL source code tagging system by tuhdo on Monday November 17, 2014 @03:14AM (#8617313)
Well, it seems like GNU Global while can only do #1, but does it better: http://www.farseer.cn/config/2013/11/26/ctags-cscope-gtags/
Re:GNU GLOBAL source code tagging system by dima55 on Monday November 17, 2014 @11:39AM (#8618944)
Heh? That post says its show-me-where-foo-is-defined functionality is broken sometimes, but it doesn't show it (and presumably they never filed a bug upstream either). I compared the two at some point last year, and they did produce slightly different results, with cscope being slightly more correct about something, but I don't recall exactly; they were VERY similar.
Re:GNU GLOBAL source code tagging system by tuhdo on Monday November 17, 2014 @01:34PM (#8619647)
But GNU Global is being maintained, while cscope was abandoned. With GNU Global, you can actually update your database without recreating your tag database again. This is very useful for editor integration when you finish editing a file and save it.
Re:GNU GLOBAL source code tagging system by softEngg on Tuesday November 18, 2014 @11:19PM (#8628241)
Try helm-gtags it supports callers/callees better than scope.
Re:GNU GLOBAL source code tagging system by dima55 on Thursday November 20, 2014 @05:18PM (#8638523)
Why would I do that? cscope works great.