Re: GDB Frame Unwinding for Pure Assembly Code

Ahmad Nouralizadeh via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAMYFX7mJtb5yRvarqJdnacRW7oEWpW3kH1aZGu1ope9AL0X-Yg@mail.gmail.com>
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 <[email protected]> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.