From owner-freebsd-arch@FreeBSD.ORG Wed Apr 9 03:38:23 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 1A159525 for ; Wed, 9 Apr 2014 03:38:23 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D039510CF for ; Wed, 9 Apr 2014 03:38:22 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s393cK8Y041456 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Apr 2014 20:38:20 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s393cKiU041455; Tue, 8 Apr 2014 20:38:20 -0700 (PDT) (envelope-from jmg) Date: Tue, 8 Apr 2014 20:38:20 -0700 From: John-Mark Gurney To: Warner Losh Subject: Re: Time for turning off gdb by default? Or worse... Message-ID: <20140409033820.GL34745@funkthat.com> Mail-Followup-To: Warner Losh , freebsd-arch References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Tue, 08 Apr 2014 20:38:20 -0700 (PDT) Cc: freebsd-arch 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: Wed, 09 Apr 2014 03:38:23 -0000 Warner Losh wrote this message on Tue, Apr 08, 2014 at 14:34 -0600: > The gdb in the tree seems to be of very limited usefulness these days. It doesn?t seem to work on clang-enabled architectures w/o building -gdwarf-2, it doesn?t seem to work with threaded applications, and on some architectures it doesn?t seem to work at all (mips comes to mind, but it may have been the two binaries I tried). > > It seems like we?d be doing our users a favor by applying: > > diff -r 8bfca9de870e share/mk/bsd.own.mk > --- a/share/mk/bsd.own.mk > +++ b/share/mk/bsd.own.mk > @@ -266,7 +266,6 @@ WITH_HESIOD= > FREEBSD_UPDATE \ > GAMES \ > GCOV \ > - GDB \ > GNU \ > GNU_GREP_COMPAT \ > GPIB \ > @@ -355,6 +354,7 @@ WITH_HESIOD= > CLANG_EXTRAS \ > CTF \ > DEBUG_FILES \ > + GDB \ > HESIOD \ > INSTALL_AS_USER \ > LLDB \ > > to the tree, which will turn gdb off by default. It may make more sense to just remove it entirely, but I?m not sure I want to go there just yet in case there are things that I?m missing. I believe that the port will be adequate for all architectures we support, but haven?t tested this directly yet. I do know that on amd64, the port just worked, where the in-tree gdb was an epic fail. Does the gdb in ports support cross debugging? Or at least easily? I don't see anything in the Makefile that implies that it does... Also, I noticed this: ONLY_FOR_ARCHS= i386 amd64 powerpc powerpc64 # untested elsewhere, might work That's missing a lot of archs... Though it looks like 66 might have better support... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."