From owner-freebsd-mips@freebsd.org Sun Oct 30 22:28:14 2016 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4A4CC2794A for ; Sun, 30 Oct 2016 22:28:14 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 874651B0B for ; Sun, 30 Oct 2016 22:28:14 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 927A610AF91 for ; Sun, 30 Oct 2016 18:28:13 -0400 (EDT) From: John Baldwin To: FreeBSD mips Subject: CFT: gdb7 for mips Date: Sun, 30 Oct 2016 15:28:10 -0700 Message-ID: <2889965.d6hI3Bs9hG@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.0-PRERELEASE; KDE/4.14.10; amd64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Sun, 30 Oct 2016 18:28:13 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2016 22:28:14 -0000 I have an initial set of patches to support MIPS in modern gdb. I'd like to get some initial testing before pushing the patches upstream. So far I have tested n64 and o32 but not n32. Things that are tested include: - cross and native debugging of n64 and o32 cores. - shared libraries - threads - fork following - unwinding across signal frames - gcore (though only the native debugger can read generated cores) Things that are still todo: - n32 testing (probably needs a sigframe unwinder though it can perhaps just use the n64 unwinder) - Implementing a gdbarch method to find the location of a longjmp (needed for single stepping across longjmp I think) Things that aren't tested at all: - floating point support I also have a port of kgdb support that should support cross-debugging of vmcores. However, it seems that minidumps in MIPS are broken as global variables from the kernel aren't included in the dump. What I'd like is for folks to test the new gdb. Right now it is easiest to build from git using ./configure and gmake. You can clone the 'mips_fbsd_nat' branch from github.com/bsdjhb/gdb.git. You might be able to apply the patch of that branch against 'master' to the port but I haven't tried that at all. -- John Baldwin