Discussion:
Dumping dynamic symbol information at runtime
Philip Taffet
2014-07-11 18:45:02 UTC
Permalink
Hi,
I'm trying to match dynamic memory allocations (malloc/new, etc.) with the
variable to which it is assigned. I can do the equivalent pretty easily for
statically allocated variables using objdump/readelf to parse the DWARF
information. By virtue of being dynamic, I know that I can't get much
information about dynamic memory allocations at compile-time, but I heard
there was some option for a Cray compiler that made the program dump runtime
symbols after running and I was wondering if there was anything similar for
gcc?
Thanks,
Philip

Loading...