From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) by mx.groups.io with SMTP id smtpd.web09.108.1575998744283070375 for ; Tue, 10 Dec 2019 09:25:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@broadcom.com header.s=google header.b=iKTI6hUp; spf=pass (domain: broadcom.com, ip: 209.85.167.172, mailfrom: vladimir.olovyannikov@broadcom.com) Received: by mail-oi1-f172.google.com with SMTP id i1so10516231oie.8 for ; Tue, 10 Dec 2019 09:25:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:references:in-reply-to:mime-version:thread-index:date :message-id:subject:to:cc:content-transfer-encoding; bh=HAI0V4pk7wh32cyjGKcp8MKlMFLcncUNHItbkHxMqWs=; b=iKTI6hUpTGXfhXT83NdeCgHOLufLIUeHwvM7N6qcq+s84OeZiz6b52mvEsJV+nQs8j XgatPrQ9lzAh+HFOiK5z2r+HrKZfWVOrs2624QhR1zF//hOTryY5KciXFSOBPQHMXmhQ ToaWjO4prZDFelpBkIY2Dm2Kby6l/lzixMBzo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc :content-transfer-encoding; bh=HAI0V4pk7wh32cyjGKcp8MKlMFLcncUNHItbkHxMqWs=; b=XrLN7rx9y+nH0yilcpxdFgTBp3d0/thKrhKD0+h1QVM1jX2nsoCEF5DSNBXqXFse3H ylgU4j7FpV7a3rko0MwwqdMNjNOaA/jPPr7xuR6rgrdFU1WGWb2HJJ3eEjYznIrT43E1 u1uQWRhfERjRbfFccEGa6fWF8I06EonDEDNxr0YaRMrfvEAiMIch4tp53oNyYXXSwu/Y dbJJ9k7wNeJsa2KbbZjICMGoHVZ97DZGVivnfmbYXNC1+04vZ3rScaLcB9UNunT6WZve Z+TCIVH0L8WH06E0u+u8y03MPDTjsubGgCPiOb9M2gKX368MNz8Ep51L/+IEj9+p5M7k yzJg== X-Gm-Message-State: APjAAAUCD9WUvHxFCTnrXpezd5ZB/3qgo+JXOyheeona/KVwPRsZhnsj ZMqy+P49L+bH0T5Lq+LeujBdfswL4B5ZWGiTO+iw/A== X-Google-Smtp-Source: APXvYqw8OHMI+5bYe0qKTMCY5Ii39aSob1297tQzLdnd8Vm86v3qtDLJqXSd3wi4sHBhTtiGm4pPdhVkLLbtsZD2s4Y= X-Received: by 2002:aca:aacf:: with SMTP id t198mr4978080oie.135.1575998743236; Tue, 10 Dec 2019 09:25:43 -0800 (PST) From: "Vladimir Olovyannikov" References: <102e9863f7b0a90cbf854d059d9bcf25@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHNMhFW+D8eqrEobP/0gFQWkMCeUQIWX4Wqp7PmGCA= Date: Tue, 10 Dec 2019 09:25:40 -0800 Message-ID: <04a4b0a07c2c090141430d7427e1a405@mail.gmail.com> Subject: Re: Debugging aarch64 edk2 built with gcc-8.x 64-bit arm compiler To: Ard Biesheuvel , Sami Mujawar Cc: edk2-devel-groups-io Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > -----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 compile= r > > 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 for > > edk2 > NOOPT build. > > > > > > > > Using gcc-6.3 from Linaro, I don=E2=80=99t see any issue with DS5 debug= ging. > > > > 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 wit= h > > 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. Thank you, Vladimir > I have added Sami to cc, he might know. Sami? > > -- > Ard.