GDB로 Core 분석 — backtrace·info threads·py 활용
core 열기, siginfo 해독, 콜스택 분석, 변수 검사, 자주 만나는 패턴.
21개의 포스트
core 열기, siginfo 해독, 콜스택 분석, 변수 검사, 자주 만나는 패턴.
터미널부터 IDE까지. 내장 TUI, cgdb, gdb-dashboard, gef/pwndbg, VSCode, nvim-dap, Cortex-Debug 비교.
IDE ↔ 디버거 표준 — GDB/MI와 Debug Adapter Protocol의 정체.
Frame filter, FrameDecorator로 콜스택 변형, custom unwinder로 JIT 코드 추적.
to_string / children / display_hint, MI 출력, auto-load, libstdc++ printer 분석.
사용자 정의 명령, $name(...) 함수, stop hook, 자동 BP 액션 패턴.
GDB Python 인터프리터, 핵심 객체(Value/Type/Frame/Symbol), 디버기 데이터 조작.
GDB가 원격 스텁과 주고받는 ASCII 패킷의 모든 것. 패킷 형식, qSupported 협상, vCont, 멀티 패킷, RLE.
DWARF 표준, DIE / abbrev / line / location, expression VM, CFI, split-DWARF.
STL pretty-printers, -O2 디버깅, .gdbinit 추천, rr time-travel. 시리즈 마무리.
TUI 모드, cgdb, gdb-dashboard, gef/pwndbg, VSCode, nvim-dap, DAP 프로토콜.
GDB / LLDB Python API. pretty-printer 작성, 커스텀 명령, 자동화, MI.
다른 머신·MCU를 GDB로. RSP, gdbserver, OpenOCD, J-Link, JTAG/SWD, ARM CoreSight.
ulimit / core_pattern. gdb -c. ELF core 포맷, NT_PRSTATUS, systemd-coredump.
thread / process apply. scheduler-locking. follow-fork. rr 시간 역행 디버깅.
조건부 break, watchpoint(변수 변경 추적), catchpoint, hardware vs software.
bt·frame·up·down — 호출 스택 분석, 프레임 안 변수 조사, 인라인 함수 처리.
print 만으로 부족한 자리들 — x/memory examine, ptype, STL 컨테이너, pretty printer.
디버거에서 매일 쓰는 핵심 명령 10가지 — 정확한 의미와 자주 쓰는 변형.
네이티브 디버거의 메커니즘, gdb·lldb 차이, 설치, 첫 세션.
OpenOCD·pyOCD로 target에 붙고, .gdbinit으로 반복 작업을 자동화하는 패턴을 정리합니다.