GDB Frame Unwinding for Pure Assembly Code
Ahmad Nouralizadeh
ahmad.mlists@gmail.com
Mon Jun 22 21:55:30 GMT 2020
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 <jan.kratochvil@redhat.com> 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
>
More information about the Gdb
mailing list