I just have a binary file, no source code whatsoever. I have disassembled it and have the assembly code, which shows that the program has a significant number of variables. I am trying to debug it in gdb, but would like to have an overview of all that is in the stack.
Specifically, I'd like to step through all of the memory between the top of the stack and the bottom of it at a particular point in time, printing out all of the content (of course this will include a lot of garbage) in this region and hopefully storing it in a file. Is there a way of doing this in gdb or otherwise?
*the 'p' command hasn't been useful here