GDB 디버깅 시 긴 문자열은 ... 으로 생략되어 표시됩니다. 아래 명령어를 입력하면 모든 내역이 출력됩니다. 

 

set print elements 0

 

기본 200으로 설정 되어 있고, set print elements 0 입력하면 무제한으로 변경됩니다. 

 

set print elements number-of-elements
Set a limit on how many elements of an array GDB will print. If GDB is printing a large array, it stops printing after it has printed the number of elements set by the set print elements command. This limit also applies to the display of strings. When GDB starts, this limit is set to 200. Setting number-of-elements to zero means that the printing is unlimited.

 

출처 : https://ftp.gnu.org/old-gnu/Manuals/gdb-5.1.1/html_node/gdb_57.html#IDX353

gdb