Re: Announcing the RosAsm Library Project



rhyde@xxxxxxxxxx wrote:

On Oct 7, 1:20 pm, Charles Crayne <ccra...@xxxxxxxxxx> wrote:


As it happens, I am currently trying to debug a c program (part of
the NASM source) and, having been unable to do so at the C level,
have disassembled the failing function, and am debugging it as an
assembly program.


And therein lies one of the advantages of using C -- you get the
opportunity to debug it as either C source level code or as assembly
code. Alas, when you're writing the code in assembly, you *don't* get
the opportunity to choose "C" debugging if you're having problems
debugging it in assembly.

That's like wanting to do Ada debugging with a C program. Nothing stops
the assembler from injecting debugging information into it's object
files. The problem is most mainstream debuggers don't interpret well
assembler based debugging information.

GDB in particular seems to have been written with the assumption that C
was the only programming language in existence.

.



Relevant Pages

  • Re: Announcing the RosAsm Library Project
    ... I am currently trying to debug a c program (part of the ... NASM source) and, having been unable to do so at the C level, have ... and am debugging it as an assembly ... opportunity to debug it as either C source level code or as assembly ...
    (alt.lang.asm)
  • Re: Announcing the RosAsm Library Project
    ... the opportunity to choose "C" debugging if you're having problems ... assembler based debugging information. ... Let's take stack frames as an example. ... do a source level debug of the Gas code that HLA emits. ...
    (alt.lang.asm)
  • Re: C++ Workable Mainframe Debuggers
    ... you have to be able to read assembler to do ... IBM Debug Tool for z/OS is available. ... You can license Debug Tool as MLC or, in the form of the Debug Tool ... For graphical debugging use Rational Developer for System z (or ...
    (bit.listserv.ibm-main)
  • Debugging Symbols with nasm
    ... I want to do some Linux assembly with nasm. ... The problem is that nasm doesn't support debugging ... If I use gas as an assembler this is no problem because gas does support ...
    (alt.lang.asm)
  • Re: International Peace March (19th / 20th March 2005)
    ... > Program according to the terms of this License, ... Must depends on what 'teacher' they got. ... this is the only Tool, claiming to be an "Assembler", ... "Debugging with only forward execution will become as ...
    (alt.lang.asm)