2011-07-30 4 views

답변

17

프로그래머 2 가지 방법 :

이전 방법 :

(gdb) shell echo set \$x=\"$(uname -m)\" >/tmp/foo.gdb 
(gdb) source /tmp/foo.gdb 

파이썬과 새로운 :

(gdb) python gdb.execute("set $y=\"" + os.uname()[4] + "\"") 
관련 문제