[LCP] Printing long strings in GDB

Ludwig Isaac Lim ludz_lim at yahoo.com
Tue Nov 20 14:02:01 UTC 2007


Hi:

   How do I print long string in GDB? GDB only displays a
portion of the string. I tried the "set height" and the
"set width" command, but it doesn't work. There is a
workaround such as executing "print long_string + <numeric
offest>".  Is there a better way?


    Thanks

ludwig.


      ____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ



More information about the linuxCprogramming mailing list