By default it's being abbreviated, how do i force gdb to print the whole string? The print command prints the value of a given expression. At the end of the string—can hide critical details when debugging lengthy strings (e.g., json payloads, log messages, or large text buffers)
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 page explains the print command (gdb) show print elements limit on string chars or array elements to printis200 you can see that the default will only print200characters
(gdb) set print elements 0 (gdb) show print elements limit on string chars or array elements to print is unlimited. (gdb) p l l=0x9aa1f48 up2 129104596496602200 19 0 0 3 0 eth1 xx :001cb,'0' <repeats 12 times>, dc is there a setting to have p print the whole string and not fill inn the repeats In gdb, generally to print the value of the variable ,we use print or just p But for the strings or arrays of large size , it wont print whole string or array.