Debugging sub-processes with gdb

Henry S. Thompson ht@inf.ed.ac.uk
Wed May 14 15:25:00 GMT 2014


I'm trying to debug a problem with xemacs that involves the child
process forked when you execute M-x shell.

None of the mechanisms in the gdb documentation for choosing to step
into the child process (instead of the parent) after a fork() seem to
work for me.  That is, in particular, setting follow-for-mode to child
still leaves me in the parent after stepping over a fork().

Setting detach-on-fork to 'off' also seems to have no effect.

Have I misunderstood something, or does this aspect of gdb just not
work under cygwin (x86_64, 1.7.29-2)?

Thanks,

ht
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list