> Sorry to get back so late on this. See this thread in AVR > Freaks: > <http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtop ic&t=27670>
> It has to do with specifying DWARF2 debug info. > Specifying stabs gives no problems. Well sort of. I changed the -g to -gstabs in my makefile but the problem I have is that I get C source in the .lss file for all source files _except_ the one I am interested in. :(( All the command lines look the same and it doesn't matter where it is in the list of files I put the problem file, it still has no interleaved C Source with the assembler - strange! My make output is below if that is of use. The file with no-source code is: ln_buf.c Cheers Alex Shepherd > "make.exe" all -------- begin -------- avr-gcc (GCC) 3.4.3 Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiling: irthrottle.c avr-gcc -c -mmcu=atmega8 -I. -gstabs -Os -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=irthrottle.lst -I../../loconet -I../../avr-base -std=gnu99 -Wp,-M,-MP,-MT,irthrottle.o,-MF,.dep/irthrottle.o.d irthrottle.c -o irthrottle.o Compiling: ../../loconet/ln_buf.c avr-gcc -c -mmcu=atmega8 -I. -gstabs -Os -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=../../loconet/ln_buf.lst -I../../loconet -I../../avr-base -std=gnu99 -Wp,-M,-MP,-MT,ln_buf.o,-MF,.dep/ln_buf.o.d ../../loconet/ln_buf.c -o ln_buf.o Compiling: ../../avr-base/lcd.c avr-gcc -c -mmcu=atmega8 -I. -gstabs -Os -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=../../avr-base/lcd.lst -I../../loconet -I../../avr-base -std=gnu99 -Wp,-M,-MP,-MT,lcd.o,-MF,.dep/lcd.o.d ../../avr-base/lcd.c -o lcd.o Compiling: ../../avr-base/irdecoder.c avr-gcc -c -mmcu=atmega8 -I. -gstabs -Os -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=../../avr-base/irdecoder.lst -I../../loconet -I../../avr-base -std=gnu99 -Wp,-M,-MP,-MT,irdecoder.o,-MF,.dep/irdecoder.o.d ../../avr-base/irdecoder.c -o irdecoder.o Compiling: ../../avr-base/systimer.c avr-gcc -c -mmcu=atmega8 -I. -gstabs -Os -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=../../avr-base/systimer.lst -I../../loconet -I../../avr-base -std=gnu99 -Wp,-M,-MP,-MT,systimer.o,-MF,.dep/systimer.o.d ../../avr-base/systimer.c -o systimer.o Compiling: ../../loconet/throttle.c avr-gcc -c -mmcu=atmega8 -I. -gstabs -Os -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=../../loconet/throttle.lst -I../../loconet -I../../avr-base -std=gnu99 -Wp,-M,-MP,-MT,throttle.o,-MF,.dep/throttle.o.d ../../loconet/throttle.c -o throttle.o Compiling: ../../avr-base/ln_sw_uart.c avr-gcc -c -mmcu=atmega8 -I. -gstabs -Os -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=../../avr-base/ln_sw_uart.lst -I../../loconet -I../../avr-base -std=gnu99 -Wp,-M,-MP,-MT,ln_sw_uart.o,-MF,.dep/ln_sw_uart.o.d ../../avr-base/ln_sw_uart.c -o ln_sw_uart.o Linking: irthrottle.elf avr-gcc -mmcu=atmega8 -I. -gstabs -Os -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=irthrottle.o -I../../loconet -I../../avr-base -std=gnu99 -Wp,-M,-MP,-MT,irthrottle.o,-MF,.dep/irthrottle.elf.d irthrottle.o ln_buf.o lcd.o irdecoder.o systimer.o throttle.o ln_sw_uart.o --output irthrottle.elf -Wl,-Map=irthrottle.map,--cref -lm Creating load file for Flash: irthrottle.hex avr-objcopy -O ihex -R .eeprom irthrottle.elf irthrottle.hex Creating load file for EEPROM: irthrottle.eep avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \ --change-section-lma .eeprom=0 -O ihex irthrottle.elf irthrottle.eep Creating Extended Listing: irthrottle.lss avr-objdump -h -S irthrottle.elf > irthrottle.lss Creating Symbol Table: irthrottle.sym avr-nm -n irthrottle.elf > irthrottle.sym Size after: irthrottle.elf : section size addr .text 7084 0 .data 120 8388704 .bss 239 8388824 .noinit 0 8389063 .eeprom 66 8454144 .stab 17232 0 .stabstr 12431 0 Total 37172 Errors: none -------- end -------- > Process Exit Code: 0 _______________________________________________ AVR-GCC-list mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
