From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2347 invoked by alias); 14 Aug 2006 20:41:07 -0000 Received: (qmail 2339 invoked by uid 22791); 14 Aug 2006 20:41:06 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 Aug 2006 20:41:02 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k7EKexmH020199; Mon, 14 Aug 2006 16:40:59 -0400 Received: from localhost.localdomain (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k7EKexiN019912; Mon, 14 Aug 2006 16:40:59 -0400 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by localhost.localdomain (8.13.1/8.12.8) with ESMTP id k7EKevuD012703; Mon, 14 Aug 2006 16:40:58 -0400 Message-ID: <44E0DFD8.5010208@redhat.com> Date: Mon, 14 Aug 2006 20:41:00 -0000 From: Keith Seitz User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Nik Shaylor CC: insight@sourceware.org Subject: Re: How to connect to running program via a serial port References: <20934fa50608141335y47525743mf862679fe1861118@mail.gmail.com> In-Reply-To: <20934fa50608141335y47525743mf862679fe1861118@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2006-q3/txt/msg00022.txt.bz2 Nik Shaylor wrote: > So with gdb I just type: > > target remote /dev/ttyS0 > > and I can start debugging the, already running, program via the serial > port. > > When I start Insight it thinks nothing is running and the only button > that works us the "Run" command. How can I start Insight ina mode > where it will thinks the program is already running? You have two options: 1) Open a console window and type your gdb command in 2) Open File->Target Settings..., and select "Remote/Serial", enter buad rate, com port. Use Run menu to attach to target. That should be all you need. [The Run button is a little more elaborate. In the target settings dialog, you can specify what the run button does by clicking "More options". Currently the run button will ALWAYS either "run" or "continue" the target.] Keith