Hi all,

Is there any easy way to get app's start and end address of code, data,
heap, stack and BSS segments?


Hooking functions such as malloc, mmap can capture memory allocation (
what Massif do ). But I think this way is too heavy to me, and I'm not
sure such a way can solve my problem either. Since Valgrind has a
embeded linker, I believe it has something to manage the memory layout.


Here is what I want to do:

    > Lackey gives an address, such as 0x7FF0008E8,
    > *I want to determine which segment does the address points to.
    *
    > If I have a directory like below, I then can easily achive my goal.
    "heap":[0x1000000, 0x2000000]
    "text":[0x3C00000, 0x3F00000]
    etc...
    > Is it possible for me to build such a directory?




Thank you and Merry Xmas!

----
Ray
Chiese Academy of Sciences, Beijing, China.


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to