I need a debugger for assembly on Linux. I am extremely surprised by the LACK of debuggers out there for Linux! It should have various features, such as showing the registers an
I'm really understand the @Saustin's question because I was looking for a Linux Assembly Debugger too, which means the possibility for create breakpoints, run step by step, see the registers on real time, go back (backtrace) or go forward, see the data in memory, etc,.
The solution is use properly DDD/GDB.
First at all it is the screenshot show how it looks.
It needs some special requirement:
-F stabs
in nasm
like this:Linux command line:
nasm -f elf -F stabs hello.asm -o hello_stabs.o
ld -m elf_i386 hello_stabs.o -o hello_stabs
Then you run your the debug normally like: ffffd hello_stabs
Enjoy!
The option -F stabs
, tells the assembler to include debugging information in the output file. DDD and GDB use the STABS debugging format.
Source and good short tutorial:
The Data Display Debugger (DDD), A Quick Start Guide