From owner-freebsd-arch@FreeBSD.ORG Thu Apr 10 22:52:09 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 78A63AF7 for ; Thu, 10 Apr 2014 22:52:09 +0000 (UTC) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3E47B1E03 for ; Thu, 10 Apr 2014 22:52:09 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id lx4so4648374iec.38 for ; Thu, 10 Apr 2014 15:52:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=xP47P4k4sSG987fAWosgiBSc6HIxxz5widEFUrwKlS0=; b=QWvI3SxRn6QZtpmQHQci7unTing6RTyjxpYlD5kp7T8TfdcMUc/4VWOTsNOXXycvfl Gs9bp0KT6bsh6aT/3osk7WtXV0XkBkQYZn6TV1vG0fPjxtB1bQ/zLrO2uZIO5wXu7dUt IEHT5mBhSb+kBAdTdftEmNkg7PMEFheT+1/dcjSxGtEzNrpH1ZFzAJNP4z0rHDaGTEA3 YekX9xJRZbvxMJ6+Y+yeg3QwW+qjZbMZSM1+X6d1ACPIe63zTiCnUIrpyOe6DdBFwkD5 +11gPZq67fbuuuwr9QT0WcUzAeaJ3BNsDZt6l3XEEgv4zN76KlIXvsl224hDpNaPwiLU aN0g== X-Gm-Message-State: ALoCoQlI22HB5CBE8A6v5y7NqQ8VuWNAju+TYI7ntLJ9T+obVSzBg4nvJJRFvoTn6b29O95sP2+X X-Received: by 10.42.99.8 with SMTP id u8mr3723400icn.31.1397169953563; Thu, 10 Apr 2014 15:45:53 -0700 (PDT) Received: from [10.0.0.119] (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id vc5sm870323igb.3.2014.04.10.15.45.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 15:45:52 -0700 (PDT) Sender: Warner Losh Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Time for turning off gdb by default? Or worse... From: Warner Losh In-Reply-To: Date: Thu, 10 Apr 2014 16:45:51 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201404091145.58792.jhb@freebsd.org> <674B7C0B-9235-4030-9A44-7F9984CA2F67@bsdimp.com> <201404101702.52622.jhb@freebsd.org> <59CD3E44-42EE-435A-8953-AA548EA04FE3@FreeBSD.org> To: Adrian Chadd X-Mailer: Apple Mail (2.1874) Cc: Dimitry Andric , "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2014 22:52:09 -0000 On Apr 10, 2014, at 4:42 PM, Adrian Chadd wrote: > On 10 April 2014 15:33, Dimitry Andric wrote: >> On 10 Apr 2014, at 23:40, Adrian Chadd wrote: >>> [snip] >>>=20 >>> My (-1) action item: >>>=20 >>> * make llvm in -HEAD generate dwarf-2 code by default so the base >>> system gdb can be again used against binaries that have debug = symbols, >>> at least until a viable replacement is ready. >>=20 >> Just do: >>=20 >> pkg install gdb >=20 > I think you're missing the whole point. >=20 > Also, that doesn't work on MIPS. Or ARM. Or PPC. Or IA-64. >=20 If it did, we could just turn off gdb and life would be good=85 Please see https://wiki.freebsd.org/GdbRetirement and edit it based on = testing that you can do. That wiki page is there to drive this issue to = Dimitry=92s answer in the fullness of time. If we had kgdb support in ports and arm worked, we might be able to get = away with it, but we=92re not even close on either of those at the = moment... Warner P.S. Minor quibble: it does work on powerpc, but not sparc64. Doesn=92t = change your point though.=