How to debug MDNS backend

Michael R Sweet msweet at apple.com
Wed Aug 13 00:47:05 PDT 2008


keens312 wrote:
> Hi Michael,
> 
> I was trying to debug mdns with gdb but got a problem.
> 
> I passed 6 parameter to mdns.
> 
> break at mdns.c main function and step through.
> 
> It will call execv(filename, argv) at last.
> 
> The file name is the path to mdns backend, so it run itself again?
> 
> If I attach the process to continue the debug, it will go the same routine and call execv again.
> 
> Is this a dead lock? why the backend keep calling it self? or am I use the wrong way to debug mdns?

Are you setting the DEVICE_URI environment variable so the backend
knows what URI to resolve?

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups-devel mailing list