mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 20:59:50 +04:00
Debug: revert cortex debug to lxml and drop DWT (#2651)
* Debug: revert cortex debug to lxml * Debug: update PyCortexMDebug readme * fbt: moved "debug" dir to "scripts" subfolder * ufbt: added missing debug_other & debug_other_blackmagic targets; github: fixed script bundling * lint: fixed formatting on debug scripts * vscode: updated configuration for debug dir changes --------- Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
29
scripts/debug/FreeRTOS/FreeRTOSgdb/EventGroup.py
Normal file
29
scripts/debug/FreeRTOS/FreeRTOSgdb/EventGroup.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# File: EventGroup.py
|
||||
# Author: Carl Allendorph
|
||||
# Date: 05NOV2014
|
||||
#
|
||||
# Description:
|
||||
# This file contains the implementation of a Event Group Inspector
|
||||
|
||||
|
||||
import gdb
|
||||
from .List import ListInspector
|
||||
from .Task import TaskInspector
|
||||
|
||||
|
||||
class EventGroupInspector:
|
||||
EvtGrpType = gdb.lookup_type("EventGroup_t")
|
||||
|
||||
def __init__(self, handle):
|
||||
self._evtgrp = gdb.Value(handle).cast(EventGroupInspector.EvtGrpType)
|
||||
|
||||
def GetTasksWaiting(self):
|
||||
taskListObj = self._evtgrp["xTasksWaitingForBits"]
|
||||
taskList = ListInspector(taskListObj)
|
||||
return taskList.GetElements(TaskInspector.TCBType)
|
||||
|
||||
def GetEventBits(self):
|
||||
"""Get the Event Flag Bits
|
||||
@return L{gdb.Value} of EventBits_t
|
||||
"""
|
||||
return self._evtgrp["uxEventBits"]
|
||||
Reference in New Issue
Block a user