From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 4AB0A386F465 for ; Mon, 22 Jun 2020 21:55:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4AB0A386F465 Received: by mail-wr1-x429.google.com with SMTP id v3so10847494wrc.1 for ; Mon, 22 Jun 2020 14:55:42 -0700 (PDT) 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; bh=9ymKUTnM0JUYoGbWsBapegMF7tmYjjGNFtjcCoxjL10=; b=WZ1G0cWj6ZD4AhUIrSSC5xIKPXqpcHQfIpsZV5ULuNIVfIzQ7+ZJ681InjR6blvh2F T+trknusU2ba/l/AsoeD+T2jBK+3kf9dB9YypRyEY2/CiDySRe716R14TS4yE6/w19TE JMwhdWh6fVcOE4KjPW8aJyhCHbR8UOyh656+AwuaKCYJF28qxY7/hTJbRp/F/JPbdnJ5 LQmdzKLL09F3+bGw2g9w2m+TFDOCfMIHFgx33Dg5y2/13TVUlqnP3XHx0SRm6exJDvya QVaiNbcfySPeEmqHmq+JER25sILL9r4y69zP5FIxhuhUEeBpL5hOtjOGPs6mLVMyGPOl o5ow== X-Gm-Message-State: AOAM5323rzmdg26BlyCFaxNj9KdmsXc9hklJtcfXDxjLlguPJhwy68Tp Xrw/3wX3YtnjvUyu2Mki4cNqowclMT97p3f/394= X-Google-Smtp-Source: ABdhPJwqoJlGOVX6LNemVsws/zjNEy7skx+eEcG4bNLTdR1CvTANyb4ZVz/9cJbENkCH4L8nA0zSefO5bO5VYyoKsuw= X-Received: by 2002:adf:e906:: with SMTP id f6mr13535005wrm.425.1592862941446; Mon, 22 Jun 2020 14:55:41 -0700 (PDT) MIME-Version: 1.0 References: <20200622213956.GA3486027@host1.jankratochvil.net> In-Reply-To: <20200622213956.GA3486027@host1.jankratochvil.net> From: Ahmad Nouralizadeh Date: Tue, 23 Jun 2020 02:25:30 +0430 Message-ID: Subject: Re: GDB Frame Unwinding for Pure Assembly Code To: Jan Kratochvil Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2020 21:55:43 -0000 Hi Jan, Thanks! I will try with elfutils. I could not find any ".cfi_*" directive in libx264 source code. But knowing the GDB mechanism to get over the problem will be helpful. Regards. On Tue, 23 Jun 2020 at 02:10, Jan Kratochvil wrote: > > On Mon, 22 Jun 2020 23:29:01 +0200, Ahmad Nouralizadeh via Gdb wrote: > > Perf copies stack contents during execution and uses > > libunwind to unwind the backtraces in a post-process phase. > > perf can use also elfutils unwinder by a compile time option. > IIRC someone was implementing non-DWARF unwinder for elfutils but not sure if > it got upstreamed or not. You can try also the elfutils unwinder. > > as has .cfi_startproc to generate .eh_frame, doesn't nasm also have some such? > > > Jan >