mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-04 02:50:58 +02:00
gdbstub: minor cleanup
1. Add Kconfig options to control task listing support. 2. Convert magic values (-1, -2) to named constants. 3. Convert spaces to tabs to match the rest of the file. 4. Rename getAllTasksHandle to getTaskInfo to reflect its purpose. 5. Add some curly braces for single line statements.
This commit is contained in:
@@ -544,6 +544,23 @@ menu "ESP32-specific"
|
||||
of the crash.
|
||||
endchoice
|
||||
|
||||
config GDBSTUB_SUPPORT_TASKS
|
||||
bool "GDBStub: enable listing FreeRTOS tasks"
|
||||
default y
|
||||
depends on ESP32_PANIC_GDBSTUB
|
||||
help
|
||||
If enabled, GDBStub can supply the list of FreeRTOS tasks to GDB.
|
||||
Thread list can be queried from GDB using 'info threads' command.
|
||||
Note that if GDB task lists were corrupted, this feature may not work.
|
||||
If GDBStub fails, try disabling this feature.
|
||||
|
||||
config GDBSTUB_MAX_TASKS
|
||||
int "GDBStub: maximum number of tasks supported"
|
||||
default 32
|
||||
depends on GDBSTUB_SUPPORT_TASKS
|
||||
help
|
||||
Set the number of tasks which GDB Stub will support.
|
||||
|
||||
config ESP32_DEBUG_OCDAWARE
|
||||
bool "Make exception and panic handlers JTAG/OCD aware"
|
||||
default y
|
||||
|
Reference in New Issue
Block a user