This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH 5/5] Add frame pointer unwinding for aarch64
- From: Ulf Hermann <ulf dot hermann at qt dot io>
- To: Mark Wielaard <mark at klomp dot org>, <elfutils-devel at sourceware dot org>
- Date: Tue, 25 Apr 2017 15:05:05 +0200
- Subject: Re: [PATCH 5/5] Add frame pointer unwinding for aarch64
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=qt.io;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qtcompany.onmicrosoft.com; s=selector1-qt-io; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ORiw/OwyWIUz++wGNIV/gYE6ndLy95Apvqv6TUHNwqM=; b=j7qtrTkMLIhKrPRCZ6MvDpxwPOlgTKOU00OJ2/ZB29Yqu3SCb9GSHRMurDY7Ml9k+ntvcJHtVwDM/9YLtWKZBvwQLdkBZDVvShjtk47ALrC7D/6JjklxX81CXuYF9DfVybgjsSpxqJxTGnNlS2uyyRuwtAO9tSuWklJPv0+RYXU=
- References: <1493124006.31726.33.camel@klomp.org> <1493124579-21017-1-git-send-email-mark@klomp.org> <1493124579-21017-5-git-send-email-mark@klomp.org>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On 04/25/2017 02:49 PM, Mark Wielaard wrote:
> From: Ulf Hermann <ulf.hermann@qt.io>
>
> If we don't find any debug information for a given frame, we usually
> cannot unwind any further. However, the binary in question might have
> been compiled with frame pointers, in which case we can look up the
> well known frame pointer locations in the stack snapshot and use them
> to bridge the frames without debug information.
Looks good to me.
> +# The binary is generated by compiling with eh_frame CFI, but with frame
> +# pointers.
> +#
> +# gcc -static -O2 -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
> +# -D_GNU_SOURCE -pthread -o tests/backtrace.aarch64.fp.exec -I. -Ilib \
> +# tests/backtrace-child.c#
Trailing '#', but that is insignificant.
Ulf