Вопрос

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?

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top