GDB: Listing all mapped memory regions for a crashed process

前端 未结 6 1570
时光取名叫无心
时光取名叫无心 2020-12-12 11:13

I\'ve got a full-heap core dump from a dead process on an x86 Linux machine (kernel 2.6.35-22 if it matters), which I\'m attempting to debug in GDB.

Is there a GDB

6条回答
  •  心在旅途
    2020-12-12 11:54

    In GDB 7.2:

    (gdb) help info proc
    Show /proc process information about any running process.
    Specify any process id, or use the program being debugged by default.
    Specify any of the following keywords for detailed info:
      mappings -- list of mapped memory regions.
      stat     -- list a bunch of random process info.
      status   -- list a different bunch of random process info.
      all      -- list all available /proc info.
    

    You want info proc mappings, except it doesn't work when there is no /proc (such as during pos-mortem debugging).

    Try maintenance info sections instead.

提交回复
热议问题