On Wed, Sep 17, 2008 at 9:35 PM, Timo Sirainen tss@iki.fi wrote:
Could you do:
#6 0x080fcb64 in i_stream_read_data (stream=0x9094a08,
data_r=0xbfe64444, size_r=0xbfe64440, threshold=0) at istream.c:303
ret = -1
read_more = false
__PRETTY_FUNCTION__ = "i_stream_read_data"
fr 6
p *stream
p *stream.real_stream
(gdb) fr 6
#6 0x080fcb64 in i_stream_read_data (stream=0x9094a08,
data_r=0xbfe64444, size_r=0xbfe64440, threshold=0) at istream.c:303
303 i_assert(stream->stream_errno != 0);
(gdb) p *stream
$3 = {v_offset = 155312, stream_errno = 0, mmaped = 0, blocking = 1,
closed = 0, seekable = 1, eof = 0, real_stream = 0x90949e0}
(gdb) p *stream.real_stream
$4 = {iostream = {refcount = 2, close = 0x810f75c
, destroy = 0x80e8a2c
,
set_max_buffer_size = 0x80e8acb
, destroy_callback =
0x80a771c , destroy_context =
0x908e9e8},
read = 0x80e95c9 , seek = 0x80e989a
, sync = 0x80e9a51
, stat = 0x80e9a63
, istream = {
v_offset = 155312, stream_errno = 0, mmaped = 0, blocking = 1,
closed = 0, seekable = 1, eof = 0, real_stream = 0x90949e0}, fd = -1,
abs_start_offset = 109832723, statbuf = {st_dev = 0, __pad1 = 0,
__st_ino = 0, st_mode = 0, st_nlink = 0, st_uid = 0, st_gid = 0,
st_rdev = 0, __pad2 = 0, st_size = -1, st_blksize = 0, st_blocks = 0,
st_atim = {tv_sec = 1221544863, tv_nsec = 0}, st_mtim = {
tv_sec = 1221544863, tv_nsec = 0}, st_ctim = {tv_sec =
1221544863, tv_nsec = 0}, st_ino = 0}, buffer = 0x0, w_buffer = 0x0,
buffer_size = 0, max_buffer_size = 8192, skip = 0, pos = 0, parent =
0x9094580,
parent_start_offset = 0, line_str = 0x0}
(gdb)