delorie.com/archives/browse.cgi | search |
On Mon, Jul 09, 2001 at 12:56:39PM +0100, Bill Petheram wrote: > I can't get rsync to work on W2K except in daemon mode. I tried to debug > it with gdb but rsync exits on the first write statement. This means > that I cannot step through the program. Did you try an strace? It can be pretty helpful, at least to see at which point in Cygwin the error occurs. Did you call gdb in default GUI mode or in non-GUI? Mostly the non-GUI version (started by calling gdb -nw) is a bit easier to control, especially if you're working with more than one partition since the GUI version only works with native paths. > If I build cygwin from source would I be able to see where the write was > failing? Sure. You can build with CFLAGS=-g instead of using the default of CFLAGS=-O2. That results in a easier source code level debugging. When you're running that dll (which is approx. 4MB in size) you can start rsync again under gdb control. In gdb you can load the DLL's symbol table by calling `dll cygwin1.dll'. Set a breakpoint on rsync's main() function and after running up to that point you can set breakpoints to Cygwin's internal functions. Lapo, are you already investigating into that problem as well? Since you did the base port you have a clue what's going on, perhaps. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |