NOTE:This is regarding the linux kernel.
I use linux along with freebsd which I have recently started exploring. I hope you guys here might have dabbled enough with kernel code and as such would not mind helping another open source fellow get with his thing.
I am trying to configure emacs so that I can use it with cscope. I followed the instructions in this page and this.
Additionally I also added
to my .emacs file.
After having done that, I ran the cscope-indexer on the top level directory of my src tree.
It gave me:
Finally I opened a sample file and ran
which gave me the list of all places that has that symbol (defined or declared or used). I chose a sample line and pressed return hoping cscope would take me to the relevant src file. But instead I got:
Additionally, to be specific I am trying to create a database of the linux kernel src tree. As a test I opened the file /include/linux/skbuff.h and then searched for the symbol sk_buff which is declared in the file. It gives me a long list of all the files containing that symbol. On clicking one of the entries in the list I get the following
Closely examine the line above. The substring in bold face is something that seems to have come from nowhere. The actual path is /usr/src/linux/include/linux/skbuff.h so there must be something wrong in the set up of cscope here.
Kindly let me know what mistake am I doing.
Regards,
Aijaz
I use linux along with freebsd which I have recently started exploring. I hope you guys here might have dabbled enough with kernel code and as such would not mind helping another open source fellow get with his thing.

I am trying to configure emacs so that I can use it with cscope. I followed the instructions in this page and this.
Additionally I also added
Code:
(load-file "/usr/share/emacs/site-lisp/xcscope.el")
After having done that, I ran the cscope-indexer on the top level directory of my src tree.
It gave me:
Code:
/usr/bin/cscope-indexer: line 142: cscope.files: No such file or directory
Code:
cscope-find-this-symbol
Code:
[I]path to file[/I] is not readable or exists
Code:
/usr/src/linux/include/linux[B]/include/linux/[/B]skbuff.h does not exist or is not readable
Kindly let me know what mistake am I doing.
Regards,
Aijaz