The attached patch agains 5.0 sources addsa to_stop() method to the rdi target, and calls ui_loop_hook() while target is executing. These changes are required for the "stop" button in the Insight GUI to work. -- Grant Edwards grante@visi.com