Re: gdb string formatting

2001-07-17 Thread Michael O'Donnell
>Does anyone know how to force gdb to display an entire string >instead of truncating while debugging? This won't necessarily answer your question but, FYI, gdb has a fully functional printf as well as data manipulation capabilities, not to mention the ability to define procedures and macros,

Re: gdb string formatting

2001-07-17 Thread Andrew Foulks
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 = "

gdb string formatting

2001-07-17 Thread Mansur, Warren
Hi, Does anyone know how to force gdb to display an entire string instead of truncating while debugging? 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 i