This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Multiple remote inferiors
- From: Kevin Pouget <kevin dot pouget at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 6 Apr 2011 11:02:15 -0400
- Subject: Multiple remote inferiors
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