[En-Nut-Discussion] branches/devnut_m3n: Makedefs.cm3-gccdbg should define debugging symbols

Ulrich Prinz uprinz2 at netscape.net
Wed Jul 20 23:41:06 CEST 2011


Hi!

On 17.07.2011 14:34, Uwe Bonnes wrote:
> Hello,
> 
> is this the right place to send patches for the devnut_m3n branch?
> 
Yep :)

> 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

I used a windows port of insight-gdb and that worked with some aches...
I'll try insight again on linux as soon as my openocd is working.
> 
> ./nut/Makedefs.arm-gccdbg uses -gdwarf-2. Is this also used for cortex-3?
> 
Yes, what I found on the net was -gdwarf-2 for Cortex.

But I found some additional things I need to put into openocd scripts
and Makefiles of Nut/OS.

Ulrich



More information about the En-Nut-Discussion mailing list