From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 16 23:16:16 2007 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D566816A41A for ; Thu, 16 Aug 2007 23:16:16 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 9171A13C442 for ; Thu, 16 Aug 2007 23:16:16 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 384B220C188; Fri, 17 Aug 2007 00:46:47 +0200 (CEST) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.8/8.13.6) with ESMTP id l7GMixYX018178 for ; Fri, 17 Aug 2007 00:44:59 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.8/8.13.6/Submit) id l7GMixO4018177 for freebsd-hackers@FreeBSD.org; Fri, 17 Aug 2007 00:44:59 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Fri, 17 Aug 2007 00:44:59 +0200 To: freebsd-hackers@FreeBSD.org Message-ID: <20070816224459.GA18002@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-Mailman-Approved-At: Fri, 17 Aug 2007 03:36:54 +0000 Cc: Subject: debug kernels + -fomit-frame-pointer == unhappy gdb X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2007 23:16:16 -0000 Just got reminded of this... I noticed some kernel builds use -fomit-frame-pointer by default, even if you do a debug kernel. That kinda defeats the purpose since gdb uses the frame pointer when examining the stack, like, when doing backtraces, i.e. you lose function calls in backtraces when the kernel is built like that. So, should this be changed? Juergen