From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by mx.groups.io with SMTP id smtpd.web12.12903.1575998002422570575 for ; Tue, 10 Dec 2019 09:13:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=WdZLfq6x; spf=pass (domain: linaro.org, ip: 209.85.128.42, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wm1-f42.google.com with SMTP id c20so4082740wmb.0 for ; Tue, 10 Dec 2019 09:13:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=oS+lllx+D6epauLt7ZaEqI2FTjaWBrqpS3EUl2Cmw2g=; b=WdZLfq6xVdfQuEByI6JMkZzncaMOFf+ZynhnWPn0/4MLmEVVbDNebaBb7f7MJbU52s 6uAL36P5zO3jq2RsLOzdbZH72VAR2xVUE6kyongJBuhI6YvZB7lXayzyOswr2C7TKwmg bP+N+qWZKBAGWdyrMToDb4pOpUpg5HF1QC61OW5S9pDXHltcesV3EUkbccEnW+VAqF8E P0OVbMRPp/qcWs4rkbbVy7BdfLMVqsEX/YDqxkjE1aC3RpJFIYG6Z5ZgAMFZAIkJ80J2 wxP5DBRIzxw+oNB4YXB3PilGXky+vcaD+i1bwMomAlZiwzdlIqNOybxJiPxUi5ivvzJD bROQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=oS+lllx+D6epauLt7ZaEqI2FTjaWBrqpS3EUl2Cmw2g=; b=j4l8Fqxplcucb005JSete9tm/RzqGlpekHq8s2uu0gwW94+nQBYf5t49r7LHjd4a83 Sxd6gUlehc4KtA67kxVeizYm4A4yLcszjrMjOkQ8i5+i+Xw8kj9DhEBBVdADKF6L3irM 9ceK+NwvXS9Cfv8G5XqClpiM6zOZo3/EEWg+uNFKxVbSpPBtEWsGTlHqz2wB/XygPENQ AdMt/gG8pPPR/3UYQM0PK85KtI5gjMj9EGStocWF0H+tqOIrX5H+m/ojLHyE8gUz86rn HaUFrrkEt5RzKnpdP7dVnSc8KhP/V1MEk2p+/xv5gplRisKE3B4xUSLvysm027hwuDqU PitA== X-Gm-Message-State: APjAAAUZx8M+AdWPrrFHeDrnlvwQyOC3wTlJjVdsFMqInZFCWdPt0on2 AAyycELmUIIbGR7gVO8/98vgSnMhgOmWOvMydGB2ew== X-Google-Smtp-Source: APXvYqwgw92rQLpMMqfK6gAeEV4xBgy3/+gAow8Q2QMGGPKYCe6F1PV0qZExHjazQ8WnG9SVUEYKlFBkdvtD6LksXvQ= X-Received: by 2002:a7b:c95a:: with SMTP id i26mr6331021wml.67.1575998000822; Tue, 10 Dec 2019 09:13:20 -0800 (PST) MIME-Version: 1.0 References: <102e9863f7b0a90cbf854d059d9bcf25@mail.gmail.com> In-Reply-To: <102e9863f7b0a90cbf854d059d9bcf25@mail.gmail.com> From: "Ard Biesheuvel" Date: Tue, 10 Dec 2019 18:13:09 +0100 Message-ID: Subject: Re: Debugging aarch64 edk2 built with gcc-8.x 64-bit arm compiler To: Vladimir Olovyannikov , Sami Mujawar Cc: edk2-devel-groups-io Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 7 Dec 2019 at 00:50, Vladimir Olovyannikov wrote: > > Hi Ard, > > > > We are about to switch to the latest Yocto. It is shipped with gcc-8.3 aa= rch64-linux-gnu compiler. > > We use DS5 for bare metal debugging. > > When I build edk2 with gcc-7-x/gcc-8.x, DS5 complains on DWARF format. > I tried to explicitly set it to DWARF2, but still cannot even get the sta= ck or local variables (even though DS5 does not complain), > even for edk2 NOOPT build. > > > > Using gcc-6.3 from Linaro, I don=E2=80=99t see any issue with DS5 debuggi= ng. > > Am I missing any steps? > > Build is done with GCC5_AARCH64_PREFIX=3Daarch64-linux-gnu > > > > Another question: it seems that the DS5 scripts limit the path size with = 255 chars. With a source built by Yocto, it can easily be more than that. > > Attempt to add symbols for such modules ends up with error message in the= DS5 command window that it could not add those symbols. > > Is there a procedure to increase the path length limit? > I have never in my life used a DS-5 to debug EDK2 running on bare metal, so unfortunately, I won't be able to help you. I have added Sami to cc, he might know. Sami? --=20 Ard.