[En-Nut-Discussion] branches/devnut_m3n: Makedefs.cm3-gccdbg should define debugging symbols
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Sun Jul 17 14:34:04 CEST 2011
Hello,
is this the right place to send patches for the devnut_m3n branch?
Makedefs.cm3-gccdbg should define debugging symbols. That way, I can step
into the library, like:
bt
#0 NutDeviceLookup (name=0x200002b0 "usart2") at
../.././nut/os/devreg.c:100
#1 0x08000e30 in NutRegisterDevice (dev=0x200002ac, base=0, irq=0 '\000')
at ../.././nut/os/devreg.c:140
#2 0x08000026 in main () at candemo.c:94
./nut/Makedefs.arm-gccdbg uses -gdwarf-2. Is this also used for cortex-3?
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: nut/Makedefs.cm3-gccdbg
===================================================================
--- nut/Makedefs.cm3-gccdbg (Revision 3518)
+++ nut/Makedefs.cm3-gccdbg (Arbeitskopie)
@@ -39,8 +39,8 @@
include $(top_srcdir)/Makevars.cm3-gcc
# Override compiler options to create debug code.
-CFLAGS_OPT = -O0 -Wall -Wstrict-prototypes -fverbose-asm -Wa,-ahlms=$(<:.c=.lst) $(DEFS)
-CXXFLAGS_OPT = -O0 -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti
+CFLAGS_OPT = -O0 -g -Wall -Wstrict-prototypes -fverbose-asm -Wa,-ahlms=$(<:.c=.lst) $(DEFS)
+CXXFLAGS_OPT = -O0 -g -fno-delete-null-pointer-checks -fno-exceptions -fno-rtti
LDFLAGS = $(MCFLAGS) -g -nostartfiles -T$(LDSCRIPT) -Wl,-Map=$(PROJ).map,--cref,--no-warn-mismatch -L$(LIBDIR)
ELFCOF = $(BIN) --debugging \
More information about the En-Nut-Discussion
mailing list