Skip to content

Instantly share code, notes, and snippets.

View johnMamish's full-sized avatar

John Mamish johnMamish

  • Georgia Tech
  • Atlanta, Georgia
View GitHub Profile

Keybase proof

I hereby claim:

  • I am johnMamish on github.
  • I am johnmamish (https://keybase.io/johnmamish) on keybase.
  • I have a public key whose fingerprint is 889A 28DC 5362 485C 1188 6776 6F04 0C64 A1B9 ACCC

To claim this, I am signing this object:

@johnMamish
johnMamish / freertos_backtrace.gdb
Created September 12, 2023 15:03
GDB script to backtrace from any FreeRTOS thread when you break in GDB
# example usage in gdb
# (gdb) source freertos_backtrace.gdb
# (gdb) freertos_bt my_task_control_block
#
# My code uses statically allocated TCBs, so the name of the TCB to use should be defined
# by you in your source code that initializes all the threads.
#
# Note that this may fail if you - by chance - happen to break inside of the SVHandler when
# it's switching to or from the task you want to inspect