FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [July 2012 Threads] 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
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|