c - how to find different memory segment starting and its size in linux -



c - how to find different memory segment starting and its size in linux -

i new linux. want know starting address , size of different segments (like stack, heap, info etc.) , current usage.

i know how find both in running process , in core dump.

thanks in advance.

start looking proc(5) filesystem. man friend.

/proc/[number]/maps file containing mapped memory regions , access permissions

in gdb, can utilize

$ gdb -q (gdb) help info proc show /proc process info running process. specify process id, or utilize programme beingness debugged default. specify of next keywords detailed info: mappings -- list of mapped memory regions. stat -- list bunch of random process info. status -- list different bunch of random process info. -- list available /proc info.

have @ info proc mappings, except doesn't work when there no /proc (such during pos-mortem debugging).

c linux debugging gdb

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -