æè¿ï¼å°ãªãã¨ãversion 7以é)ã®GDBã¯ãPython scriptãå®è¡ã§ãã¾ããå®è¡ã«ã¯ãå¾æ¥ã®GDBãã¯ãã¨åããsourceã³ãã³ãã使ç¨ãã¾ãã æ©éã試ãã¦ã¿ã¾ãããã次ã®ãããªPython scriptãç¨æãã¾ãã $ cat hello.py #!/usr/bin/env python import sys sys.stdout.write('Hello, my first script.\n') GDBãèµ·åãã¦ãå®è¡ãã¾ãã (gdb) source hello.py Hello, my first script. Python scriptããã®GDBæ©è½ã®å©ç¨ 次ã«ãPython scriptããGDBã®æ©è½ã使ç¨ããä¾ãç´¹ä»ãã¾ããgdb.execute()é¢æ°ã使ç¨ããã°ãGDBã®ã³ãã³ãã©ã¤ã³ã§è¡ãæä½ãå®è¡ã§ãã¾ãã ãµã³ãã«ã®ãããã°å¯¾è±¡ã¨ãã¦
{{#tags}}- {{label}}
{{/tags}}