Question

I have a binary file made with nasm -f which I want to do some debugging, or close enough. So far I know, nasm doesn't generate proper symbols for debugging to a binary file, right? which approach could I use to e.g, see each value passed on register/memory a time? I have an "array" in a assembly program that I want to see each value of. Is there any tool would help to perform this task?

Was it helpful?

Solution

If you are on linux, you should use nasm -f elf -F dwarf to get debug information, and make sure you are not stripping them during linking.

Also, to see register or memory contents you don't need debug info.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top