aijazbaig1
March 16th, 2010, 10:06
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 (http://www.linux.com/archive/feature/114237) and this (http://cscope.sourceforge.net/large_projects.html).
Additionally I also added
(load-file "/usr/share/emacs/site-lisp/xcscope.el") 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:
/usr/bin/cscope-indexer: line 142: cscope.files: No such file or directory
Finally I opened a sample file and ran
cscope-find-this-symbol
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:
path to file is not readable or exists
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
/usr/src/linux/include/linux/include/linux/skbuff.h does not exist or is not readable
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 (http://www.linux.com/archive/feature/114237) and this (http://cscope.sourceforge.net/large_projects.html).
Additionally I also added
(load-file "/usr/share/emacs/site-lisp/xcscope.el") 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:
/usr/bin/cscope-indexer: line 142: cscope.files: No such file or directory
Finally I opened a sample file and ran
cscope-find-this-symbol
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:
path to file is not readable or exists
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
/usr/src/linux/include/linux/include/linux/skbuff.h does not exist or is not readable
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