Wireshark-dev: Re: [Wireshark-dev] Win32 build
From: Bill Meier <[email protected]>
Date: Tue, 10 Jan 2012 15:06:45 -0500
On 1/10/2012 3:02 PM, Bill Meier wrote:
On 1/10/2012 2:47 PM, Andriy Beregovenko wrote:

I'm write a custom dissector, and it works fine... under Linux, but not
under Windows. Thus I have a problem to run wireshark under Windows as
as debug problem.
So, I built wireshark stable version 1.6.4 and 1.4.10 using manual
[0]. Of
course, I add my file to nmake make files/rules and it builds success.
when I try to load prev saved dump(it was saved by clean version of
wireshark), I got crash. This source builds(with cmake) and works fine
Linux. Also I'm do not use ep_alloc*, using g_malloc instead(I understand
about memleaks, but now more important to made usable dissector under
So, I'm looking for additional information how to debug problems with
windows segfaults.

P.S. For Windows build I'm use VC2008EE.

Use the VC debugger.

Start VC.

Do: File ! Open ! Project/Solution

Click on wireshark.exe in the wireshark-gtk2 directory

You can now use VC in the normal manner to debug Wireshark (set
breakpoints & etc)

(I'm assuming that a build using cmake generates the same executable and
.pdb files as building with nmake).

Correction: I see that you're using nmake to build on Windows so you 
should have no troubles using Windows VC to debug.