随笔-调试-常用命令零散记录

LiYanbin / 2023-08-30 / 原文

valgrind --log-file='valgrind_report.log' --time-stamp=yes --tool=memcheck --leak-check=full --show-leak-kinds=all ./exec

gdb -iex 'set pagination off' -iex 'set confirm off' -iex 'set print elements 0' -ex 'thread apply all bt' -ex 'quit' attach -p