This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Debugging multiple remote targets
- From: Aurelio Remonda <aurelio dot remonda at tallertechnologies dot com>
- To: gdb at sourceware dot org
- Date: Mon, 28 Mar 2016 17:55:44 -0300
- Subject: Debugging multiple remote targets
- Authentication-results: sourceware.org; auth=none
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