ã¢ã»ã³ããªã§printfãããã°ã¯è¾ãããªã®ã§ã®GDBãããã°ã«ã¤ãã¦å¦ã¶ã ã¢ã»ã³ããªã§ã-gãªãã·ã§ã³ã使ããã % gcc -g -o hello hello.s % gdb hello (gdb) l 1 .text 2 .global main 3 4 main: mov $1, %eax 5 mov $0xFFFF, %ax 6 mov $0b101010, %ah 7 mov $0, %eax 8 retã¢ã»ã³ããªã®å ´åãã¹ãããã®æ±ããéããã¾ãã表示ã便å©ãªãªãã·ã§ã³ãçºè¦ãããCè¨èªã¨éãé¨åã ãã¡ã¢ã $eaxã§ã¬ã¸ã¹ã¿ã®åç §ãåºæ¥ãã %ã§ã¯ãªãã®ã§æ··ä¹±ãããã si(stepi) ã¹ãããå®è¡ sããã¨é£ãã§ãã注æã ni(nexti) ã¹ãããã¢ã¦ã callå ã¸ã¯é£ã°ãªãã p/x $eax(print) %eaxã16é²æ°ã§è¡¨ç¤º display/t $ea
{{#tags}}- {{label}}
{{/tags}}