I'm trying to modify the gcore.c to support heap dump. At least not supported in this version "Ubuntu 7.11.1-0ubuntu1~16.04" Any ideas? P.S I'm trying to avoid "cat /proc/xxx/maps" or the "dump binary memory" gdb command I need these things done automatically, with a single command `gcore PID`