Hi all,<br>I have an arm7tdmi, and I compiled my source code with -g option.<br>My object files : *.o have .debug sections, but my output doesn't have it after $(LINK.c) so I can't use gdb to debug my application.<br>
I tried make VARIANT=dedbug and --enable-rtems-debug but I have a problem with a missing file : start_g.o<br>How can I generate the debugging symbols ?<br><br>I read the FAQ about debugging : <a href="http://www.rtems.com/wiki/index.php/DebuggingHints">http://www.rtems.com/wiki/index.php/DebuggingHints</a> but I didn't find an answer.<br>
<br>My configuration :<br><br>define make-exe<br> $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).obj \<br> $(LINK_OBJS) $(LINK_LIBS)<br> $(NM) -g -n $(basename $@).obj > $(basename $@).num;\<br> arm-rtems-objcopy \<br>
--only-section=.text \<br> --only-section=.endtext \<br> --only-section=.begindata \<br> --only-section=.data \<br> --only-section=.enddata \<br> --only-section=.bss \<br> --only-section=.endbss \<br>
$(basename $@).obj $(basename $@).obj;\<br> arm-rtems-objcopy --adjust-section-vma .data=`\<br> arm-rtems-objdump --section-headers $(basename $@).obj | \<br> awk 'function h2d(x) { x=toupper(x); digits=length(x); s=0 ; \<br>
for (p=digits; p>0; p--) \<br> s += (16^(p-1)) * ( index("0123456789ABCDEF",\<br> substr(x,1+digits-p,1)) -1 );\<br> return s } ;\<br> /\.text/ { base = $$4 ; size = $$3 };\<br>
END { printf("0x%x", h2d(base) + h2d(size)) }'` \<br> $(basename $@).obj $(basename $@).exe ;\<br> arm-rtems-objcopy --output-target=binary $(basename $@).exe $(basename $@).lm;\<br>
$(SIZE) $(basename $@).obj ;\<br> /opt/bin/chk1 -l $(basename $@).lm;\<br> test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin<br>endef<br><br><br>Thanks,<br>Sebastien<br>