This is the mail archive of the gdb-prs@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]

[Bug remote/19215] New: GDB does not support more than one inferior for "target remote"


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.

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