From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15928 invoked by alias); 14 Aug 2006 21:01:34 -0000 Received: (qmail 15916 invoked by uid 22791); 14 Aug 2006 21:01:33 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0102.google.com (HELO nz-out-0102.google.com) (64.233.162.197) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 Aug 2006 21:01:31 +0000 Received: by nz-out-0102.google.com with SMTP id l8so434339nzf for ; Mon, 14 Aug 2006 14:01:30 -0700 (PDT) Received: by 10.65.114.11 with SMTP id r11mr3301980qbm; Mon, 14 Aug 2006 14:01:30 -0700 (PDT) Received: by 10.65.154.1 with HTTP; Mon, 14 Aug 2006 14:01:30 -0700 (PDT) Message-ID: <20934fa50608141401o7ac5a8dl71cc71b6957a17f@mail.gmail.com> Date: Mon, 14 Aug 2006 21:01:00 -0000 From: "Nik Shaylor" To: "Keith Seitz" Subject: Re: How to connect to running program via a serial port Cc: insight@sourceware.org In-Reply-To: <44E0DFD8.5010208@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20934fa50608141335y47525743mf862679fe1861118@mail.gmail.com> <44E0DFD8.5010208@redhat.com> X-Google-Sender-Auth: 8e77cec14fe7d148 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/msg00023.txt.bz2 Hi Keith, Thanks for your message. Neither of these techniques seem to work for me. If I open the console window and type "target remote /dev/ttyS0" the program seems to lock up. (The windows are present, but not responding to any input). If I do Open File->Target Settings etc. still have to use the "Run" command and this always continues the execution of the program which is just what I don't want it to do. The only way I seems to get it to work is to start Insight running before the program wants to start talking to the debugger. This does not really work for me because I'm using the serial port for program trace information as well so I just want to start the debugger when I can see from the trace that the program has got into trouble. Thanks, Nik On 8/14/06, Keith Seitz wrote: > 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 > >