Ethereal-dev: RE: [Ethereal-dev] Debugging Ethereal with Win32

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Francisco Alcoba (TS/EEM)" <francisco.alcoba@xxxxxxxxxxxx>
Date: Mon, 11 Apr 2005 07:47:37 +0200
Hi,

> I have built a plugin with win32 visual studio 6. During 
> Debug session I can
> see the call stack through Ethereal.exe and the libs. At some 
> stack levels
> the line information seems to be incorrect. I have rebuilt 

I'm not really sure I understand what the problem is, but see below at 2)

> the whole project
> with name -f makefile.nmake, but this doesn't help.
> I just wonder, where the pdb files for the binaries are, I 
> cannot find them.
> 
> 1) I tried to search the mailing list archive, but found at 
> ethereal.com
> only the membership registration information. Is there an archive?

At http://www.ethereal.com/lists/, right under "Subscribing and unsubscribing",
you've got the archives. I usually search into them at google, though.

> 
> 2) How should I modify the environment and/or makefile to 
> generate sufficant
> debug information?

I don't think you need to do anything special. However:
as far as I understand, MSVC6 will use the dlls it finds looking at its path. This 
means that, if you build ethereal normally -which will put libethereal.dll in ..\epan-
and your path does not look there, and you have an older -usually a stable- version of
ethereal installed, and the libethereal.dll of ethereal is somewhere MSVC can find,
like under system32, it will use that dll but show you the source files in your project,
which will give you completely wrong lines when debugging. I usually get around that
by hand-copying libethereal.dll in the root directory of the project. I've never debugged
plugins, but I guess you might have a similar problem. 

> 
> 3) What is the best way to debug Ethereal and plugin DLLs?
> 
> Sorry, if this has been answered before, but I did not found 
> any archive.
> 
> /Helge
> 
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>