Page 4 of 8

Re: Eclipse debug plugin for ChibiOS/RT

Posted: Tue Sep 06, 2011 8:53 pm
by barthess
"idle\0" founded here and nowhere else:
0x08008D80 656C6469 00000000 6E69616D 00000000 31235653 00000000 32235653 00000000 33235653 00000000 34235653 idle....main....SV#1....SV#2....SV#3....SV#4

content on that address
0x080004A1 029001B0 02699B4B FE619A4A BCBF00E7 80200024 AF08008D AF8000F3 008000F3 24B083B5 DA4A254B 07F04F60 °...K.i.J.aþç.¿¼$. ....¯ó..¯ó...µ.°$K%JÚ`Oð.

Re: Eclipse debug plugin for ChibiOS/RT

Posted: Tue Sep 06, 2011 9:03 pm
by Giovanni
I think this is a corruption of the registry list, the plugin is trying to read a thread name from something that looks like code, being the pointer not aligned the plugin generates that error.

I will try to make the plugin more error tolerant but I believe that the error is an effect of something else possibly a stack overflow corrupting the registry list.

Giovanni

Re: Eclipse debug plugin for ChibiOS/RT

Posted: Tue Sep 06, 2011 9:07 pm
by barthess
Field p_name contain correct pointer - 0x08008d80

Re: Eclipse debug plugin for ChibiOS/RT

Posted: Tue Sep 06, 2011 9:13 pm
by Giovanni
The problem is that the plugin is trying to read that location as it was a thread name pointer, this is why the I think the registry is corrupted, while scanning the list one of the pointers points to something that is not a thread structure.

You may try to "manually scan" the registry by inspecting in Eclipse the global variable "rlist", then follow the r_newer link (or r_older in the other direction).

Giovanni

Re: Eclipse debug plugin for ChibiOS/RT

Posted: Mon Sep 12, 2011 4:29 pm
by barthess
Plugin v. 1.0.7 now works without any problems with dynamic threads. Tested with dynamic shell thread.

Re: Eclipse debug plugin for ChibiOS/RT

Posted: Mon Sep 12, 2011 5:07 pm
by Badger
Is font size configurable for Eclipse plugins? on Mac OS X with Eclipse Helios the font size of the Chibios plugin is incredibly small - very pixelated and basically impossible to read. The actual window elements are fine, but the information about the threads etc is super small. This is with v 1.0.7 - I haven't tried any other versions.

Re: Eclipse debug plugin for ChibiOS/RT

Posted: Mon Sep 12, 2011 5:39 pm
by Giovanni
The font is a Courier-new 8, it this font present in Mac OS?

Giovanni

Re: Eclipse debug plugin for ChibiOS/RT

Posted: Mon Sep 12, 2011 5:50 pm
by Badger
It is present but looks really small, even in the font util.
That is exactly how it appears in the chibios plugin as well. Most of the other fonts look better at size 8.

Hmm attachment doesnt seem to work very well. see here http://imageshack.us/photo/my-images/37 ... at174.png/

Re: Eclipse debug plugin for ChibiOS/RT

Posted: Mon Sep 12, 2011 5:54 pm
by Giovanni
Strange, it does not look that way in both Windows and Linux, I will look into adding a font option but that would create a lot of other problems with column sizes.

Giovanni

Re: Eclipse debug plugin for ChibiOS/RT

Posted: Mon Sep 12, 2011 6:12 pm
by Badger
For reference, 'Courier' looks fine at size 8. Are you able to detect which OS is being used and switch accordingly?