指令筆記 -- GDB

這篇只是我自己學習GDB的指令的紀錄,應該不會太多內容

1. info proc mapping

顯示process的記憶體映射表,GDB會顯示目前除錯對象的/proc//maps的資訊



Mapped address spaces:

          Start Addr           End Addr       Size     Offset objfile
            0x400000           0x401000     0x1000        0x0 /home/xxx/document/c_code/stack/argms/argms
            0x600000           0x601000     0x1000        0x0 /home/xxx/document/c_code/stack/argms/argms
            0x601000           0x602000     0x1000     0x1000 /home/xxx/document/c_code/stack/argms/argms
      0x7ffff7a12000     0x7ffff7bd0000   0x1be000        0x0 /lib/x86_64-linux-gnu/libc-2.17.so
      0x7ffff7bd0000     0x7ffff7dcf000   0x1ff000   0x1be000 /lib/x86_64-linux-gnu/libc-2.17.so
      0x7ffff7dcf000     0x7ffff7dd3000     0x4000   0x1bd000 /lib/x86_64-linux-gnu/libc-2.17.so
      0x7ffff7dd3000     0x7ffff7dd5000     0x2000   0x1c1000 /lib/x86_64-linux-gnu/libc-2.17.so
      0x7ffff7dd5000     0x7ffff7dda000     0x5000        0x0
      0x7ffff7dda000     0x7ffff7dfd000    0x23000        0x0 /lib/x86_64-linux-gnu/ld-2.17.so
      0x7ffff7fcd000     0x7ffff7fd0000     0x3000        0x0
      0x7ffff7ff8000     0x7ffff7ffa000     0x2000        0x0
      0x7ffff7ffa000     0x7ffff7ffc000     0x2000        0x0 [vdso]
      0x7ffff7ffc000     0x7ffff7ffd000     0x1000    0x22000 /lib/x86_64-linux-gnu/ld-2.17.so
      0x7ffff7ffd000     0x7ffff7fff000     0x2000    0x23000 /lib/x86_64-linux-gnu/ld-2.17.so
      0x7ffffffdd000     0x7ffffffff000    0x22000        0x0 [stack]
  0xffffffffff600000 0xffffffffff601000     0x1000        0x0 [vsyscall]

留言

熱門文章