What software versions are you using?
For example, I am running Ubuntu 12.04, kdbg 2.5.0 (KDE 4.8.5 development platform), gdb 7.4-2012.04, nasm 2.09.10
You use Dantmannβs book, yes? I assume that you changed SECTION .txt to SECTION .text because when GDB tries to read characters, it says "done" instead of "Could not find code sections in character file"
I would recommend using gdb directly instead of kdbg. I don't know how to get kdbg to show a disassembled code or list (or how to send any gdb commands directly). I think the best that can be done is:
- Run kdbg
- Open executable file
- Go to the Breakpoints tab
- Type "_start" (which I believe is the only visible character you have) in the edit box.
- Click the Add Breakpoint button
- Click the Run button
- Execution should be broken on _start
- Click on the "Registers" tab.
- Click the "Step by Step" button to view the code.
Kdbg doesn't seem to be able to restart execution. It seems the program should be killed and then run again.
source share