Writing testcases for error handling that depends on specific DWARF is very difficult and the resulting tests tend not to be very portable. This patch adds a new setting to inject an error into variable materialization, thus making it possible to write very simple source code based tests for error handling instead. This is primarily motivated by the Swift language plugin, but functionality is generic and should be useful for other languages as well.
24 KiB
24 KiB