Eclipse plugin 4.x.x doesn't show stack

Discussions and support about ChibiStudio, the free development environment for ARM.
Post Reply
dismirlian
Posts: 65
Joined: Fri Dec 20, 2013 3:59 pm
Has thanked: 1 time
Been thanked: 16 times

Eclipse plugin 4.x.x doesn't show stack

Post by dismirlian »

Hi,

I'm using ChibiOS 16.1.4, and the 4.x.x Debug plugin for Eclipse from the ChibiStudio 17 package.

The issue is that I can't see the stack information (both the StkLimit and the StkUnused columns show "-"). Otherwise the plugin works well.

I have CH_DBG_FILL_THREADS set to TRUE in chconf.h.

What am I missing?

Thanks!!
Diego.
dismirlian
Posts: 65
Joined: Fri Dec 20, 2013 3:59 pm
Has thanked: 1 time
Been thanked: 16 times

Re: Eclipse plugin 4.x.x doesn't show stack

Post by dismirlian »

Ok, as a workaround, I defined:

Code: Select all

#define wabase   stklimit


in chconf.h, because the plugin expects (thread_t *)tp->stklimit instead of (thread_t *)tp->wabase

As a side-note, I can't find the source code for the plugin. Is it available? (I decompressed the plugin's .jar and examined DebugProxy.class with a text editor to find out the correct name for the variable).

Sorry for the noise...

Thanks!
Diego.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Eclipse plugin 4.x.x doesn't show stack

Post by Giovanni »

Hi,

Look in the repository under /branches there is a chibistudio_trunk directory with all the Java/Eclipse stuff inside.

Giovanni
dismirlian
Posts: 65
Joined: Fri Dec 20, 2013 3:59 pm
Has thanked: 1 time
Been thanked: 16 times

Re: Eclipse plugin 4.x.x doesn't show stack

Post by dismirlian »

Thanks Giovanni.

Diego.
joaquin
Posts: 50
Joined: Sat Jan 22, 2011 8:44 pm
Has thanked: 1 time
Been thanked: 3 times

Re: Eclipse plugin 4.x.x doesn't show stack

Post by joaquin »

I've had the same problem, but the workaround also solved the issue
Thank to both of you
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

Re: Eclipse plugin 4.x.x doesn't show stack

Post by steved »

Fix now in repository - need to update (and delete the temporary fix if used)
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Eclipse plugin 4.x.x doesn't show stack

Post by Giovanni »

Hi,

The updated plugin should show as a ChibiStudio update: "Help->Install New Software" then select "ChibiStudio Update Site".

Giovanni
Post Reply