On Tue, 17 Jul 2001, Mansur, Warren wrote:

> Hi,
>
> Does anyone know how to force gdb to display an entire string instead of
> truncating while debugging?
>

(gdb) set print elements 500

(or whatever number you think will do the trick)

--Andy Foulks


> For example:
>
> (gdb) p my_str
> $1 = "The string is truncated and I need to see all"
>
> is gdb's behavior.  Instead I want:
>
> (gdb) p my_str
> $1 = "The string is trunacetd and I need to see all of it."
>
> Of course, it truncates after 2 lines instead of just a short string, but it
> still truncates.  Any ideas?
>
> Thanks.
>
> Warren Mansur
> RELIABLE TRANSACTION ROUTER
> http://www.compaq.com/rtr
>
>
>
> **********************************************************
> To unsubscribe from this list, send mail to
> [EMAIL PROTECTED] with the following text in the
> *body* (*not* the subject line) of the letter:
> unsubscribe gnhlug
> **********************************************************
>


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to