> Am 06.09.2002 19:44:35, schrieb Szabó András <[email protected]>:
> >Hi!
>
> welcome!
>
> >My problem is:
> > 1) I write my c program
> > 2) I compile it to hex
> > 3) C-spy debugs is as bytecode/asm not as c.
>
> that's all what is in a hex file - no sources.
>
> >How can i see c language lines in my c-spy?
>
> currently not possible, there are only ways to get some symbols in the
code.
> however GDB (gnu debugger) support is on it's way.
>
> chris
>

It is quite possible to see the C language lines for c-spy debugging.  It's
a bit inelegant, and it doesn't include data segment (variable) information,
but it works well enough until gdb support is completed.  The basic trick is
to use objdump to generate an IAR-assembler compatible disassembly including
the original C code as assembler comments.  This is then assembled and
linked using the (free) IAR tools, giving you something that looks to C-Spy
as a large assembly file, which includes the C code as comments.  There
should be reasonable instructions in some past posts to this list (is there
an archive available?).

David



Reply via email to