avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] debug using gdb for AVR in Linux. missing .s temporary fi


From: José Vallet
Subject: Re: [avr-chat] debug using gdb for AVR in Linux. missing .s temporary files
Date: Wed, 25 Apr 2007 18:56:53 +0300
User-agent: Thunderbird 1.5.0.10 (X11/20070306)

Thanks Joerg for your quick answer.

Joerg Wunsch wrote:
José Vallet <address@hidden> wrote:

(gdb) list
1       /tmp/ccZFY2vd.s: No such file or directory.
          in /tmp/ccZFY2vd.s

My guess is these have somehow been recorded by the Ethernut project.
You could try adding the option "-save-temps" when compiling, so the
compiler won't delete its intermediate files.


I tried adding "-save-temps" to the compiler flags, but it didn't help.
It just saved the .s files in the local directory where I have all the
source files with the names of my project files.

However, following that line of reasoning I continued a bit more of
exploration of the output of "objdump -g", and found what I think are hints that suggest that the /tmp files were recorded by avr-libc libraries, not by the Ethernut project (see the end of this mail for more detailed info about the output of objdump -g).

Just to be sure and make things easier I just got the first example from the avr-libc (http://www.nongnu.org/avr-libc/user-manual/group__demo__project.html)
Here we also get references to temporary unexisting files:
----------------------
address@hidden:~/ethernut-4.2.1/nutapp/test1$ avr-objdump -g demo.elf | grep /tmp
/tmp/ccZFY2vd.s:
------------------------
However, for the case of the simple project I _can_ use avr-gdb quite nicely (using AVRJTAGICE mkII + avarice), while for the Ethernut project I just can't.

So somehow it now seems to me that the problem of not finding the temporary files might not be the real issue that makes it impossible for me to debug using avr-gdb in Linux. I am puzzled...

I will continue with this issue. Any more ideas?

Tanks,
José



Now, here is part of the output of "avr-objdump -g" where the temporary files are found.
----------------------------
/tmp/ccRwY0Qt.s:
 ../../../../libc/misc/eeprom.S:
/* file ../../../../libc/misc/eeprom.S line 60 addr 0x4602 */
/* file ../../../../libc/misc/eeprom.S line 61 addr 0x4604 */
/* file ../../../../libc/misc/eeprom.S line 63 addr 0x4606 */
/* file ../../../../libc/misc/eeprom.S line 65 addr 0x4608 */
/* file ../../../../libc/misc/eeprom.S line 66 addr 0x460a */
/* file ../../../../libc/misc/eeprom.S line 67 addr 0x460c */
/* file ../../../../libc/misc/eeprom.S line 68 addr 0x460e */
/* file ../../../../libc/misc/eeprom.S line 69 addr 0x4610 */
/tmp/ccY4Asdx.s:
 ../../../../libc/misc/eeprom.S:
/* file ../../../../libc/misc/eeprom.S line 183 addr 0x4612 */
/* file ../../../../libc/misc/eeprom.S line 184 addr 0x4614 */
/* file ../../../../libc/misc/eeprom.S line 185 addr 0x4616 */
/* file ../../../../libc/misc/eeprom.S line 186 addr 0x4618 */
/* file ../../../../libc/misc/eeprom.S line 188 addr 0x461a */
/* file ../../../../libc/misc/eeprom.S line 189 addr 0x461c */
/* file ../../../../libc/misc/eeprom.S line 192 addr 0x461e */
/* file ../../../../libc/misc/eeprom.S line 194 addr 0x4620 */
/* file ../../../../libc/misc/eeprom.S line 195 addr 0x4622 */
/* file ../../../../libc/misc/eeprom.S line 196 addr 0x4624 */
/* file ../../../../libc/misc/eeprom.S line 197 addr 0x4626 */
/* file ../../../../libc/misc/eeprom.S line 198 addr 0x4628 */
/* file ../../../../libc/misc/eeprom.S line 199 addr 0x462a */
/* file ../../../../libc/misc/eeprom.S line 200 addr 0x462c */
/* file ../../../../libc/misc/eeprom.S line 201 addr 0x462e */
/* file ../../../../libc/misc/eeprom.S line 202 addr 0x4630 */
/* file ../../../../libc/misc/eeprom.S line 204 addr 0x4632 */
/tmp/ccsFRQaz.s:
 ../../../../libc/misc/eeprom.S:
/* file ../../../../libc/misc/eeprom.S line 111 addr 0x4634 */
/* file ../../../../libc/misc/eeprom.S line 112 addr 0x4636 */
/* file ../../../../libc/misc/eeprom.S line 114 addr 0x4638 */
/* file ../../../../libc/misc/eeprom.S line 116 addr 0x463a */
/* file ../../../../libc/misc/eeprom.S line 117 addr 0x463c */
/* file ../../../../libc/misc/eeprom.S line 118 addr 0x463e */
/* file ../../../../libc/misc/eeprom.S line 119 addr 0x4640 */
/* file ../../../../libc/misc/eeprom.S line 120 addr 0x4642 */
/* file ../../../../libc/misc/eeprom.S line 121 addr 0x4644 */
/* file ../../../../libc/misc/eeprom.S line 122 addr 0x4646 */
/* file ../../../../libc/misc/eeprom.S line 123 addr 0x4648 */
/tmp/ccYLuMmf.s:
 ../../../../libc/string/memchr.S:
/* file ../../../../libc/string/memchr.S line 58 addr 0x464a */
/* file ../../../../libc/string/memchr.S line 60 addr 0x464c */
/* file ../../../../libc/string/memchr.S line 61 addr 0x464e */
/* file ../../../../libc/string/memchr.S line 62 addr 0x4650 */
/* file ../../../../libc/string/memchr.S line 63 addr 0x4652 */
/* file ../../../../libc/string/memchr.S line 64 addr 0x4654 */
/* file ../../../../libc/string/memchr.S line 65 addr 0x4656 */
/* file ../../../../libc/string/memchr.S line 66 addr 0x4658 */
/* file ../../../../libc/string/memchr.S line 67 addr 0x465a */
/* file ../../../../libc/string/memchr.S line 68 addr 0x465c */
/* file ../../../../libc/string/memchr.S line 69 addr 0x465e */
/* file ../../../../libc/string/memchr.S line 71 addr 0x4660 */
/* file ../../../../libc/string/memchr.S line 72 addr 0x4662 */
/* file ../../../../libc/string/memchr.S line 73 addr 0x4664 */
/tmp/ccuvqlth.s:
 ../../../../libc/string/memcpy.S:
/* file ../../../../libc/string/memcpy.S line 54 addr 0x4666 */
/* file ../../../../libc/string/memcpy.S line 55 addr 0x4668 */
/* file ../../../../libc/string/memcpy.S line 72 addr 0x466a */
/* file ../../../../libc/string/memcpy.S line 74 addr 0x466c */
/* file ../../../../libc/string/memcpy.S line 75 addr 0x466e */
/* file ../../../../libc/string/memcpy.S line 77 addr 0x4670 */
/* file ../../../../libc/string/memcpy.S line 78 addr 0x4672 */
/* file ../../../../libc/string/memcpy.S line 80 addr 0x4674 */
/* file ../../../../libc/string/memcpy.S line 82 addr 0x4676 */
/tmp/ccyKhAeh.s:
 ../../../../libc/string/memset.S:
/* file ../../../../libc/string/memset.S line 53 addr 0x4678 */
/* file ../../../../libc/string/memset.S line 68 addr 0x467a */
/* file ../../../../libc/string/memset.S line 70 addr 0x467c */
/* file ../../../../libc/string/memset.S line 72 addr 0x467e */
/* file ../../../../libc/string/memset.S line 73 addr 0x4680 */
/* file ../../../../libc/string/memset.S line 75 addr 0x4682 */
/* file ../../../../libc/string/memset.S line 77 addr 0x4684 */
/tmp/cctCfg1d.s:
 ../../../../libc/string/strcmp.S:
/* file ../../../../libc/string/strcmp.S line 55 addr 0x4686 */
/* file ../../../../libc/string/strcmp.S line 56 addr 0x4688 */
/* file ../../../../libc/string/strcmp.S line 58 addr 0x468a */
/* file ../../../../libc/string/strcmp.S line 59 addr 0x468c */
/* file ../../../../libc/string/strcmp.S line 60 addr 0x468e */
/* file ../../../../libc/string/strcmp.S line 61 addr 0x4690 */
/* file ../../../../libc/string/strcmp.S line 62 addr 0x4692 */
/* file ../../../../libc/string/strcmp.S line 63 addr 0x4694 */
/* file ../../../../libc/string/strcmp.S line 66 addr 0x4696 */
/* file ../../../../libc/string/strcmp.S line 67 addr 0x4698 */
/tmp/ccjpYdT3.s:
 ../../../../libc/pmstring/strcpy_P.S:
/* file ../../../../libc/pmstring/strcpy_P.S line 53 addr 0x469a */
/* file ../../../../libc/pmstring/strcpy_P.S line 54 addr 0x469c */
/* file ../../../../libc/pmstring/strcpy_P.S line 56 addr 0x469e */
/* file ../../../../libc/pmstring/strcpy_P.S line 57 addr 0x46a0 */
/* file ../../../../libc/pmstring/strcpy_P.S line 58 addr 0x46a2 */
/* file ../../../../libc/pmstring/strcpy_P.S line 59 addr 0x46a4 */
/* file ../../../../libc/pmstring/strcpy_P.S line 61 addr 0x46a6 */
/tmp/cckas0z4.s:
 ../../../../libc/pmstring/strlen_P.S:
struct __iobuf { /* id 0 */
};
/* file ../../../../libc/pmstring/strlen_P.S line 50 addr 0x46a8 */
/* file ../../../../libc/pmstring/strlen_P.S line 52 addr 0x46aa */
/* file ../../../../libc/pmstring/strlen_P.S line 53 addr 0x46ac */
/* file ../../../../libc/pmstring/strlen_P.S line 54 addr 0x46ae */
/* file ../../../../libc/pmstring/strlen_P.S line 56 addr 0x46b0 */
/* file ../../../../libc/pmstring/strlen_P.S line 57 addr 0x46b2 */
/* file ../../../../libc/pmstring/strlen_P.S line 58 addr 0x46b4 */
/* file ../../../../libc/pmstring/strlen_P.S line 59 addr 0x46b6 */
/* file ../../../../libc/pmstring/strlen_P.S line 60 addr 0x46b8 */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]