Debugging with nasm

From: RADIUM (uh5d_at_rz.uni-karlsruhe.de)
Date: 05/02/04


Date: Sun, 2 May 2004 04:46:59 +0000 (UTC)

I wrote a little ASM progie with Nasm and output a ELF executable.
I tried debugging it with DDD and GDB, but none of both is able to display
the source code.

If I type "list" in GDB, not only the source code not gets displayed but
also
the raw dissassembled code is not shown.

So, how can I debug a executable which has been build with nasm?
Please note, that I tried to assemble with "nasm -g -felf asmprog.asm".

Thx in advance

Radium



Relevant Pages

  • Debugging with Nasm
    ... I wrote a little ASM progie with Nasm and output a ELF executable. ... I tried debugging it with DDD and GDB, but none of both is able to display ... If I type "list" in GDB, not only the source code not gets displayed but ...
    (alt.lang.asm)
  • Re: Debugging with nasm
    ... >> I wrote a little ASM progie with Nasm and output a ELF executable. ... NASM still doesn't support the gdb debug format. ... > gdb disassemble and info commands to see the code and register values. ... 1st bug in MS win2k source code found after 20 minutes: ...
    (comp.lang.asm.x86)
  • Re: What Assembly Language Should I Use?
    ... (contributing open source code to an open source project would be a *really* weird way to go about it!) ... he would fail. ... he is trying to make NASM *his* thing as ... the licence didn't mention source code at all. ...
    (alt.lang.asm)
  • Re: Why is my nasm program killing itself?
    ... Nasm is like a sewer, Phil - what you get out of it depends on what you put in. ... If you pour source code suitable for a dos .com file into Nasm, you'll get a dos .com file out. ... orig equ $08048000 ... mov byte,49;working once ...
    (alt.lang.asm)
  • Re: Debugging
    ... > I do a listing of available source code from within DDD none of these ... all that shows up is the top level source files containing the ... I manually added it with the directory command in gdb. ...
    (comp.lang.fortran)