2011-07-30 11 views

Odpowiedz

17

theres 2 sposoby:

starszy sposób:

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

nowszy z Pythona:

(gdb) python gdb.execute("set $y=\"" + os.uname()[4] + "\"") 
Powiązane problemy