Table of Contents

gdb

info registers

attach to running process

echo 0 > /proc/sys/kernel/yama/ptrace_scope

thread apply all bt

remote debugging

gdbserver --attach :10000 <pid>
arm-linux-gnueabihf-gdb -x sysroot-file.gdbinit -ex 'target extended-remote <remoteip>:10000' -ex 'set remote exec-file <remote binary>' --args <local binary with debug>