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