From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?windows-1252?Q?Simon_K=E5gstr=F6m?= Subject: Re: [PATCH] mk: add support for gdb debug info generation Date: Mon, 22 Jun 2015 09:56:23 +0200 Message-ID: <5587BFA7.2000206@netinsight.net> References: <1434749378-8578-1-git-send-email-cchemparathy@ezchip.com> <5587BCE9.4000809@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: dev@dpdk.org Return-path: Received: from ernst.netinsight.se (ernst.netinsight.se [194.16.221.21]) by dpdk.org (Postfix) with SMTP id 7C6D1C82E for ; Mon, 22 Jun 2015 09:56:34 +0200 (CEST) In-Reply-To: <5587BCE9.4000809@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2015-06-22 09:44, Gonzalez Monroy, Sergio wrote: > On 19/06/2015 22:29, Cyril Chemparathy wrote: >> From: Cyril Chemparathy >> >> It is often useful to build with debug enabled, we add a config >> (CONFIG_RTE_TOOLCHAIN_DEBUG) to do so. >> >> +ifeq ($(CONFIG_RTE_TOOLCHAIN_DEBUG),y) >> +TOOLCHAIN_CFLAGS += -g -ggdb >> +TOOLCHAIN_LDFLAGS += -g -ggdb >> +endif > I don't think you need to modify the makefiles and introduce a new > compile time option for this. > The same result can be easily achieved by setting EXTRA_CFLAGS in the > command line. ie: > $ make install T=x86_64-native-linuxapp-gcc EXTRA_CFLAGS='-g -ggdb' Why isn't -g standard though? The binaries should/will anyhow be stripped when used for production - but debugging information should be useful when analysing crashes. // Simon