Date: Thu, 15 Jul 2004 13:32:44 +0800 From: David Xu <davidxu@freebsd.org> To: Scott Long <scottl@samsco.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/gnu/usr.bin/gdb/libgdb fbsd-threads.c Message-ID: <40F616FC.4080604@freebsd.org> In-Reply-To: <40F6124A.9000409@samsco.org> References: <40F6124A.9000409@samsco.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40F616FC.4080604>