This method doesn't work with ghdl-mcode.
- Build your simulation with debug infos (ie. add
-gflag to the ghdl build) - Open the generated executable in a debugger
- Add a breakpoint on the
__ghdl_fatalfunction (in gdbb __ghdl_fatal) - Run the program with
--assert-level=warningas its argument (in gdbrun --assert-level=warning) - Use the debugger backtrace functionality (in gdb
bt) to resolve the origin of the issue