Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Switch/browse task backtraces from Eclipse?

Posted by Richard Walters on July 31, 2012
I'm looking for an Eclipse plugin for FreeRTOS that allows me to view the backtraces of each task. Eclipse GDB Hardware Debugging by itself only shows me the backtrace of the currently running task. This makes perfect sense because neither Eclipse nor GDB have any knowledge of FreeRTOS. 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). 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. 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. Unfortunately, StateViewer doesn't support that either. I'm forced to set strategic breakpoints where I know other tasks will hit, and let the processor run to those breakpoints. 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?

RE: Switch/browse task backtraces from Eclipse?

Posted by Richard on July 31, 2012
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. 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.

RE: Switch/browse task backtraces from Eclipse?

Posted by Gavin Lambert on December 6, 2012
Do you have a link for this or any further information on it? 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.

RE: Switch/browse task backtraces from Eclipse?

Posted by Artem Pisarenko on March 23, 2013
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.

RE: Switch/browse task backtraces from Eclipse?

Posted by Artem Pisarenko on March 30, 2013
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-
“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 :)

RE: Switch/browse task backtraces from Eclipse?

Posted by Artem Pisarenko on March 30, 2013
forgot to say: it's for arm cortex-m3 mpu port only

Switch/browse task backtraces from Eclipse?

Posted by jdallaway on August 15, 2014

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


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS