From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20137 invoked by alias); 11 Jun 2003 03:26:30 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 20082 invoked from network); 11 Jun 2003 03:26:29 -0000 Received: from unknown (HELO epitools.com) (66.166.77.34) by sources.redhat.com with SMTP; 11 Jun 2003 03:26:29 -0000 Received: from FV (fv [205.158.243.63]) by epitools.com (8.9.3/8.8.7) with ESMTP id UAA10253 for ; Tue, 10 Jun 2003 20:26:28 -0700 From: "Fred Viles" Organization: Embedded Performance, Inc. To: gdb@sources.redhat.com Date: Wed, 11 Jun 2003 03:26:00 -0000 MIME-Version: 1.0 Subject: Connect to already running target? Reply-to: fv@epitools.com Message-ID: <3EE63EEB.4136.18FFA12@localhost> Priority: normal Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-SW-Source: 2003-06/txt/msg00177.txt.bz2 Is it possible to connect to an already running remote target with "target remote" and/or "target async"? As of GDB 5.0, the answer appears to be no, unless I've just not hit on the right incantation. If the initial '?' packet gets a 'T' response, of course GDB assumes the target is stopped. If it gets an "O" response (which the docs seem to suggest should work), it treats it as a fatal packet error and a failed connection. If it gets an empty reply, it reports a packet error but then appears to be waiting for the target to stop (or just a further reply). But trying to interrupt the target with ctrl-C doesn't work - the ctrl-C packet is apparently not sent. Same result if it gets *no* reply, but without the packet error mesage. I searched the list archive, but all I came up with is a post from Andrew dated August 2002 RE dropping "target cisco" support, where he mentioned that the cisco target supported connecting to a running target and this should be integrated into the standard remote targets. Has that happened yet? - Fred