2022年12月1日 星期四

GDB with a crash file and usual commands (and also CLion)

The crash file could be just 10MB


Commands

sudo apport-unpack some.10MB.crash CoreDump

sudo chown -R user:user CoreDump/

cd ./CoreDump

gdb ./binary CoreDump


Commands

frame

up

down

bt

list

info locals

info args

print iter

print hashTable


CLion

Run > Open Core Dump

Core dump: The 200MB core dump file

Symbol file: The originating executable file

沒有留言:

張貼留言

2025 Amazon S3 AWS Storage

Reference https://blog.csdn.net/jiuhebaobao/article/details/137256664