Re: [Wireshark-dev] tvbuff problem

2006-12-21 Thread Guy Harris
On Dec 21, 2006, at 3:34 PM, Paul Forgey wrote: > So what am I not understanding? That almost nobody uses composite tvbuffs, so they aren't well debugged and well supported? :-) For one thing, there's currently no support in the display code for having a field correspond to multiple discont

Re: [Wireshark-dev] tvbuff problem

2006-12-21 Thread Paul Forgey
On Tue, 19 Dec 2006 09:27:29 -0800, Stephen Fisher wrote: Could you send the code you're trying to use the composite in? That's sort of most the code right now. That's why I posted the gdb output because that pretty neatly sums up the problem. One way I can work around this is to do an evi

Re: [Wireshark-dev] tvbuff problem

2006-12-19 Thread Stephen Fisher
On Tue, Dec 19, 2006 at 12:23:29AM -0800, Paul Forgey wrote: > I have a tvbuff that is a composite made from a single subset. If I > try to add a tree item pointing to a non-0 offset into this buffer, I > get an exception. I can see the following behavior in the debugger. > Why is this happeni

[Wireshark-dev] tvbuff problem

2006-12-19 Thread Paul Forgey
I have a tvbuff that is a composite made from a single subset. If I try to add a tree item pointing to a non-0 offset into this buffer, I get an exception. I can see the following behavior in the debugger. Why is this happening? How should I dissect fields within this buffer if I can't do i