If gdb is printing a large string, it stops printing after it has printed the number of characters set by the set print characters command. This equally applies to multi-byte and wide character strings, that is … When you use gdb for program debugging, you often experience printing string content.

This page explains the print command. The print command prints the value of a given expression.