I've created some useful GDB commands when I debug some memory issues. Patch 1: - 'lx-stack_depot_lookup' provides users with backtrace of a handle. Patch 2: - 'lx-kasan_mem_to_shadow' translate the memory address to kasan shadow memory address. Kuan-Ying Lee (2): scripts/gdb: Add 'lx-stack_depot_lookup' command. scripts/gdb: Add 'lx-kasan_mem_to_shadow' command scripts/gdb/linux/kasan.py | 44 +++++++++++++++++++++++++++++++++ scripts/gdb/linux/stackdepot.py | 27 ++++++++++++++++++++ scripts/gdb/vmlinux-gdb.py | 1 + 3 files changed, 72 insertions(+) create mode 100644 scripts/gdb/linux/kasan.py -- 2.34.1