From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) by mx.groups.io with SMTP id smtpd.web10.12446.1575676251268090280 for ; Fri, 06 Dec 2019 15:50:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@broadcom.com header.s=google header.b=DA41CgQy; spf=pass (domain: broadcom.com, ip: 209.85.167.175, mailfrom: vladimir.olovyannikov@broadcom.com) Received: by mail-oi1-f175.google.com with SMTP id k196so1405882oib.2 for ; Fri, 06 Dec 2019 15:50:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:mime-version:thread-index:date:message-id:subject:to:cc; bh=LqiYW+LBWI/SoMJlteujh16y9krovmn+s/4z82vAiXY=; b=DA41CgQyqMjmmGrAg5Yuv3B9hyQrZaOJsUl1l3Px3XFCebXioo1Om6HWxowTDPes/k WTrItRrgliO7t6yeNrIj4tREtM3gmmJ+/YJ7GAOlkzRl8Cvy7JkZPIW5xk6FGnQLwI/C W4H7cUPR9C3N6iOeJQ3zvgJnscPzV3wSWHxVY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:thread-index:date:message-id :subject:to:cc; bh=LqiYW+LBWI/SoMJlteujh16y9krovmn+s/4z82vAiXY=; b=PknzScqH56RJ4VUrm42UJby5wRrUCJgAjnjUjc+EIH6rfa9AXLNv9XTE5VKDCP2W57 VBsxojSb+2VQZsMPggQ9nSFtC+FXsPBqaOl6rQgyB4jJJeo8Oc3Tj5nn5wcZ3iMFDvxN Tx/DdHRhQtrXqIDLzCdRfi6G7f8AYZPj7fEExiO6iXMW3y7w9NbDbsbbntzi8lhAJy6g sUdTXLnI8Sr+RrSErUxmbLsyYPLCW8Tb6S1+NZ3/0u6n6EQ+Q9GGm5mGMmajtjwlVNhD lzbAXNKRtguZw+gTYHWoDNwVHLay5foCZreyHo/4Qn8rZHNxGUZ8j5Y78cyYxMeF1m7U WssQ== X-Gm-Message-State: APjAAAWdlZAQc3wvxjNovW3QUSbxMq9KGdSPzoZ7tIbuDzfxFD9PVVdh vPWeOxZEnnOtXARckek59z9D5SAoRD/YFTz2LermO/NNS251QQ== X-Google-Smtp-Source: APXvYqxbIQ8mvsWWE0NG4uP/RAJAzqZiIFDOEORqrxCVvWqLIhTqA4Feem30oQf7hMdZ2Btuw8saXrvGAQvZuyUftMc= X-Received: by 2002:a05:6808:1c6:: with SMTP id x6mr9287192oic.49.1575676250299; Fri, 06 Dec 2019 15:50:50 -0800 (PST) From: "Vladimir Olovyannikov" MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdWsg6BRP2U09M0XRa2PM7KoagndJw== Date: Fri, 6 Dec 2019 15:50:47 -0800 Message-ID: <102e9863f7b0a90cbf854d059d9bcf25@mail.gmail.com> Subject: Debugging aarch64 edk2 built with gcc-8.x 64-bit arm compiler To: Ard Biesheuvel Cc: devel@edk2.groups.io Content-Type: multipart/alternative; boundary="0000000000002e6281059911b77d" --0000000000002e6281059911b77d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 for edk2 NOOPT build. Using gcc-6.3 from Linaro, I don=E2=80=99t see any issue with DS5 debugging= . 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? Thank you, Vladimir --0000000000002e6281059911b77d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <= div class=3D"WordSection1">

Hi Ard,

=C2=A0

We are about to switch to the lat= est 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 for = edk2 NOOPT build.

=C2=A0

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

=C2=A0

Another question: it seems = that the DS5 scripts limit the path size with 255 chars. With a source buil= t by Yocto, it can easily be more than that.

Atte= mpt to add symbols for such modules ends up with error message in the DS5 c= ommand window that it could not add those symbols.

Is there a procedure to increase the path length limit?

=C2=A0

Thank you,
Vladimir

<= /body> --0000000000002e6281059911b77d--