Multiple remote inferiors

Kevin Pouget
2011-04-06T15:02:40Z

Hello,

it looks like it's not possible to connect to several
remote/extended-remote inferiors at the same time:

(gdb) target remote :1234
...
(gdb) add-inferior
Added inferior 2
(gdb) inferior 2
[Switching to inferior 2 [process 0] (<noexec>)]
(gdb) target remote :1235
A program is being debugged already. Kill it? (y or n)

and I was wondering what was the reason?

it should theoretically be possible, now that multiprocess debugging
has been enabled, so maybe it's because remote.c relies a lot on
global variables?

Cordially,

Kevin