cvs commit: src/gnu/usr.bin/gdb/libgdb fbsd-threads.c

David Xu davidxu at freebsd.org
Wed Jul 14 22:29:30 PDT 2004


Scott Long wrote:
> David Xu wrote:
> 
>>David Xu wrote:
>>
>>
>>>davidxu     2004-07-15 04:51:04 UTC
>>>
>>>  FreeBSD src repository
>>>
>>>  Added files:
>>>    gnu/usr.bin/gdb/libgdb fbsd-threads.c   Log:
>>>  Add libthread_db assisted debugging support module.
>>>    Revision  Changes    Path
>>>  1.1       +1095 -0   src/gnu/usr.bin/gdb/libgdb/fbsd-threads.c
> 
> (new)
> 
>>This is not hooked into gdb build process, Marcel will do
>>all works left there, these include .core file support, and
>>make sure it works on other architectures other than i386,
>>however if you want to try it on i386, here is the patch:
>>http://people.freebsd.org/~davidxu/kse/dbg/gdb.diffs
>>
>>Work has only been done for i386, this does not include
>>AMD64, because I don't have hardware.
>>
>>David Xu
>>
>>
> 
> 
> Can you give an outline of what needs to be done for amd64 and sparc64?
> I'm sure that there are people who could help if you give them a pointer
> of where to start.
> 
Implement code as src/lib/libthread_db/pthread/pthread_db_i386.c,
this code does conversion work between struct reg and struct
ucontext, used for M:N thread.
In kernel, make sure ptrace_single_step and ptrace_clear_single_step
work, they are in machdep.c, and used by M:N thread too.

> Scott
> 



More information about the cvs-src mailing list