When I print in gdb by running:
the result is truncated to 200 characters. is there a way that I can set the default truncation to something higher like 1000 characters?
From the GDB manual:
set print elements number-of-elements
Will show the first 2000 members of arrays, cstrings. As the docs say, setting this to zero will allow unlimited display.