the GDB print command truncates long strings

Francesco Montorsi <[email protected]> Mon, 16 Mar 2009 18:46:06 +0100
Newsgroups gmane.comp.gdb.general
Message-ID <[email protected]>
Hi,
     while debugging a program I've found that the print command truncates some 
long strings:

(gdb) p (char*)format
$7 = 0xd47e058 "datetime.h: a long long long long long long long long long long 
long long long long long long long long long long long string"...

I need to explore the content of the string and want GDB to print it entirely... 
how can I do?


Thanks a lot!
Francesco