From owner-freebsd-hackers@freebsd.org Sun Aug 14 03:29:34 2016 Return-Path: Delivered-To: freebsd-hackers@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 094F0BB8C14 for ; Sun, 14 Aug 2016 03:29:34 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm46-vm6.bullet.mail.bf1.yahoo.com (nm46-vm6.bullet.mail.bf1.yahoo.com [216.109.115.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B64A31CA5 for ; Sun, 14 Aug 2016 03:29:33 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1471145366; bh=acnsskhDu6Kyov/B9Y9YZvHv6A6PnKq9v/9GWeti5z4=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=pwsKOSjduQw5UWetJDHzoPfDhvJy0/sl5ILWrEGtZuHslqVAQN3GPTzz3y9XsMzSCUGcNBrrwJyL/KEVkK2p9oELwi5WYzXDX1w0rsLcPe+10tSiOvgz7tpptgEn/szV91lPmg6tjWVhmbbUkO/quZcNm4GZGk3e8OZ0ThwLfQSWuQuuYYoRaGO2gmePH/FBmDj7QRE3HCYBH71rnovkuH8l09AN89OCcqnLoThkMlq4E5hAtYY0x8Fa/yd0jvvY8tIQrlpEZP6XMDIrXC+SPno9r+eWwotC1eT6cqBhM+V2og6M0TPfLSgMjdyzeArpEPRfVEsjPM3BxcBmZT403w== Received: from [98.139.170.182] by nm46.bullet.mail.bf1.yahoo.com with NNFMP; 14 Aug 2016 03:29:26 -0000 Received: from [98.139.211.162] by tm25.bullet.mail.bf1.yahoo.com with NNFMP; 14 Aug 2016 03:29:26 -0000 Received: from [127.0.0.1] by smtp219.mail.bf1.yahoo.com with NNFMP; 14 Aug 2016 03:29:26 -0000 X-Yahoo-Newman-Id: 517861.39669.bm@smtp219.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: pYJ5SX0VM1noWlCuL81I_k42mH8og7l_tGiCnNcXbZUU_YT jMs4dN8XdmBZlkmmAJCZiqlRNzHAwAcNjXfdL5_pSp0dG.D.ivltrPjoABig RqA6mH8trQPA9ApQfIIU8qBuZnALSk0iQLd_BtW82.zca2wt_V_KIaazTLVB 2cmOGh7q2s861zc8nq8k_sKaifsxKn1zS9AVgCY7wevPVNrdxg0JfG3vYSwK 2qzddzNhGpCSXyllMNOBvT2lECPWtw_u1u4HIwa7HD1hJ.TGRr3ugs_1TPaC QulQfZYFQVu_3Xuxn8R.5hfeQKIgQ3hG7t.Qp8mpi1j3t5A_DmaZrf5IqsB. jfchYmFGSwBWbTmwB0idtAhnyvmjFua4BJJmexHOYD3M1r2uMwhy7ghsu6KT L85k2WNZyQIhNGnNMOstY_NcjZlRsGbNFCnfI6Yex9Ee.qRA_9XFSoj03rrx EBxdu9ipiwb7JVByOHTJkA1Nv4CI.rxMCE0AbiDy.hD5wT5RUfuv2ZeD6Pih 7kA2Mgn1lbDFfZBwNOFFkhmm3kOOR_HddgAEperlgpgmVHw-- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Subject: Re: How to get better debugging for the kernel. To: Gordon Ross References: <7b58509a-556b-0784-56c5-00378a1fc5e2@FreeBSD.org> Cc: FreeBSD Hackers From: Pedro Giffuni Message-ID: <4e42609b-2d18-e90c-68fd-56b263cfc429@FreeBSD.org> Date: Sat, 13 Aug 2016 22:29:25 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2016 03:29:34 -0000 On 13/08/2016 18:49, Gordon Ross wrote: > Actually, mdb primaryliy uses Compact ANSI-C Type Format (CTF), > which is in sections added to binaries by tools that convert from > either dwarf or stabs. > > I've assumed FreeBSD already has CTF since dtrace normally uses it too... Ah yes, FreeBSD gets CTF from dwarf. Indeed we had a student that worked for two GSoC projects on CTF-related projects. I am not sure if the MDB port has advanced but you are looking for this page: https://wiki.freebsd.org/PortingMDB Enjoy, Pedro. > > On Sat, Aug 13, 2016 at 1:22 PM, Pedro Giffuni wrote: >> Gordon Ross wrote: >>> I heard a rumor someone might be working on a port of illumos "mdb". >>> Anyone know if that's true, and how far along it went? >>> >> FWIW, I heard the same rumor. >> >>> We depend heavily upon this tool for production support; >>> so much that I'm not sure how we'd live without it. >> >> There is interest, and I have seen some attempt at work on it however >> it is not something likely to bear much fruit because mdb knows nothing >> about dwarf; AFAICT it knows only about stabs, which we don't use >> at all. >> >> Also, Oracle did make some Dtrace enhancements in upstream gdb that >> would be good to port. >> >> Pedro.