gdbãã¨ã«ããã¡ãã£ã¨ä½¿ã£ã¦ã¿ã. æºå gdbã®èµ·åããçµäºã¾ã§ å¥ã®å®è¡æ¹æ³ Shellã³ãã³ã 注æç¹ æºågdbã¯ã©ããªé¢¨ã«ä½¿ç¨ããã®ã,ç°¡åãªä½¿ç¨æ¹æ³ãéãã¦ç¤ºãã¦ã¿ãã.ã¾ã以ä¸ã®ãããªã½ã¼ã¹ãããã¨ãã. #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int i; int loop_max; if(argc != 2){ fprintf(stderr,"Usage %s loop-max\n",argv[0]); exit(EXIT_FAILURE); } loop_max = atoi(argv[1]); for(i = 0; i < loop_max; i++){ fprintf(stdout,"i = %d\n",i); } exit(EXIT_SUCCESS); }
{{#tags}}- {{label}}
{{/tags}}