IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
ãLinux/GDBã使ã£ã¦ã³ã¼ãã追ã£ããããã®ã«ã¼ãã«ã¢ã¸ã¥ã¼ã«ç·¨ gdb vmlinux /proc/kcore ã§ã¯ãã«ã¼ãã«ã¢ã¸ã¥ã¼ã«ã®ã·ã³ãã«ãèªã¿è¾¼ã¾ããªãã®ã§ãgdbãèµ·åããå¾ã«add-symbol-fileã³ãã³ãã使ã£ã¦ã·ã³ãã«ãèªã¿è¾¼ãå¿ è¦ãããããã ããåç´ã« (gdb) add-symbol-file net/ipv4/tcp_cubic.o ã¨ãã¦ããç¸å¯¾ã¢ãã¬ã¹ãªã®ã§ã使ããªããããã§ã.textã.dataã»ã¯ã·ã§ã³ãªã©ã®å é çªå°ãgdbã«æããå¿ è¦ãããããããã®ã¢ãã¬ã¹ã¯ã/sys/module/ã¢ã¸ã¥ã¼ã«å/sections/以ä¸ã®ãã¡ã¤ã«ãè¦ãã°ãããã # ls /sys/module/tcp_cubic/sections/ . .data .gnu.linkonce.this_module .strtab __param .. .data.re
kgdbã¯Linux 2.6.26 ããçµ±åãããã«ã¼ãã«ã®ãããã°æ©è½ã§ãã使ã£ãæãã¨ãã¦ã¯ãgdbãµã¼ããã«ã¼ãã«ãæä¾ãã¦ãããããªé°å²æ°ã§ããã«ã¼ãã«ã¢ã¸ã¥ã¼ã«ãæ¸ãã¦ãã¦åä»ãªãã°ã«åºä¼ã£ãã®ã§ãå°å ¥ãã¦ã¿ãã«è³ãã¾ããã以ä¸ã§ã¯ãã®å°å ¥æ¹æ³ã«ã¤ãã¦è¿°ã¹ã¾ãã ããã¾ããªæé ãããã¾ãªæé ã¯ä»¥ä¸ã®éãã§ãã kgdbããµãã¼ããã¦ããã«ã¼ãã«ãç¨æããã bootæãªãã·ã§ã³ã§kgdbã使ãããã«æ示ããã ã¿ã¼ã²ããã®vmlinuxãgdbã¯ã©ã¤ã¢ã³ãã«ã³ãã¼ãã ãªã¢ã¼ãããã¿ã¼ã²ããã«ã¤ãªãã§ã¿ã kgdbããµãã¼ããã¦ããã«ã¼ãã«ãç¨æãã kernel.orgãªã©ãã2.6.26以éã®ã«ã¼ãã«ãè½ã¨ãã¦ãã¦ãmake oldconfigããä¸ã§make menuconfigããKernel hackingã®é ç®ãéããkgdbããªã³ã«ãã¦ã«ã¼ãã«ããã«ããã¾ããå¤ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}