Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Aurelio Remonda <aurelio.remonda@tallertechnologies.com>
To: gdb@sourceware.org
Subject: Debugging multiple remote targets
Date: Mon, 28 Mar 2016 20:55:00 -0000	[thread overview]
Message-ID: <CANLsssv6gndV3rfB=iGgYMiFfWTv52TwTdT_qV-=M9YBF-hL-A@mail.gmail.com> (raw)

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


             reply	other threads:[~2016-03-28 20:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-28 20:55 Aurelio Remonda [this message]
2016-03-28 23:38 ` Paul_Koning

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANLsssv6gndV3rfB=iGgYMiFfWTv52TwTdT_qV-=M9YBF-hL-A@mail.gmail.com' \
    --to=aurelio.remonda@tallertechnologies.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox