2011-07-30 17 views

risposta

17

Theres 2 modi:

il modo più vecchio:

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

più recente con pitone:

(gdb) python gdb.execute("set $y=\"" + os.uname()[4] + "\"") 
Problemi correlati