Eclipse debug plugin for ChibiOS/RT

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Location: Minsk, Belarus
Been thanked: 7 times

Re: Eclipse debug plugin for ChibiOS/RT

Postby barthess » Tue Sep 06, 2011 8:53 pm

"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ð.

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Eclipse debug plugin for ChibiOS/RT

Postby Giovanni » Tue Sep 06, 2011 9:03 pm

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

User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Location: Minsk, Belarus
Been thanked: 7 times

Re: Eclipse debug plugin for ChibiOS/RT

Postby barthess » Tue Sep 06, 2011 9:07 pm

Field p_name contain correct pointer - 0x08008d80

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Eclipse debug plugin for ChibiOS/RT

Postby Giovanni » Tue Sep 06, 2011 9:13 pm

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

User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Location: Minsk, Belarus
Been thanked: 7 times

Re: Eclipse debug plugin for ChibiOS/RT

Postby barthess » Mon Sep 12, 2011 4:29 pm

Plugin v. 1.0.7 now works without any problems with dynamic threads. Tested with dynamic shell thread.

User avatar
Badger
Posts: 346
Joined: Mon Apr 18, 2011 6:07 pm
Location: Bath, UK
Contact:

Re: Eclipse debug plugin for ChibiOS/RT

Postby Badger » Mon Sep 12, 2011 5:07 pm

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.

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Eclipse debug plugin for ChibiOS/RT

Postby Giovanni » Mon Sep 12, 2011 5:39 pm

The font is a Courier-new 8, it this font present in Mac OS?

Giovanni

User avatar
Badger
Posts: 346
Joined: Mon Apr 18, 2011 6:07 pm
Location: Bath, UK
Contact:

Re: Eclipse debug plugin for ChibiOS/RT

Postby Badger » Mon Sep 12, 2011 5:50 pm

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/
Attachments
Screen Shot 2011-09-12 at 17.47.44.png
Courier-new size 8
Screen Shot 2011-09-12 at 17.47.44.png (78.91 KiB) Viewed 5078 times

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Eclipse debug plugin for ChibiOS/RT

Postby Giovanni » Mon Sep 12, 2011 5:54 pm

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

User avatar
Badger
Posts: 346
Joined: Mon Apr 18, 2011 6:07 pm
Location: Bath, UK
Contact:

Re: Eclipse debug plugin for ChibiOS/RT

Postby Badger » Mon Sep 12, 2011 6:12 pm

For reference, 'Courier' looks fine at size 8. Are you able to detect which OS is being used and switch accordingly?


Return to “Development and Feedback”

Who is online

Users browsing this forum: Google [Bot] and 67 guests