Debugging multiple remote targets

Aurelio Remonda <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CANLsssv6gndV3rfB=iGgYMiFfWTv52TwTdT_qV-=M9YBF-hL-A@mail.gmail.com>
Hello, I intend to debug remote multiple targets with gdb. The idea is
to have two
inferiors and then add a target to each one for simultaneous debug.
Something like:

(gdb) add-inferior
Added inferior 2

(gdb) info inferiors
  Num  Description       Executable
  2    <null>
* 1    <null>

(gdb) target remote localhost:1235
Remote debugging using localhost:1235

(gdb) inferior 2
[Switching to inferior 2 [<null>] (<noexec>)]

(gdb) target remote localhost:1236

But when I try to add the second target i get this:
A program is being debugged already.  Kill it? (y or n)

Apparently gdb does not support this. I found this wiki:
https://sourceware.org/gdb/wiki/MultiTarget

Was this work on MultiTarget gdb intended to support this kind of things?

Thank you!

-- 
Aurelio Remonda

Taller Technologies Argentina

Software Engineer

San Lorenzo 47, 3rd Floor, Office 5
Córdoba, Argentina
Phone: +54-351-4217888 / 4218211
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.