Search code examples
linuxbashdebugginggdbmemory-dump

Cleanup output from GDB memory dump


We lost a configuration file which we were able to recover some of the data with a gdb memory dump but many important parts of the file are buried in memory noise.

Is there a way to cleanup the dump files?

Example output

enter image description here


Solution

  • The strings command was able to remove the garbage from the file.

    strings mem_7fbf71165000 > strings.txt