From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17720 invoked by alias); 6 Apr 2011 15:02:40 -0000 Received: (qmail 17711 invoked by uid 22791); 6 Apr 2011 15:02:40 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-vx0-f169.google.com (HELO mail-vx0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Apr 2011 15:02:36 +0000 Received: by vxk20 with SMTP id 20so1540590vxk.0 for ; Wed, 06 Apr 2011 08:02:35 -0700 (PDT) Received: by 10.52.66.241 with SMTP id i17mr1573736vdt.54.1302102155475; Wed, 06 Apr 2011 08:02:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.175.197 with HTTP; Wed, 6 Apr 2011 08:02:15 -0700 (PDT) From: Kevin Pouget Date: Wed, 06 Apr 2011 15:02:00 -0000 Message-ID: Subject: Multiple remote inferiors To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00012.txt.bz2 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] ()] (gdb) target remote :1235 A program is being debugged already. Kill it? (y or n) and I was wondering what was the reason? it should theoretically be possible, now that multiprocess debugging has been enabled, so maybe it's because remote.c relies a lot on global variables? Cordially, Kevin