Gdb

From 탱이의 잡동사니
Revision as of 10:03, 17 February 2020 by Pchero (talk | contribs)
Jump to navigation Jump to search

Overview

리눅스 gdb 사용법 내용 정리.

ETC

Print pretty

strucuture 프린트시, 읽기 쉽게 프린팅이 된다.

(gdb) set print pretty on
(gdb) print *dst
$2 = {
  ptr = 0x7fe76d5fcf58 "-\377<l\347\177",
  slen = 1
}

(gdb) set print pretty off
(gdb) print *dst
$3 = {ptr = 0x7fe76d5fcf58 "-\377<l\347\177", slen = 1}