[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-chat] debug using gdb for AVR in Linux. missing .s temporary files
From: |
José Vallet |
Subject: |
[avr-chat] debug using gdb for AVR in Linux. missing .s temporary files |
Date: |
Mon, 23 Apr 2007 17:51:10 +0300 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20070306) |
Hello all.
I am trying to debug one simple application under Linux (Kubuntu 6.06)
using gdb, avarice and an ATJTAGICE mkII. I have a strange problem.
I use the compiler flags "-gstabs -ggdb" to generate the debug info, and
the process compiles without problems. Here goes the compilation output
(just in case)
------------------------
address@hidden:~/ethernut-4.2.1/nutapp/lcd-test$ make
avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall
-Wstrict-prototypes -Wa,-ahlms=lcd-test3.lst -DETHERNUT2
-D__HARVARD_ARCH__ -O0 -gstabs -ggdb
-I/home/jose/ethernut-4.2.1/bld/include
-I/home/jose/ethernut-4.2.1/include lcd-test3.c -o lcd-test3.o
lcd-test3.c:16: warning: 'serial1' defined but not used
avr-gcc lcd-test3.o -mmcu=atmega128
-Wl,--defsym=main=0,-Map=lcd-test3.map,--cref
-L/home/jose/ethernut-4.2.1/lib -Wl,--start-group
/home/jose/ethernut-4.2.1/lib/nutinit.o -lnutarch -lnutos -lnutdev
-lnutos -lnutcrt -Wl,--end-group -o lcd-test3.elf
avr-objcopy -R .eeprom -O ihex lcd-test3.elf lcd-test3.hex
--------------------------------
But if I try to load the .elf file in the gdb it complains about a
missing temporary file...
--------------
address@hidden:~/ethernut-4.2.1/nutapp/lcd-test$ avr-gdb lcd-test3.elf
...
(gdb) list
1 /tmp/ccZFY2vd.s: No such file or directory.
in /tmp/ccZFY2vd.s
(gdb)
--------------------------
Using "objdump -d" I can see that there are many other temporary files
referenced by lcd-test3.elf that "should" be in the /tmp folder, but
they are not.
---------------
address@hidden:~/ethernut-4.2.1/nutapp/lcd-test$ objdump -g lcd-test3.elf |
grep /tmp
/tmp/ccZFY2vd.s:
/tmp/ccRwY0Qt.s:
/tmp/ccY4Asdx.s:
/tmp/ccsFRQaz.s:
/tmp/ccYLuMmf.s:
/tmp/ccuvqlth.s:
/tmp/ccyKhAeh.s:
/tmp/cctCfg1d.s:
/tmp/ccjpYdT3.s:
/tmp/cckas0z4.s:
-------------------
Has anybody experienced this problem before? Any suggestions?
Is anybody being able to debug code under Linux with an JTAGICE device?
Regards
José
- [avr-chat] debug using gdb for AVR in Linux. missing .s temporary files,
José Vallet <=