From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20532 invoked by alias); 11 Aug 2016 14:57:03 -0000 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 Received: (qmail 20514 invoked by uid 89); 11 Aug 2016 14:57:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=extendedremote, extended-remote, HX-Envelope-From:sk:david.t X-HELO: esa5.dell-outbound.iphmx.com Received: from Unknown (HELO esa5.dell-outbound.iphmx.com) (68.232.153.95) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Aug 2016 14:56:52 +0000 Received: from mailuogwdur.emc.com ([128.221.224.79]) by esa5.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Aug 2016 09:56:44 -0500 Received: from maildlpprd53.lss.emc.com (maildlpprd53.lss.emc.com [10.106.48.157]) by mailuogwprd52.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id u7BEuhvb028450 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 11 Aug 2016 10:56:43 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd52.lss.emc.com u7BEuhvb028450 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd52.lss.emc.com u7BEuhvb028450 Received: from mailusrhubprd04.lss.emc.com (mailusrhubprd04.lss.emc.com [10.253.24.22]) by maildlpprd53.lss.emc.com (RSA Interceptor) for ; Thu, 11 Aug 2016 10:55:45 -0400 Received: from MXHUB208.corp.emc.com (MXHUB208.corp.emc.com [10.253.68.34]) by mailusrhubprd04.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id u7BEu4r2002100 (version=TLSv1.2 cipher=AES128-SHA256 bits=128 verify=FAIL) for ; Thu, 11 Aug 2016 10:56:39 -0400 Received: from MX203CL03.corp.emc.com ([fe80::4dee:b763:b476:8fbc]) by MXHUB208.corp.emc.com ([10.253.68.34]) with mapi id 14.03.0266.001; Thu, 11 Aug 2016 10:56:18 -0400 From: "taylor, david" To: "gdb@sourceware.org" Subject: multiple live inferiors Date: Thu, 11 Aug 2016 14:57:00 -0000 Message-ID: <63F1AEE13FAE864586D589C671A6E18B06CA71@MX203CL03.corp.emc.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd04.lss.emc.com X-RSA-Classifications: public X-SW-Source: 2016-08/txt/msg00018.txt.bz2 Currently GDB supports having multiple non-live inferiors. But, if I try to add a second live inferior it wants to kill the current live inferior. That is, I can do: gdb some-file.elf set non-stop on set target-async on target extended-remote | program with some arguments add-inferior -exec new-file.elf info inferiors inferior 2 target extended-remote | program with different arguments at which point GDB will say: A program is being debugged already. Kill it? (y or n) I'd be okay with the question if the current inferior was live. But, it is= just an executable. I assume that there's more to changing this than just modifying target_preo= pen. What else is likely to break or need modification? Thanks.