From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by mx.groups.io with SMTP id smtpd.web12.4536.1576075881807470284 for ; Wed, 11 Dec 2019 06:51:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=WKoJefD4; spf=pass (domain: linaro.org, ip: 209.85.221.53, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wr1-f53.google.com with SMTP id d16so24311142wre.10 for ; Wed, 11 Dec 2019 06:51:21 -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=VVQjsAW3fhkkLmLghRNuCNq51GTkK5Qnig7OmV6X4bE=; b=WKoJefD4olprD1Il3+G7rOvJCPwmLa5ntXOkLiROwFEu552t1f529U2w71RYBEafqv eJ9qD4dRPdc2LVYTJZV0A8I6P3xSjLMAYzaVSkX8GK3YMslM97nfIGjchPQKsB5DprPu PE2ssLqcaFUjgCYQCFweFIlN/Gk4JluMEGGgm06Zky/rr/QtgFzzt+4KOwzRtWEOI/Ny 8EFPVE3bbkJeAUv2XjACfKqAUClWSXG8DLJzTbf3bixeTb8yxPFUHnsAcdixv2cj7U8d EjG7Ko+XmCcVIiHGW/vXb026xEllPaWRJrJMFPlwZ5YPXD+B4K4inOpb9FJXPExWX3dd rwRw== 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=VVQjsAW3fhkkLmLghRNuCNq51GTkK5Qnig7OmV6X4bE=; b=Hua7A0bR8INGQMJdlqNp/+4IEzbr9A9pcvxUkuhM08Vgn7OvaTzhGUOX51aSwZCftn zKZy1CdLTe3iEks4FOmBeQc34IwyxT73AG0SnWhbknoFoy23OVdEzmtRfyM8QV1U83fM pUciqRRWztqZGATMAl9jgWaEmLO+jJ55MjQxCHd+lIVqurEUdOl5RY3og2AIBeazaOM1 KEcyohWSqDEDgRenBcYHpwtIJASz5JPUdyywjoqS8PEgu9c2u0iqLEinzvrAExF1dnGU BvwMzzbzbNL42zWC6Wc/cJY2yWJb7HWXlpu1N1DLGH6l4NLIaKCXE49D0qPx7b+n8YYI LQdQ== X-Gm-Message-State: APjAAAXm3OVeVcyHuY5JiTd3CVAE1WpinJviyWXbqQ0k7KqNtOCUiTW0 aPfh6l+wQZ7oPXOJIrllKIpF6Wg9V/tvsSkjTj5nCQ== X-Google-Smtp-Source: APXvYqyMJxBEsjuMrf6tGhL2Q3ZdebnoiUgBqvJ27pjzHkEwRbtZnSNQLRMQrE0SiQFGNoIzMXDHuTdl9N3VFhKOg/s= X-Received: by 2002:a5d:6652:: with SMTP id f18mr204157wrw.246.1576075880175; Wed, 11 Dec 2019 06:51:20 -0800 (PST) MIME-Version: 1.0 References: <102e9863f7b0a90cbf854d059d9bcf25@mail.gmail.com> <04a4b0a07c2c090141430d7427e1a405@mail.gmail.com> In-Reply-To: <04a4b0a07c2c090141430d7427e1a405@mail.gmail.com> From: "Ard Biesheuvel" Date: Wed, 11 Dec 2019 15:51:09 +0100 Message-ID: Subject: Re: Debugging aarch64 edk2 built with gcc-8.x 64-bit arm compiler To: Vladimir Olovyannikov Cc: Sami Mujawar , edk2-devel-groups-io Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 10 Dec 2019 at 18:25, Vladimir Olovyannikov wrote: > > > -----Original Message----- > > From: Ard Biesheuvel > > Sent: Tuesday, December 10, 2019 9:13 AM > > To: Vladimir Olovyannikov ; Sami > > Mujawar > > Cc: edk2-devel-groups-io > > Subject: Re: Debugging aarch64 edk2 built with gcc-8.x 64-bit arm compi= ler > > > > 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 > > aarch64-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 > > > stack or local variables (even though DS5 does not complain), even fo= r > > > edk2 > > NOOPT build. > > > > > > > > > > > > Using gcc-6.3 from Linaro, I don=E2=80=99t see any issue with DS5 deb= ugging. > > > > > > 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 w= ith > > > 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. > > > How do you normally debug edk2 with DS5? Or, are you using a different > mechanism? > Debugging with DS5 was/is very convenient. > I do my prototyping mainly in QEMU, using GDB for debug.