Forum Discussion
Altera_Forum
Honored Contributor
15 years agoAbout exceptions: Is try, catch and thow supported?
I would like to use try-catch statements, but it does not seems to work for me. I work with Quartus II 11.0sp1 and nios II (the fpga includes a vic). When I debug what happens in my throw state...
Altera_Forum
Honored Contributor
14 years agoFWIW, I can see that the exception stack unwind fails at the gcc_assert in this function.
static inline void _Unwind_SetSpColumn (struct _Unwind_Context *context, void *cfa, _Unwind_SpTmp *tmp_sp) { int size = dwarf_reg_size_table[__builtin_dwarf_sp_column ()]; if (size == sizeof(_Unwind_Ptr)) tmp_sp->ptr = (_Unwind_Ptr) cfa; else { gcc_assert (size == sizeof(_Unwind_Word)); tmp_sp->word = (_Unwind_Ptr) cfa; } _Unwind_SetGRPtr (context, __builtin_dwarf_sp_column (), tmp_sp); }