This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Debugging multiple remote targets


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]