Re: debug infos in assembler files

Georg-Johann Lay <[email protected]>
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <[email protected]>
Klaus Rudolph schrieb:
> I want to have debug infos in my assembler output files.
> 
> I tried with
> avr-gcc -Wa,-gstabs,-D -xassembler-with-cpp -mmcu=atmega32 -nostdlib $< -o eins
> 
> But if I use:
> avr-gdb eins
> (gdb) list
> 1       /tmp/ccUMCsnQ.s: No such file or directory.

Generated s files are temorary files, does -save-temps help?

> And which args I have to use if I want a two step assembly/link?
> Maybe there is something more different.

To break the build process into several steps, have a look at the -c 
compiler option (just preprocess, compile and assemble)

Johann
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.