GDB and thread

Marco Atzeri marco.atzeri@gmail.com
Sun Dec 29 17:57:00 GMT 2019


Am 29.12.2019 um 13:58 schrieb Jon Turney:
> On 28/12/2019 21:27, Marco Atzeri wrote:
>> Hi,
>> I am trying to debug the libuv test failures,
>> but it seems I am not able to convince GDB on stopping
>> just before the failure.
> 
> I think that the problem here is that the libuv test runner forks() to 
> run each test in a subprocess.
> 
> I don't think 'set follow-fork-mode child' works in Cygwin gdb 
> (unfortunately).  I'm not sure if it's even possible to implement...
> 

thanks for the hint, it seems the right one.

https://sourceware.org/gdb/onlinedocs/gdb/Forks.html

I doubt the sleep suggestion will work, but at least
now I know where is the issue.
I suspect a nice insertion of printf in the code will
be easier for the debugging scope.

Regards
Marco

--
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