debugging threads

John Marino dragonflybsd at
Sat Sep 21 23:37:15 PDT 2013

On 9/22/2013 05:47, Pierre Abbat wrote:
> On Saturday, September 21, 2013 08:30:35 Alex Hornung wrote:
>> Our gdb doesn't support our thread implementation (libthread_xu), so you
>> can't debug multithreaded userland processes.
> What other operating systems use libthread_xu? Is there any way to fix this?

Yes it is fixable:
1) Using dports, install devel/gdb, which is gdb 7.6

2) Follow these instructions to run the testsuite on DragonFly, which
takes a few hours actually:

3) Patch gdb to resolve failures, starting with the thread failures.

4) Feed the patches back to me so we can put them both in ports and
update the gdb in base.

I've been asking people to help with exactly this for quite some time.
No takers yet.  Nobody is doing the work.  thread-xu is basically unique
but the current threading on FreeBSD is similar as I believe is it
maintained, among others, by Xu himself.


More information about the Users mailing list