Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
æ¤ç´¢å¯¾è±¡ã®ãã¡ã¤ã«ã®ãªã¹ããä½ã find . -name *.[chS] | sort > cscope.index èµ·åæã«æ¯åã¯ãã¹ãªãã¡ã¬ã³ã¹ãçæããã®ãé¿ããããã«ä¸åçæãã¦ãã #次åèµ·åæã¯çæãã¦ããããã®ãèªã¿è¾¼ã¾ãã cscope -b -i cscope.index ä¸ã¨åæ§ã®çç±ã§,ã·ã³ãã«ã®é«éæ¤ç´¢ã®ããã®è»¢ç½®ã¤ã³ããã¯ã¹?ãçæãã¦ãã cscope -q -i cscope.index èµ·å cscope -i cscope.index #è¿½è¨ ä¸ã«æ¸ããããã«é¢åããããã¨ããªãã¦ã cscope -R ã¨ãã§å¿ è¦ãªãã¼ã¿ãçæããã¦èµ·åãããããã§ã ããã¦2åç®ä»¥é㯠cscope -Rd ã§ãªã± ã¤ã³ã¯ã«ã¼ããã¡ã¤ã«ãããå ´å㯠cscope -R -I ã¤ã³ã¯ã«ã¼ããã¡ã¤ã«ã®ãããã£ã¬ã¯ã㪠ã¨ããããã«æå®ãã¹ã Thanks to Kaiga
ç°å¢å¤æ°ãè¨å®ãã $ SRC=/usr/src/kernels/2.6.18-194.26.1.el5-i686 $ CSCHOME=/usr/src cscope.files ã®ä½æ $ find $SRC -name *.[ch] > $CSHOME/cscope.files cscope DBã®ä½æ $ cd $CSHOME $ cscope -bqk ããã§å®æ. ã©ã®ã½ã¼ã¹ã³ã¼ãã§ãã£ã¦ã対å¿å¯è½. cscope.files ã«è¨è¼ãããã¡ã¤ã«åã®ä¸è¦§ãå ã«cscopeDBãä½æãã¦ããããã
Linux Kernelã®ã³ã¼ããèªãã§ã¿ããã¨æã£ããã®ã®ããããã«grepã®ã¿ã§èªãã§ããã®ã¯ã¤ããããªã®ã§ä½ããã¼ã«ãæ¢ãã¦ã¿ãã¨ãããCScopeã¨ãããã¼ã«ãããã¾ããã CScopeã¯ãCã§æ¸ãããã½ã¼ã¹ã³ã¼ãããDBãä½æãããããVimãEmacsããå©ç¨ãããã¨ã§ãé¢æ°ã®å®ç¾©ãå¼ã³åºãå ã«ã¸ã£ã³ãã§ããããã²ã¼ã·ã§ã³ãã¼ã«ã§ãã大ããªCã®ã½ã¼ã¹ã³ã¼ããèªãã®ã«ä¾¿å©ãããªã®ã§ã試ãã¦ã¿ã¾ããã ã¤ã³ã¹ãã¼ã« $ apt-get install cscope DBãä½æãã 対象ã¨ãªãCã®ã½ã¼ã¹ã³ã¼ããããDBãä½æãã¾ããDBç¨ã®ãã£ã¬ã¯ããªãç¨æãã¾ãã $ mkdir ~/cscope $ cd ~/cscope次ã«ãã½ã¼ã¹ã³ã¼ããã¹ãã£ã³ãã¦ãã¡ã¤ã«ã®ä¸è¦§ãä½ããDBãã¡ã¤ã«ãä½æãã¾ããã³ãã³ããçµæ§é·ãã®ã§ãç°¡åãªã·ã§ã«ã¹ã¯ãªãããä½ã£ã¦å®è¡ãã¾ããã #!/bi
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}