gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

the GDB print command truncates long strings


From: Francesco Montorsi
Subject: the GDB print command truncates long strings
Date: Mon, 16 Mar 2009 18:46:06 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8pre) Gecko/20071022 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]