I work a lot with image processing. There is a lot of transformations and sub images extraction. Often, it would be great to actually see those images when debugging. Quick Google search pointed me to the dump command present in gdb. In short, to get the memory dump, you would do something like this: set$source=pointer_to_the_memory set$size_of_the_dump=4096dump memory filename.bin $source$source+size_of_the_dump You have to know the size of your data. For an image it means: width, height, co...