* How to see the content of a buffer
@ 2008-04-15 12:22 Stefano Sabatini
2008-04-15 13:11 ` Andreas Schwab
0 siblings, 1 reply; 4+ messages in thread
From: Stefano Sabatini @ 2008-04-15 12:22 UTC (permalink / raw)
To: gdb Mailing List
Hi all,
sorry if the question may appear naive,
I would like to print from gdb the content of a buffer, either using
the emacs interface or gdb I get the buffer truncated, that is I get
something of the kind:
$49 = 0xbfa6048f "OPTIONS * RTSP/1.0\r\nDate: Mon, 14 Apr 2008 13:53:26 GMT\r\nCSeq: 2\r\nSupported: method.announce\r\n\r\nANNOUNCE * RTSP/1.0\r\nDate: Mon, 14 Apr 2008 13:53:3"...
which command should I use to see the complete content of the buffer
(or to see say the buffer from char 0 to char N)?
Many thanks in advance.
Best regards.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to see the content of a buffer
2008-04-15 14:36 ` Stefano Sabatini
@ 2008-04-15 13:11 ` Stefano Sabatini
0 siblings, 0 replies; 4+ messages in thread
From: Stefano Sabatini @ 2008-04-15 13:11 UTC (permalink / raw)
To: gdb, gdb Mailing List
On date Tuesday 2008-04-15 13:43:56 +0200, Andreas Schwab wrote:
> Stefano Sabatini <stefano.sabatini-lala@poste.it> writes:
>
> > which command should I use to see the complete content of the buffer
> > (or to see say the buffer from char 0 to char N)?
>
> (gdb) help set print elements
> Set limit on string chars or array elements to print.
> "set print elements 0" causes there to be no limit.
Thanks Andreas, it worked fine, I also checked the x command too
(x/200c data) which is also useful for other purposes.
Many regards.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to see the content of a buffer
2008-04-15 12:22 How to see the content of a buffer Stefano Sabatini
@ 2008-04-15 13:11 ` Andreas Schwab
2008-04-15 14:36 ` Stefano Sabatini
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2008-04-15 13:11 UTC (permalink / raw)
To: gdb Mailing List
Stefano Sabatini <stefano.sabatini-lala@poste.it> writes:
> which command should I use to see the complete content of the buffer
> (or to see say the buffer from char 0 to char N)?
(gdb) help set print elements
Set limit on string chars or array elements to print.
"set print elements 0" causes there to be no limit.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to see the content of a buffer
2008-04-15 13:11 ` Andreas Schwab
@ 2008-04-15 14:36 ` Stefano Sabatini
2008-04-15 13:11 ` Stefano Sabatini
0 siblings, 1 reply; 4+ messages in thread
From: Stefano Sabatini @ 2008-04-15 14:36 UTC (permalink / raw)
To: gdb, gdb Mailing List
On date Tuesday 2008-04-15 13:43:56 +0200, Andreas Schwab wrote:
> Stefano Sabatini <stefano.sabatini-lala@poste.it> writes:
>
> > which command should I use to see the complete content of the buffer
> > (or to see say the buffer from char 0 to char N)?
>
> (gdb) help set print elements
> Set limit on string chars or array elements to print.
> "set print elements 0" causes there to be no limit.
Thanks Andreas, it worked fine, I also checked the x command too
(x/200c data) which is also useful for other purposes.
Many regards.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-15 12:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-15 12:22 How to see the content of a buffer Stefano Sabatini
2008-04-15 13:11 ` Andreas Schwab
2008-04-15 14:36 ` Stefano Sabatini
2008-04-15 13:11 ` Stefano Sabatini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox