gdb 㯠ptrace(2) ã·ã¹ãã ã³ã¼ã«ã®ä¾¿å©ãªããã³ãã¨ã³ãã¤ã³ã¿ãã§ã¼ã¹ã¨ãã¦ä½¿ãã¾ããç¹ã«ã¿ã¼ã²ããããã»ã¹å ã®é¢æ°ãå¼ã®ä¸ã§å¼ã¶ãã¨ãã§ããæ©è½ã¯å¼·åã§ãptrace ã® attach æ©è½ã¨çµã¿åããã¦ä½¿ãã°ãåä½ä¸ã®ããã»ã¹ã«å¯¾ãã¦ã¡ãã£ãããåºããã¨ãç°¡åã«ã§ãã¾ãã åç´ãªæ´»ç¨ä¾ãããã¤ãç´¹ä»ãã¾ãã以ä¸ã¯ i386 ã® Debian GNU/Linux (sid) ã®ã·ã¹ãã ã§å®é¨ãã¾ãããgdb 㯠6.4 ããåã®ãã¼ã¸ã§ã³ã§ã¯ãã¾ãåããªãä¾ãããã¾ãã % ps x | grep firefox 3616 ? Rl 19:40 /usr/lib/firefox/firefox-bin -a firefox % gdb -q -p 3616 (gdb) p chdir("/") [Switching to Thread -1221168480 (LWP 361
{{#tags}}- {{label}}
{{/tags}}