Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3568C433F5 for ; Tue, 19 Oct 2021 02:21:58 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 60650610C7 for ; Tue, 19 Oct 2021 02:21:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 60650610C7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E346E82006; Tue, 19 Oct 2021 04:21:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=dooray.com header.i=@dooray.com header.b="b5FfHD6l"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 92D6182C2B; Tue, 19 Oct 2021 04:21:53 +0200 (CEST) Received: from mscreen.etri.re.kr (mscreen.etri.re.kr [129.254.9.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3B04181BF4 for ; Tue, 19 Oct 2021 04:21:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=etri.re.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ckim@etri.re.kr Received: from unknown (HELO send002-relay.gov-dooray.com) (211.180.235.153) by 129.254.9.16 with ESMTP; 19 Oct 2021 11:21:39 +0900 X-Original-SENDERIP: 211.180.235.153 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: u-boot@lists.denx.de Received: from [10.162.225.112] (HELO smtp002-imp.gov-dooray.com) ([10.162.225.112]) by send002-relay.gov-dooray.com with SMTP id 33b42e0b616e2bb3; Tue, 19 Oct 2021 11:21:39 +0900 DKIM-Signature: a=rsa-sha256; b=b5FfHD6lYioUZuWjQPoi647FqloFaiBx/OIkRxSPisK4VAmdmBS0+0yN6ehF83EoFsKEQ+7zDM LM1VSzdnem2aRT1dpm3N+6Q44b92auiCyyV3PJJ0t6vLmMIuIKKxxYQoXoz7ijkLQ7YBvaHKiKmg OyAiYa9t8dV/9Y731scxkDzbWIlm0LDteBpTX3Lphs9j8iFYBHu4R5/3dMQbo2gKUm31EKukO/CL UIM/FD1fYjspFQtVPfw+uDy6NrdWHx45xjuhwLhT82g33sU7Bf/ywiM+BB7Z3qNmu0G4jU4S0Ccw aYjtd9Hej1fnG2zyiYjQWJlxsWl2ZoWk5noWRu2g==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=L9K8oC+HuIun/FjW/F3zFZs7nD3dmzJVI/0s2qKVb9Y=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp002-imp.gov-dooray.com with SMTP id 50ab2d4f616e2bb3; Tue, 19 Oct 2021 11:21:39 +0900 From: "Chan Kim" To: "U-Boot Mailing List" Subject: How to compile u-boot with debug option? Date: Tue, 19 Oct 2021 11:21:38 +0900 Message-ID: <010401d7c490$0c44a900$24cdfb00$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdfEkAqrGXZEyVZ5SySzwbgA1PU2KA== Content-Language: ko Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hello, With these commands, make ARCH=arm CROSS_COMPILE=aarch64-none-elf- qemu_arm64_defconfig make ARCH=arm CROSS_COMPILE=aarch64-none-elf- I see only u-boot.bin. How can I make u-boot.elf with debug info? I found https://lists.denx.de/pipermail/u-boot/2005-May/010240.html and tried adding -DDEBUG to CFLAGS_NON_EFI in arch/arm/config.mk and adding CFLAGS += -DDEBUG in arch/arm/cpu/armv8/config.mk But after doing "make ARCH=arm CROSS_COMPILE=aarch64-none-elf- u-boot.elf", when I give file command for the u-boot.elf, it says u-boot.elf: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, not stripped I think I should see "with debug_info, not stripped". With connecting gdb, I can't see the source file. The run responds to 'continue' command though. Could any tell me what I can do? Thank you, Chan Kim