GDB notes

xiaoxiao2021-03-05  28

(GDB) SET $ I = 0 (GDB) While Argv [$ I]! = 0> Print Argv [$ I ]> End

(Gdb) x / 2cb argv [0] 0xfef82b5e: 47 '/' 114 'r' (gdb) x / 2tb argv [0] 0xfef82b5e: 00101111 01110010 (gdb) x / 2tw argv [0] 0xfef82b5e: 01101111011011110111001000101111 01101111011101110010111101110100

> SILENT> SET $ P = ObJ> While $ P! = 0> Print $ P-> Name> set $ P = $ P-> Next> End> Cont (Break point does not stop)

Backtrace (BT) Info FrameupInfo Frameinfo Localsframe 0Return 10

Call Printf ("Test / 0") Call Fflush (0)

DisassembleWatchPointDisplayInfo Display Show Display, DISPLAY

http://www.linuxforum.net/books/linuxfaq/program-gdb.html

转载请注明原文地址:https://www.9cbs.com/read-34727.html

New Post(0)