# Switch/browse task backtraces from Eclipse?

**URL:** <https://forums.freertos.org/t/switch-browse-task-backtraces-from-eclipse/575>\
**Category:** Kernel\
**Created:** [July 31, 2012, 6:57am UTC](https://forums.freertos.org/t/switch-browse-task-backtraces-from-eclipse/575 "2012-07-31T06:57:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [July 31, 2012, 6:57am UTC](https://forums.freertos.org/t/switch-browse-task-backtraces-from-eclipse/575/1 "2012-07-31T06:57:15Z")

</div>

**[jubajube](https://sourceforge.net/u/jubajube/)** wrote on [Tuesday, July 31, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/13942e3b/#cef0):

I’m looking for an Eclipse plugin for FreeRTOS that allows me to view the backtraces of each task.&nbsp; Eclipse GDB Hardware Debugging by itself only shows me the backtrace of the currently running task.&nbsp; This makes perfect sense because neither Eclipse nor GDB have any knowledge of FreeRTOS.&nbsp; However, I’m thinking an intelligent plugin might do better!

I tried the StateViewer plugin from High Integrity Systems, but it only shows me the list of tasks and their priorities, stack pointers/tops, state, and what event it’s waiting/blocked on (if any).&nbsp; It does not have the ability to show me backtraces of these tasks, which would be incredibly useful for seeing the full context, local variable states, etc.&nbsp; I know all the information is there in the stacks of each task, and it’s only a matter of parsing those stacks.

Since GDB does this already for the currently running task, I wouldn’t mind if I had to “switch” to a different task in order to leverage GDB to view another task’s backtrace.&nbsp; Unfortunately, StateViewer doesn’t support that either.&nbsp; I’m forced to set strategic breakpoints where I know other tasks will hit, and let the processor run to those breakpoints.&nbsp; One big disadvantage of this is that if the target system has crashed or locked up, setting those breakpoints and letting the processor run is no longer a viable option.

Does an Eclipse plugin exist that has these features, or must I write one myself?

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [July 31, 2012, 8:02am UTC](https://forums.freertos.org/t/switch-browse-task-backtraces-from-eclipse/575/2 "2012-07-31T08:02:27Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, July 31, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/13942e3b/#e092):

I know of one person who is working on threading support using the standard Eclipse and GDB features, but it is a background project so I don’t know if or when it will be available.&nbsp; If you create something please post it to the FreeRTOS interactive site as I think it will be of great interest to the community.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [December 6, 2012, 1:24am UTC](https://forums.freertos.org/t/switch-browse-task-backtraces-from-eclipse/575/3 "2012-12-06T01:24:48Z")

</div>

**[uecasm](https://sourceforge.net/u/uecasm/)** wrote on [Thursday, December 06, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/13942e3b/#b4c2):

Do you have a link for this or any further information on it?&nbsp; It’s something I’d be quite interested in too, even if I had to manually run a “switch to stack at 0xNNNNNNNN” command or something - though obviously it’d be nicer if it went into the Debug tab like “normal” threads.

It’d be especially helpful when trying to diagnose exceptions or interrupt races.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 23, 2013, 7:59am UTC](https://forums.freertos.org/t/switch-browse-task-backtraces-from-eclipse/575/4 "2013-03-23T07:59:52Z")

</div>

**[jblackarty](https://sourceforge.net/u/jblackarty/)** wrote on [Saturday, March 23, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/13942e3b/#616f):

I’m interested too. I saw that OpenOCD stub supports exactly this feature, but I use J-Link GDB server. It would be much more flexible if this feature being handled on gdb client side, or, even better, on eclipse side.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 30, 2013, 3:36pm UTC](https://forums.freertos.org/t/switch-browse-task-backtraces-from-eclipse/575/5 "2013-03-30T15:36:18Z")

</div>

**[jblackarty](https://sourceforge.net/u/jblackarty/)** wrote on [Saturday, March 30, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/13942e3b/#e7a1):

I made contribution:  
[http://interactive.freertos.org/entries/23468301-Tasks-backtrace-switcher-viewer-snippet-for-debugger-gcc-gdb-ARM-Cortex-M3-MPU-port-Eclipse-support-](http://interactive.freertos.org/entries/23468301-Tasks-backtrace-switcher-viewer-snippet-for-debugger-gcc-gdb-ARM-Cortex-M3-MPU-port-Eclipse-support-)

> even if I had to manually run a “switch to stack at 0xNNNNNNNN” command or something

**uecasm** , exactly as you wanted 😉 thank you for idea 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 30, 2013, 3:39pm UTC](https://forums.freertos.org/t/switch-browse-task-backtraces-from-eclipse/575/6 "2013-03-30T15:39:30Z")

</div>

**[jblackarty](https://sourceforge.net/u/jblackarty/)** wrote on [Saturday, March 30, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/13942e3b/#70b3):

forgot to say: it’s for arm cortex-m3 mpu port only

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 15, 2014, 8:28pm UTC](https://forums.freertos.org/t/switch-browse-task-backtraces-from-eclipse/575/7 "2014-08-15T20:28:23Z")

</div>

**[jdallaway](https://sourceforge.net/u/jdallaway/)** wrote on [Friday, August 15, 2014](https://sourceforge.net/p/freertos/discussion/382005/thread/13942e3b/#2022):

The Code Confidence Tools for FreeRTOS provide per-task backtrace: [http://www.codeconfidence.com/tools](http://www.codeconfidence.com/tools)
