gdb ã® gcore ã³ãã³ãã使ã ãããã¬ã®çè«ã¨å®è£ ãèªãã§ä»¥æ¥ããããã¬ããã£ã¨æ´»ç¨ãããã¨ããæ欲ãããã¦ãã¾ãããããã§ãgdb ã«ã¤ãã¦èª¿ã¹ã¦ããã¨ã gcore (generate-core-file) ã¨ããã³ãã³ããè¦ã¤ãã¾ããã gcore ã¯å®è¡ä¸ã®ããã»ã¹ã® core ãçæãã gdb ã®ã³ãã³ãã§ããé常ã core ãã¡ã¤ã«ã¯ããã°ã©ã ãç°å¸¸çµäºããã¨ãã«ã«ã¼ãã«ã«ãã£ã¦çæããã¾ãããgdb ã® gcore ã³ãã³ãã使ãã°å®è¡ä¸ã®ããã»ã¹ãçµäºããããã¨ãªã core ãã¡ã¤ã«ãçæã§ãã¾ãã gcore ã³ãã³ãã¯æ¬¡ã®ããã«ä½¿ãã¾ãã % gdb (gdb) attach PID (gdb) gcore core (gdb) detach ã¾ã attach ã³ãã³ã㧠PID ãæå®ãã¦å®è¡ä¸ã®ããã»ã¹ã«ã¢ã¿ãããã¾ã (gdb -p PID ã§èµ·
{{#tags}}- {{label}}
{{/tags}}