toolchain icon indicating copy to clipboard operation
toolchain copied to clipboard

[arc64] elf gcc not generating call frame info

Open vineetgarc opened this issue 4 years ago • 3 comments

currently mdb doesn't show call stack for ARC64 kernel due to missing .eh_frame from "C" code despite -fasynchronous-unwind-tables FWIW asm code with hand edited .cfi_* seems to work.

There's also jira entry for tracking this: https://jira.internal.synopsys.com/browse/P10019563-41701

vineetgarc avatar Jun 17 '20 19:06 vineetgarc

I've pushed a small patch that adds proper DWARF macros. Still need to add EH code.

claziss avatar Jun 19 '20 10:06 claziss

Stack unwinding works now !

vineetgarc avatar Jun 23 '20 05:06 vineetgarc

After the original fix, dwarf info is now being inhibited (elf toolchain) so we are back to square one. I understand this requires some newlib updates but ARCv2 elf toolchain 2020.03 does have unwind info.

vineetgarc avatar Jul 27 '20 23:07 vineetgarc