Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] MI and ProcessFactory

> 
> Hello,
> 
> Just got a short question on the way MI invokes GDB.
> 
> MI uses ProcessFactory to create the process and inside ProcessFactory, it
> uses Spawner, my question is: why does it need to use Spawner, what is
> it used for?
> 

We use Spawner instead of java.lang.Runtime because :
- old java VM on windows used to spawn a dos window for each Runtime.exec();
- for gdb to interrupt the debugging process you need to drop a signal, SIGINT.
- Signals are not available in Java.
- and more recently it allows us to provide terminal emulation (not on all platforms).
..



Back to the top