{"id":69,"date":"2010-04-17T21:46:23","date_gmt":"2010-04-18T06:46:23","guid":{"rendered":"\/blog\/?p=69"},"modified":"2023-09-21T09:41:20","modified_gmt":"2023-09-21T00:41:20","slug":"ctags-cscope-%ec%84%a4%ec%b9%98-%eb%b0%8f-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=69","title":{"rendered":"ctags &#038; cscope \uc124\uce58 \ubc0f \uc0ac\uc6a9\ud558\uae30"},"content":{"rendered":"\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">1. ctags \ub780 ? <br \/>&nbsp;&nbsp; = &gt;&nbsp; ctags\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \uc18c\uc2a4 \ucf54\ub4dc\uc758 \ud0dc\uadf8 (\uc804\uc5ed\ubcc0\uc218 \uc120\uc5b8, \ud568\uc218 \uc815\uc758, \uba54\ud06c\ub85c \uc815\uc758)\ub4e4\uc758<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \ub370\uc774\ud130 \ubca0\uc774\uc2a4(tags\ud30c\uc77c)\uc744 \uc0dd\uc131\ud558\ub294 \uba85\ub839\uc5b4\uc785\ub2c8\ub2e4. <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \ucee4\ub110 \uc18c\uc2a4 \ubd84\uc11d\ub4f1 \uc791\uc5c5\uc5d0\uc11c \ud0c1\uc6d4\ud55c \uc131\ub2a5\uc744 \ubc1c\ud718\ud569\ub2c8\ub2e4<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">2. ctags \ubc84\uc804 \ud655\uc778\ud558\uae30<br \/>&nbsp; &nbsp; = &gt; (\uc258\uc5d0\uc11c)&nbsp; $ctags --version \uc774\ub77c\uace0 \uc785\ub825\ud55c\ub2e4 \uc124\uce58 \ub3fc\uc5b4 \uc788\ub294\uacbd\uc6b0 \ubc84\uc804 \uc815\ubcf4\uac00 \ub098\uc635\ub2c8\ub2e4<br \/>&nbsp; &nbsp; cannat commond find&nbsp; =&gt; \uae54\ub824 \uc788\uc9c0 \uc54a\uc744\uc2dc \uc5d0\ub7ec \ucd9c\ub825 <br \/>&nbsp; &nbsp; ( \ub300\ubd80\ubd84 \uae30\ubcf8\ub9ac\ub205\uc2a4\uc5d0\uc11c \ub514\ud3f4\ud2b8\ub85c \uae54\ub824 \uc788\uc9c0 \uc54a\uc744\uac83\uc774\ub2e4 \ucc98\uc74c \uc124\uce58\uc2dc \uc804\uccb4 \uc124\uce58 \ub610\ub294..<br \/>&nbsp; &nbsp; &nbsp; \uc120\ud0dd \uc124\uce58\ub85c ctags\ub97c \uc124\uce58 \ud55c\uacbd\uc6b0\ub77c\uba74 \ubab0\ub77c\ub3c4 \ub514\ud3f4\ud2b8\ub85c\ub294 \uac70\uc758 \uc548\uae54\ub824 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; \ud2b9\ud788 ubuntu \uc758 \uacbd\uc6b0 \uc6d0\ub798 \ub370\uc2a4\ud06c\ud0d1\uc6a9\uc73c\ub85c \uac1c\ubc1c \ub3fc\uace0 \uc788\uc5b4\uc11c.. \uac1c\ubc1c \ud234\uc774 \ud558\ub098\ub3c4 \uc548\uae54\ub824 \uc788\uae30<br \/>&nbsp; &nbsp; &nbsp; \ub54c\ubb38\uc5d0 \ubcc4\ub610 \uc124\uce58\ub97c \ud544\uc694\ub85c \ud569\ub2c8\ub2e4 ) <\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">3. ctags \uc124\uce58\ud558\uae30 <br \/>&nbsp; &nbsp; =&gt; ubuntu \uc758 \uacbd\uc6b0 \ub808\ub4dc\ud5f7 \uc774\ub098 \ud398\ub3c4\ub77c \ub4f1 \ub2e4\ub978 \ub9ac\ub205\uc2a4\uc5d0 \ube44\ud574 \ube44\uad50\uc801 \uc27d\uac8c \uc124\uce58\ud560\uc218 \uc788\uc2b5\ub2c8\ub2e4<br \/>&nbsp; &nbsp; &nbsp; &nbsp; \ub808\ub4dc\ud5f7\uc77c \uacbd\uc6b0 rpm \ubc84\uc804\uc744 \ub530\ub85c \ub2e4\uc6b4 \ubc1b\uc544 \uc124\uce58 \ud574\uc57c \ud558\ub294 \ubc29\uba74 \ub370\ube44\uc548 \uacc4\uc5f4 \uba85\ub839\uc5b4<br \/>&nbsp; &nbsp; &nbsp; &nbsp; apt-get\uc73c\ub85c \uac04\ud3b8\ud558\uac8c \uc124\uce58\uac00 \uac00\ub2a5\ud569\ub2c8\ub2e4<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">&nbsp; &nbsp; ubuntu \uc124\uce58 \ud558\uae30<br \/>&nbsp; &nbsp; &nbsp;&nbsp; (\uc258\uc5d0\uc11c) $apt-get install&nbsp; ctags&nbsp; (\uc790\ub3d9\uc73c\ub85c \ucd5c\uc2e0 \ubc84\uc804\uc73c\ub85c \uc124\uce58 \ub429\ub2c8\ub2e4 )<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">&nbsp; &nbsp; redhat \uc124\uce58\ud558\uae30 <\/FONT><a class=\"con_link\" href=\"http:\/\/sourceforge.net\/projects\/ctags\" target=\"_blank\" rel=\"noopener\"><FONT style=\"BACKGROUND-COLOR: #ffffff\">http:\/\/sourceforge.net\/projects\/ctags<\/FONT><\/A><FONT style=\"BACKGROUND-COLOR: #ffffff\"> (rpm \ubc84\uc804\uc744 \ub2e4\uc6b4 \ubc1b\uc740\ud6c4) <br \/>&nbsp; &nbsp; &nbsp; &nbsp; (\uc258\uc5d0\uc11c) $rpm -ivf \ub2e4\uc6b4\ubc1b\uc740 rpm \ud30c\uc77c\uba85 (\uc73c\ub85c \uc124\uce58 \ud558\uc2e4\uc218 \uc788\uc2b5\ub2c8\ub2e4)<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">&nbsp; &nbsp; \uc124\uce58 \uc644\ub8cc \ud6c4 2\ubc88 \uacfc\uc815 \ubc84\uc804\uc744 \ud655\uc778 \ud558\uba74 \ubc84\uc804 \uc815\ubcf4\uac00 \uc7ac\ub300\ub85c \ub098\uc624\uba74 \uc7ac\ub300\ub85c \uc124\uce58\uac00 \ub418\uc5c8\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; \ub808\ub4dc\ud5f7 \uc77c \uacbd\uc6b0 lib.so \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud560\uc218 \uc788\ub294\ub370 \ubc84\uc804\uc774 \uc548\ub9de\ub294 \uac83\uc744 \uae54\uba74.. \uc124\uce58\uac00 \uc7ac\ub300\ub85c<br \/>&nbsp; &nbsp; \ub3fc\uc9c0 \uc54a\ub294 \ubb38\uc81c\uc810\uc774 \ubc1c\uc0dd\ud569\ub2c8\ub2e4 \uc704 \ub9c1\ud06c\uc5d0\uc11c \ucd5c\uc2e0\ubc84\uc804 5.6.1 \uc758 \uacbd\uc6b0 \ud398\ub3c4\ub77c 5 \uc6a9 \uc774\ubbc0\ub85c<br \/>&nbsp; &nbsp; \ub808\ub4dc\ud5f7\uc77c \uacbd\uc6b0 5.0 \ubc84\uc804 \uc774\ub098 \ucc3e\uc544\ubcf4\uc2dc\uace0 \ud558\uc704 \uc9c0\uc6d0 \ub3fc\ub294 \ubc84\uc804\uc744 \uc124\uce58 \ud574\uc57c \ud569\ub2c8\ub2e4..<br \/>&nbsp; &nbsp; \ud655\uc778 \uacb0\uacfc 5.0.1 \uc740 \uc7ac\ub300\ub85c \uc124\uce58\uac00 \uac00\ub2a5\ud558\ub354\ub77c\uace0\uc694.. <\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">4. tags \ud30c\uc77c \ub9cc\ub4e4\uae30<br \/>&nbsp; &nbsp; = &gt; \uc6b0\uc120 \ucee4\ub110\uc774 \uc788\ub294 \ud3f4\ub354\ub85c \uc774\ub3d9 \ud569\ub2c8\ub2e4<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $cd \/usr\/src\/linux\/&nbsp; &lt;== ( \uc804 linux\ub85c \uc2ec\ubcfc\ub9ad \ub9c1\ud06c\uac00 \ub3fc\uc5b4 \uc788\uc2b5\ub2c8\ub2e4 \uc548\ub3fc\uc5b4 \uc788\ub2e4\uba74<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \uc2ec\ubcfc\ub9ad \ub9c1\ud06c\ub97c \ub9cc\ub4dc\uc154\ub3c4 \ub3fc\uace0 \uc9c1\uc811 \uacbd\ub85c\ub97c \ub2e4 \uc785\ub825 \ud558\uc154\ub3c4 \uc0c1\uad00\uc5c6\uc2b5\ub2c8\ub2e4)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \uc2ec\ubcfc\ub9ad \ub9c1\ud06c \ub9cc\ub4e4\uae30 -&gt; ln -s&nbsp; \/usr\/src\/\ucee4\ub110\ud3f4\ub354\uba85 linux<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \ucee4\ub110 \ud3f4\ub354\ub85c \uc774\ub3d9\ud588\uc73c\uba74 ctags -R \uc744 \uc785\ub825\ud558\uc5ec tags \ud30c\uc77c\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \uc2dc\uac04\uc774 \uc880 \uac78\ub9ac\ub294\ub370 ls\ub85c&nbsp; tags \ud30c\uc77c\uc774 \uc0dd\uc131 \ub41c\uac78 \ud655\uc778 \ud569\ub2c8\ub2e4<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $cd \/usr\/include \ud3f4\ub354\ub85c \uc774\ub3d9 \ud569\ub2c8\ub2e4<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \ub9c8\ucc2c\uac00\uc9c0\ub85c ctags -R \uba85\ub839\uc73c\ub85c include \ud3f4\ub354\ub3c4 tags \ud30c\uc77c\uc744 \uc0dd\uc131 \ud569\ub2c8\ub2e4<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \uc815\uc0c1\uc801\uc73c\ub85c \ud30c\uc77c\uc774 \uc0dd\uc131 \ub418\uc5c8\ub2e4\uba74 \ub2e4\uc74c \ub2e8\uacc4\ub85c \ub118\uc5b4\uac11\ub2c8\ub2e4<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">5. ctags \uc124\uc815 \ud558\uae30<br \/>&nbsp; &nbsp; = &gt; \uc124\uce58 \uac00 \uc644\ub8cc \ub418\uace0 tags\ud30c\uc77c\uc774 \uc0dd\uc131 \ub418\uc5c8\ub2e4\uba74 \uc791\uc5c5\uc774 \uac70\uc758 \ub05d\ub09c\uac70\ub098 \ub9c8\ucc2c \uac00\uc9c0 \uc785\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \ub9e4\ubc88 vi \uc5d0\uc11c ex\ubaa8\ub4dc \uc5d0\uc11c \uc785\ub825\ud558\ub294\uac70\ub3c4 \ud55c\uacc4\uac00 \uc788\uc73c\ubbc0\ub85c .vimrc \ud30c\uc77c\uc5d0 <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; tags \ub97c \uc124\uc815 \ud574\ub450\ub294\uac8c \ud3b8\ud569\ub2c8\ub2e4<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; vimrc \ud30c\uc77c\uc5d0 \ub2e4\uc74c \ub77c\uc778\uc744 \uc785\ub825 \ud55c\ud6c4 \uc800\uc7a5\ud569\ub2c8\ub2e4<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; set tags=.\/tags,\/usr\/src\/linux\/tags,\/usr\/include\/tags<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (linux \uc758 \uacbd\uc6b0 \uc2ec\ubcfc\ub9ad \ub9c1\ud06c \ud55c\uacbd\uc6b0)&nbsp; \uc9c1\uc811 \ud3f4\ub354\ub97c \uc785\ub825 \ud558\uc2e0\ubd84\uc740 \uacbd\ub871\uc5d0 \ub9de\uac8c \uc124\uc815 \ud569\ub2c8\ub2e4<\/FONT><\/P>\n<P><br \/><FONT style=\"BACKGROUND-COLOR: #ffffff\">\uc0ac\uc6a9\ud558\uae30 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br \/>=====================================================<br \/>\uc5ec\uae30 \uae4c\uc9c0 \ud588\ub2e4\uba74 \uc124\uce58 \ubc0f \uc124\uc815\uc740 \uc644\ub8cc \ub418\uc5c8\uc2b5\ub2c8\ub2e4..<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">\uc774\uc81c \uc0ac\uc6a9 \ud558\ub294\uac70\ub9cc \ub0a8\uc558\ub294\ub370 <br \/>\ubcf5\uc7a1\ud558\uac8c \ucc45\uc5d0\ub294 \uc5ec\ub7ec \uc635\uc158\uc774 \ub9ce\uc9c0\ub9cc \ubcf4\ud1b5 \uc798\uc548\uc4f0\ub294 \uc635\uc158\ub4e4\uc740.. \uac70\uc758 \uc4f8\uc77c\uc774 \uc5c6\uace0..<br \/>\uc790\uc8fc \uc4f0\ub294 \uac83\ub9cc \ub2e4\ub8e8\uaca0\uc2b5\ub2c8\ub2e4.<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">ex \ubaa8\ub4dc -&gt; vi \uc5d0\uc11c : \uc744 \ub20c\ub7ec\uc11c \uba85\ub839\uc744 \uc785\ub825 \ud558\ub294 \ubaa8\ub4dc\ub97c \ub9d0\ud569\ub2c8\ub2e4 <br \/>ex \ubaa8\ub4dc\uc5d0\uc11c :tj \ud568\uc218\uba85 \uc774\ub098 \uad6c\uc870\uccb4\uba85 (\uc65c tj \uc778\uac00 ?&nbsp; tags jump \uc57d\uc5b4)<br \/>(\ucc3e\uace0\uc790 \ud558\ub294 \ud568\uc218\uba85\uc774\ub098 \uad6c\uc870\uccb4 \uc774\ub984\ub4f1\uc744 \uc785\ub825 \ud558\uba74 \uad00\ub825 \uc774\ub984 \ud568\uc218\ub098 \uad6c\uc870\uc81c..\uc815\ubcf4\uac00 \ub098\ud0c0 \ub0a9\ub2c8\ub2e4 )<br \/>\ubcf4\ud1b5 \ud55c\ub450\uac00\uac1c \uc544\ub2cc\uacbd\uc6b0 \uc2a4\ud398\uc774\uc2a4\ubc14\ub97c \ub204\ub974\uba74 \ubaa9\ub85d\uc774 \ub354\ub098\uc624\uba70 d \ub97c \ub204\ub97c \uacbd\uc6b0 \ud55c\ud398\uc774\uc9c0\uc529..<br \/>\ubcf4\uc5ec \uc90d\ub2c8\ub2e4 \ub098\uac08\ub54c\ub294 q\ub85c \ub098\uac08\uc218 \uc788\uc2b5\ub2c8\ub2e4 \uadf8\ub7fc &lt;CR&gt; \uc774 \ub098\uc624\ub294\ub370 \uc5ec\uae30\uc11c \ucc3e\uc740 \ud568\uc218\ub098 \uad6c\uc870\uccb4<br \/>\ubc88\ud638\ub97c \uc785\ub825 \ud558\uba74 \uc790\ub3d9\uc73c\ub85c \uc810\ud504\ud569\ub2c8\ub2e4<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">\ub2e4\ub978 \ubc29\ubc95\uc73c\ub85c \uac00\ub294 \ubc29\ubc95\uc740 \ucee4\ub110 \uc18c\uc2a4\ub97c vi\uc5f4\uc5b4\uc11c \ubd84\uc11d\ud558\ub2e4\uac00 \ud568\uc218 \uc6d0\ud615\uc774\ub098 \uad6c\uc870\uccb4 \uc774\ub984\uc5d0\uc11c<br \/>ctrl + ] \ub97c \ub204\ub974\uba74 \uc790\ub3d9\uc73c\ub85c \ud0dc\uadf8\ub97c \ucc3e\uc544 \uac11\ub2c8\ub2e4 <br \/>\uc774\uc804\uc73c\ub85c \ub2e4\uc2dc \ub3cc\uc544 \uc62c\ub54c\ub294 ctrl + t \ub97c \uc0ac\uc6a9 \ud574\uc11c \ub3cc\uc544 \uc62c\uc218 \uc788\uc2b5\ub2c8\ub2e4 <\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">ex\ubaa8\ub4dc : sts \ud568\uc218\uba85 , \uad6c\uc870\uccb4\uba85 <br \/>\uc704\uc5d0\uc11c \uc124\uba85\ud55c tj\uc640 \ube44\uc2b7 \ud558\uc9c0\ub9cc \ud55c\uac00\uc9c0 \ub2e4\ub978\uc810\uc774 \uc218\ud3c9\ucc3d\ubd84\ud65c\uc744 \ud574\uc11c \uacb0\uacfc\ub97c \ubcf4\uc5ec \uc90d\ub2c8\ub2e4<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">\uc774\uc678 \uba85\ub839\uc774 \ub354 \uc788\uc9c0\ub9cc \uc2e4\uc81c \uc774\uac70\ub9cc \uc54c\uc544\ub3c4 \ucda9\ubd84 \ud569\ub2c8\ub2e4 \ub098\uba38\uc9c0 \uc774\uc804\uc73c\ub85c \ub3cc\uc544\uac00\uae30 \uc774\ub7f0\uac74..<br \/>\uac70\uc758 \uc2e4\uc81c \uc0ac\uc6a9 \ub418\uc9c0\ub3c4 \uc54a\uc2b5\ub2c8\ub2e4 \uc704\uc5d0 \uc124\uba85\ud55c 4\uac00\uc9c0 \ubc29\ubc95\uc774 \uc8fc\ub85c \uc4f0\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4.<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">[tip] \ud5e4\ub354 \ud30c\uc77c \ubc14\ub85c \uc77d\uc5b4 \uc624\uae30<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">#include &lt;linux\/kernel.h&gt; &lt;- \ud5e4\ub354\ud30c\uc77c \uc774\ub984\uc5d0 \ucee4\uc11c\ub97c \uc704\uce58 \ud55c\ud6c4<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">Ctrl + wf \ub97c \ub204\ub974\uba74 \ucc3d\uc774 \uc218\ud3c9 \ubd84\ud560\ub418\uc5b4 \ud5e4\ub354\ud30c\uc77c\uc774 \uc5f4\ub9bd\ub2c8\ub2e4<\/FONT><\/P>\n<P><br \/><FONT style=\"BACKGROUND-COLOR: #ffffff\">====================================================<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">cscope \ub97c \uc774\uc6a9\ud55c 2%\ub85c \ucc44\uc6b0\uae30<br \/>&nbsp; &nbsp; ctags\ub9cc\uc73c\ub85c\ub3c4 \ucee4\ub110\uc18c\uc2a4\uc640 \uc18c\uaddc\ubaa8 \ud504\ub85c\uc81d\ud2b8\ub864 \ubd84\uc11d\ud558\ub294\ub370 \ubd80\uc871\ud568\uc740 \uc5c6\uc9c0\ub9cc..<br \/>&nbsp; &nbsp; 2%\ub85c \ubd80\uc871\ud55c\uac8c \uc788\ub2e4 ctags\ub9cc\uc73c\ub85c\ub294 \uc9c0\uc5ed\ubcc0\uc218\ub098 \uc804\uc5ed\ubcc0\uc218\uac00 \uc0ac\uc6a9\ub41c\uacf3 \uc740 \ucc3e\uae30\uac00 \ud798\ub4e4\ub2e4 <br \/>&nbsp; &nbsp; \uc774\ub54c cscope \uc0ac\uc6a9\ud558\uba74 \ub429\ub2c8\ub2e4<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">cscope \uc124\uce58 \ud558\uae30 <br \/>&nbsp; &nbsp; ubuntu = &gt; $apt-get install cscope \ub85c \uac04\ub2e8\ud788 \uc124\uce58 \ud560\uc218 \uc788\ub2e4 (\ub370\ube44\uc548 \uacc4\uc5f4\uc758 \uac15\uc810)<br \/>&nbsp; &nbsp; redhat <br \/>&nbsp; &nbsp; (\ub2e4\uc6b4 \ub85c\ub4dc)<br \/>&nbsp; &nbsp; wget <\/FONT><a class=\"con_link\" href=\"http:\/\/belnet.dl.sourceforge.net\/sourceforge\/cscope\/cscope-15.3-1.i386.rpm\" target=\"_blank\" rel=\"noopener\"><FONT style=\"BACKGROUND-COLOR: #ffffff\">http:\/\/belnet.dl.sourceforge.net\/sourceforge\/cscope\/cscope-15.3-1.i386.rpm<\/FONT><\/A><FONT style=\"BACKGROUND-COLOR: #ffffff\"> <br \/>&nbsp; &nbsp; \uc124\uce58 \ud558\uae30<br \/>&nbsp; &nbsp; $rpm -ivf cscope-15.3-1.i386.rpm<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">cscope \uc124\uc815 \ud558\uae30<br \/>&nbsp;&nbsp; cscope \uc124\uc815\uc740 \uc880 \uc190\uc774 \ub9ce\uc774 \uac11\ub2c8\ub2e4 (ctags\uc5d0 \ube44\ud574...)<br \/>&nbsp; &nbsp; \uc6b0\uc120 mkcscope.sh \ud30c\uc77c\uc744 \ub9cc\ub4e4\uc5b4\uc57c \ud569\ub2c8\ub2e4 <br \/>&nbsp;&nbsp; ============ mkcscope.sh \ud30c\uc77c \ub0b4\uc6a9 ================<br \/>&nbsp; &nbsp; #!\/bin\/sh<br \/>&nbsp; &nbsp; rm -rf cscope.files cscope.files<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">&nbsp; &nbsp; find . \\ ( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h'<br \/>&nbsp; &nbsp; -o -name '*.s' -o -name '*.S' \\ ) - print &gt; cscope.files<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">&nbsp; &nbsp; cscope -i cscope.files<br \/>&nbsp; &nbsp; ============================================<br \/>&nbsp; &nbsp; \ud30c\uc77c \uc0dd\uc131 \ud6c4 \ud30c\uc77c \ud37c\ubbf8\uc158 \uc124\uc815<br \/>&nbsp; &nbsp; $chmod 755 mkcscope.sh<br \/>&nbsp; &nbsp; $mv mkcscope.sh \/usr\/bin<br \/>&nbsp; &nbsp; \ub514\ub809\ud1a0\ub9ac \uc774\ub3d9 <br \/>&nbsp; &nbsp; $cd \/usr\/src\/linux (\uc2ec\ubcfc\ub9ad \ub9c1\ud06c \uc544\ub2d0\uc2dc \uc804\uccb4 \uacbd\ub85c)<br \/>&nbsp; &nbsp; mkcscope.sh \uc2e4\ud589&nbsp; \ud558\uba74 \ube4c\ub4dc \ub3fc\uba74\uc11c \ub370\uc774\ud130\uac00 \ub9cc\ub4e4\uc5b4 \uc9d1\ub2c8\ub2e4 <br \/>&nbsp; &nbsp; \ube4c\ub4dc \uc885\ub8cc\uc2dc \uac12\uc744 \uc785\ub825 \ud558\ub294\uac8c \ub098\uc624\ub294\ub370 ctrl + d\ub97c \ub20c\ub7ec\uc11c \uc885\ub8cc \ud569\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; <br \/>&nbsp; &nbsp; \uc774\ud6c4 .vimrc \ud30c\uc77c\uc5d0 \ub2e4\uc74c \ub0b4\uc6a9\uc744 \ucd94\uac00 \ud569\ub2c8\ub2e4 <br \/>&nbsp; &nbsp; =============================================<br \/>&nbsp; &nbsp; set csprg=\/usr\/bin\/cscope<br \/>&nbsp; &nbsp; set csto=0(\uc22b\uc790 0)<br \/>&nbsp; &nbsp; set cst<br \/>&nbsp; &nbsp; set nocsverb<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">&nbsp; &nbsp; if filereadable(\".\/cscope.out\")<br \/>&nbsp; &nbsp; &nbsp;&nbsp; cs add cscope.out<br \/>&nbsp; &nbsp; else <br \/>&nbsp; &nbsp; &nbsp;&nbsp; cs add \/usr\/src\/linux\/cscope.out<br \/>&nbsp; &nbsp; endif<br \/>&nbsp; &nbsp; set csverb<br \/>&nbsp;&nbsp; ==============================================<br \/>&nbsp;&nbsp; \uc774\uc81c&nbsp; \uc124\uc815\uc740 \ub05d\uc774 \ub0ac\uc2b5\ub2c8\ub2e4 <\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">&nbsp;&nbsp; \uc0ac\uc6a9\ud558\uae30 ( cscope \uc758 \uba85\ub839 \ud615\uc2dd )<br \/>&nbsp; &nbsp; :cs find {\uc9c8\uc758\uc885\ub958} {\uc2ec\ubc8c}<br \/>&nbsp; &nbsp; ex) cs find s start_kernel<\/FONT><\/P>\n<P><FONT style=\"BACKGROUND-COLOR: #ffffff\">&nbsp;&nbsp; cscope \uc758 \uc9c8\uc758 \uc885\ub958<br \/>&nbsp; &nbsp; 0 or s&nbsp; - &gt; Find this C symbol<br \/>&nbsp; &nbsp; 1 or g&nbsp; - &gt; Find this definition<br \/>&nbsp; &nbsp; 2 or d&nbsp; - &gt; Find functions called by this function<br \/>&nbsp; &nbsp; 3 or c&nbsp; - &gt; Find functions calling this function<br \/>&nbsp; &nbsp; 4 or t&nbsp; - &gt; Find assignments to<br \/>&nbsp; &nbsp; 6 or e&nbsp; - &gt; Find this egrep pattern <br \/>&nbsp; &nbsp; 7 or f &nbsp; - &gt; Find this File<br \/>&nbsp; &nbsp; 8 or i &nbsp; - &gt; Find files #including this file<\/FONT><\/P>\n","protected":false},"excerpt":{"rendered":"<p>1. ctags \ub780 ? &nbsp;&nbsp; = &gt;&nbsp; ctags\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \uc18c\uc2a4 \ucf54\ub4dc\uc758 \ud0dc\uadf8 (\uc804\uc5ed\ubcc0\uc218 \uc120\uc5b8, \ud568\uc218 \uc815\uc758, \uba54\ud06c\ub85c \uc815\uc758)\ub4e4\uc758&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \ub370\uc774\ud130 \ubca0\uc774\uc2a4(tags\ud30c\uc77c)\uc744 \uc0dd\uc131\ud558\ub294 \uba85\ub839\uc5b4\uc785\ub2c8\ub2e4. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \ucee4\ub110 \uc18c\uc2a4 \ubd84\uc11d\ub4f1 \uc791\uc5c5\uc5d0\uc11c \ud0c1\uc6d4\ud55c \uc131\ub2a5\uc744 \ubc1c\ud718\ud569\ub2c8\ub2e4 2. ctags \ubc84\uc804 \ud655\uc778\ud558\uae30&nbsp; &nbsp; = &gt; (\uc258\uc5d0\uc11c)&nbsp; $ctags &#8211;version \uc774\ub77c\uace0 \uc785\ub825\ud55c\ub2e4 \uc124\uce58 \ub3fc\uc5b4 \uc788\ub294\uacbd\uc6b0 \ubc84\uc804 \uc815\ubcf4\uac00 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[22],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-development_unix"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=69"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/69\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}