From owner-cvs-src@FreeBSD.ORG Thu Jul 15 05:29:30 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC63216A4CE; Thu, 15 Jul 2004 05:29:30 +0000 (GMT) Received: from exchhz01.viatech.com.cn (ip-40-162-97-218.anlai.com [218.97.162.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id C95FA43D46; Thu, 15 Jul 2004 05:29:26 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from freebsd.org (DAVIDWNT [10.4.1.99]) by exchhz01.viatech.com.cn with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NVXA9JHF; Thu, 15 Jul 2004 13:28:50 +0800 Message-ID: <40F616FC.4080604@freebsd.org> Date: Thu, 15 Jul 2004 13:32:44 +0800 From: David Xu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Scott Long References: <40F6124A.9000409@samsco.org> In-Reply-To: <40F6124A.9000409@samsco.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/gnu/usr.bin/gdb/libgdb fbsd-threads.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2004 05:29:30 -0000 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 >