foss-for-synopsys-dwc-arc-processors / toolchain

Repository containing releases of prebuilt GNU toolchains for DesignWare ARC Processors from Synopsys (available from "releases" link below).
http://www.synopsys.com/IP/ProcessorIP/ARCProcessors/Pages/default.aspx
GNU General Public License v3.0
92 stars 48 forks source link

[arc64] elf gcc not generating call frame info #342

Open vineetgarc opened 4 years ago

vineetgarc commented 4 years ago

currently mdb doesn't show call stack for ARC64 kernel due to missing .ehframe 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

claziss commented 4 years ago

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

vineetgarc commented 4 years ago

Stack unwinding works now !

vineetgarc commented 4 years ago

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.