itmediaã®ãmain()é¢æ°ã®åã«ã¯ä½ãããã®ããã®é£è¼ãèªãã§ããããªãã£ããã¨ãã調ã¹ããã¨ãã¡ã¢ãã
ï¼ä½è ãµãã¼ããã¼ã¸ï¼
Â
Â
break mainã§runãããã¨ãbreakãã¦ãã®ãâã®è¡ãªã®ãããããããª
breakãè²¼ãããç®æã£ã¦ã©ãããè¦åã«ãªã£ã¦ããã ããï¼
https://image.itmedia.co.jp/ait/articles/1703/01/r20_Hello03-01.PNG
Â
gdbã«ã¤ãã¦èª¿ã¹ãã¨ä½¿ãæ¹ã°ããåºã¦ãã¦ãåçããããããª
Â
break function ã ã¨functionã®ã¨ã³ããªã¼ãã¤ã³ãã§ãã¬ã¤ã¯ããããã
ã¨ãããã¨ã¯ãã¹ã¿ãã¯ãã¤ã³ã¿ããã¼ã¹ãã¤ã³ã¿æ´æ°å¾ãé¢æ°ã®ã¨ã³ããªã¼ãã¤ã³ãã£ã¦ãã¨ï¼kprobeãuprobeãåãã¿ã¤ãã³ã°ãªã®ããªï¼
break function
function ã®ã¨ã³ããªã«ãã¬ã¼ã¯ãã¤ã³ããè¨å®ãã¾ãã
https://image.itmedia.co.jp/l/im/ait/articles/1703/01/l_r20_Hello03-08.PNG
Â
ã¢ã»ã³ãã©ã§æ·±ãã¨ãæ½ã£ã¦ããã®ã¯ãbreakè²¼ã£ã¦å§ãã¦é¢æ°å¼ã³åºãè¦ã¤ãã¦stepiã§å¼ã³åºãå ã®é¢æ°ã«é£ãã§ã¯breakè²¼ã£ã¦ãç¹°ãè¿ãã¦ããã¿ããã
Â