gdb tips gdb ã使ãä¸ã§ä¾¿å©ãª tips ãç´¹ä»ãã¾ããåºæ¬çãªä½¿ãæ¹ããã¹ã¿ã¼ãã¦ãã人åãã§ãã .gdbinit ã®è¨å® ãã¼ã ãã£ã¬ã¯ããªã« .gdbinit ãç½®ãã¦ããã¨ãgdb ã®èµ·åã®éã«èªã¿è¾¼ã¾ãã¾ããç§ã®å ´åã¯æ¬¡ã®ãããªè¨å®ããã¦ãã¾ãã set history save on set history size 10000 set history filename ~/.gdb_history set print pretty on set print static-members off set charset ASCII set history ããå§ã¾ãæåã® 3è¡ã¯å±¥æ´ã«é¢ããè¨å®ã§ããããããã gdb ã®ã³ãã³ãã©ã¤ã³ã®å±¥æ´ããã¡ã¤ã«ã«ä¿åãããä¿åããè¡ã¯æ大 10000 è¡ããã¡ã¤ã«å㯠~/.gdb_history ãã¨ããæå³ã«ãªãã¾ãã
Unixç³»ã³ãã³ãã©ã¤ã³ã¦ã¼ã¶ã¼ã®ããã®ã gcc/g++/g77 ã«ããéçºã«ããããããã°è¡ãç°¡åã«ç´¹ä»ãã¾ãã 以ä¸ã®å 容㯠gcc 2.7.2.3 ã§ã®åä½ã¯ç¢ºèªãã¦ãã¾ãã g++/g77 ã§ãæããã¯éç¨ããã¨æãã®ã§ããã ã²ãã£ã¨ããã¨ç°ãªãé¨åãããããããã¾ããã çè 㯠g++/g77 ã®ä½¿ç¨çµé¨ããªãã®ã§ããã®å ´åã¯å¾¡å®¹èµ¦ãé¡ãã¾ãã å®è¡å ãã¼ã¯ã¼ããã³ã³ãã¤ã«ãªãã·ã§ã³, -Wall, -O2, -O4ã ã¾ã㯠gcc ã«ãªãã·ã§ã³ opt'-Wall' ãä»ãã¦ã³ã³ãã¤ã«ãã è¦åããªããªãã¾ã§ã½ã¼ã¹ãä¿®æ£ãã¾ãã ãã㯠常è ã§ãã 次㫠opt'-O4 -Wall' ã§ã³ã³ãã¤ã«ãã¾ãã ãæªåæåå¤æ°ã®ä½¿ç¨ãã®è¦å (`foo' might be used uninitialized in this function) ã¯ã opt'-O4' ãä»
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}