From: Kevin Pouget <kevin.pouget@gmail.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb@sourceware.org
Subject: Re: Multiple remote inferiors
Date: Wed, 06 Apr 2011 18:50:00 -0000 [thread overview]
Message-ID: <BANLkTi=LXfM7zGFtB6GhWAhVR-p3QPW-Ew@mail.gmail.com> (raw)
In-Reply-To: <201104061844.01479.pedro@codesourcery.com>
On Wed, Apr 6, 2011 at 7:44 PM, Pedro Alves <pedro@codesourcery.com> wrote:
> On Wednesday 06 April 2011 16:02:15, Kevin Pouget wrote:
>> 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?
>
> GDB support multiple processes, but they currently
> all need to be behind the same target.
>
> For remote targets, only extended-remote allows that.
> E.g., adding a new inferior with add-inferior, switching
> to it, and doing "start", should work.
yes, sure, I wanted to use only the "remote" target stack to connect
GDB to 2 different inferiors
"start" seems not to be used with the remote/extended remote ("No
symbol table loaded. Use the "file" command.") target,
(gdb) target [extended-]remote <location>
is, AFAIK, the only way to initiate such a connection
>
>> it should theoretically be possible,
>
> This is just software, so in theory, anything
> is possible. :-)
:)
I meant, "easily feasible with the current GDB implementation!"
> It goes further beyond that. There's only one target_ops stack.
> Going multi-target would be awesome.
yep, sure ! but that's why my initial question only targeted the
remote target stack, and (although I'm not sure that's mandatory) the
same target architecture
Kevin
next prev parent reply other threads:[~2011-04-06 18:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-06 15:02 Kevin Pouget
2011-04-06 17:44 ` Pedro Alves
2011-04-06 18:50 ` Kevin Pouget [this message]
2011-04-06 19:30 ` Pedro Alves
[not found] ` <BANLkTinjtiS6cp6WpS=8FULQJdxWuO7K8Q@mail.gmail.com>
2011-04-08 9:43 ` Kevin Pouget
2011-04-08 10:02 ` Jan Kratochvil
2011-04-08 10:00 ` Pedro Alves
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='BANLkTi=LXfM7zGFtB6GhWAhVR-p3QPW-Ew@mail.gmail.com' \
--to=kevin.pouget@gmail.com \
--cc=gdb@sourceware.org \
--cc=pedro@codesourcery.com \
/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