I am using GDB to debug a running process using #gdb -p . Now I would like to set some break points and want to get leaks information. But I'm getting an error as below. (gdb) info leaks Leak detection is not enabled now.
If I try to set heap flags on, I'm getting error as mentioned below. (gdb) set heap-check leaks on librtc is not loaded: Either use -leaks command line option, set heap-check before starting the program, or link librtc explicitly
Hence please help me in a way to enable Leaks information.