This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug remote/19215] New: GDB does not support more than one inferior for "target remote"
- From: "jagadeesh545 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 06 Nov 2015 05:21:20 +0000
- Subject: [Bug remote/19215] New: GDB does not support more than one inferior for "target remote"
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19215
Bug ID: 19215
Summary: GDB does not support more than one inferior for
"target remote"
Product: gdb
Version: 7.10
Status: NEW
Severity: normal
Priority: P2
Component: remote
Assignee: unassigned at sourceware dot org
Reporter: jagadeesh545 at gmail dot com
Target Milestone: ---
Current version of GDB (7.10) does not allow to have two inferiors with "target
remote" in the same gdb session.
Launching second instance of "target remote" in the same session will result in
request to kill the existing inferiors.
Example Scenario:
targetbash1$gdbserver --attach localhost:2020 pid1
targetbash2$gdbserver --attach localhost:2021 pid2
hostbash1$gdb
(gdb)target remote target-ip:2020
...
(gdb)add-inferior
...
(gdb)inferior 2
(gdb)target remote target-ip:2021
A program is being debugged already. Kill it? (y or n)
--
You are receiving this mail because:
You are on the CC list for the bug.