Debug XMOS, debug breakpoint, no source code error

New to XMOS and XCore? Get started here.
User avatar
feniksa
Member++
Posts: 22
Joined: Tue Apr 03, 2012 1:12 pm

Debug XMOS, debug breakpoint, no source code error

Post by feniksa »

I am trying to set breakpoint for XMOS XR-USB-AUDIO-2.0-MC, but i got stuck with debugging.
When i setup debug point, XMOS ide always return error "no line in file".

For example:
Image

Or

Image


Redeye
XCore Addict
Posts: 131
Joined: Wed Aug 03, 2011 9:13 am

Post by Redeye »

My first guess would be that you haven't got -g turned on in your build configuration?
User avatar
feniksa
Member++
Posts: 22
Joined: Tue Apr 03, 2012 1:12 pm

Post by feniksa »

Redeye wrote:My first guess would be that you haven't got -g turned on in your build configuration?
I rechecked it in my Makefile, but -g (debug) option setted

Here it is my Makefile: http://pastebin.com/dRkdWbtQ
User avatar
yamada
Member
Posts: 9
Joined: Wed Nov 02, 2011 2:49 am

Post by yamada »

Hello, feniksa.

I saw same trouble sometime. In my case, turning off the -W and -Wall option made thing good.
Try this!
User avatar
armands117
Member
Posts: 11
Joined: Fri Dec 28, 2012 1:39 am

Post by armands117 »

feniksa wrote:
Redeye wrote:My first guess would be that you haven't got -g turned on in your build configuration?
I rechecked it in my Makefile, but -g (debug) option setted

Here it is my Makefile: http://pastebin.com/dRkdWbtQ
You have optimizations with -o3 switched on, this may eliminate such a 'for' loop because the required effect is already achieved by other means.