ãã¬ã¤ã¯ãã¤ã³ãããã¹ã¦åé¤ delete ç¹å®ã®ã¢ãã¬ã¹ã®å¤ãæ¸ãæãã£ãæãã¬ã¤ã¯ãããå ´å ã¾ãã¢ãã¬ã¹ãåå¾ããã (gdb) p &(foo->bar) $39 = (MyData *) 0x80cb978 (gdb) watch *((MyData*)0x80cb978) Hardware watchpoint 7: *(MyData *) 135051640 (gdb) c åç´ã« watch foo->barã¨ããã ãã ã¨ãfooã®æå¹ãªåå空éããåºãç¬éã«watchpointãç¡å¹ã«ãªã£ã¦ãã¾ãã次ã«ãwatch 0x80cb978ã¨ããã¨ãããã¯ãããããã¤ã³ã¿ã®ã¢ãã¬ã¹ãªã®ã§ãããã¯å¤åããªããã¤ãã§ã«ãããã ã¨hardware watchpointã«ãªããªãã ã§ã¯ã©ããããã¨ããã¨ãä¸ã®ä¾ã®ããã«ãã¾ãã¢ãã¬ã¹ã渡ããããã¯ãMyDataã¸ã®ãã¤ã³ã¿ã ã¨æ示ãã
{{#tags}}- {{label}}
{{/tags}}