From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16206 invoked by alias); 7 Oct 2003 01:19:38 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 16170 invoked from network); 7 Oct 2003 01:19:37 -0000 Received: from unknown (HELO mail.iinet.net.au) (203.59.3.46) by sources.redhat.com with SMTP; 7 Oct 2003 01:19:37 -0000 Received: (qmail 14014 invoked from network); 7 Oct 2003 01:19:34 -0000 Received: from unknown (HELO microsol.iinet.net.au) (203.59.212.72) by mail.iinet.net.au with SMTP; 7 Oct 2003 01:19:34 -0000 Received: from microsol.iinet.net.au ([192.168.1.101]) by microsol.iinet.net.au (8.11.6/8.11.6) with ESMTP id h971JY705987; Tue, 7 Oct 2003 01:19:34 GMT Message-ID: <3F82141F.9080506@microsol.iinet.net.au> Date: Tue, 07 Oct 2003 01:19:00 -0000 From: Paul Whitfield Organization: Microsol User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20030925 X-Accept-Language: en-us, en MIME-Version: 1.0 To: bdm-devel@lists.sourceforge.net CC: insight@sources.redhat.com Subject: Re: [Bdm-devel] RE: Problems using Insight/GDB for Coldfire References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2003-q4/txt/msg00024.txt.bz2 Dörr, Dirk wrote: > Paul Whitfield wrote: > > > >>(gdb) tk gdb_target_has_execution >>0 > > >>(gdb) tk set ::gdb_running >>0 I took the code and added the line inferior_ptid = pid_to_ptid (42000); /* Make run command think we are busy... */ This now enables all the buttons. But if I attempt to load a new file, then get the following sequence Insight tells me that a debugging session is in progress and do I want to end it. Then when I attempt to load the file I get an error (If I load the file from the console by typing "load file.elf" it works without error). After this the buttons are confused again. Checking the settings again gdb_target_has_execution is 1,::gdb_running is still 0. Looks like I have not quite found the right spot to set the pid! Also if I load my program by scripts and start everything running I have the same problem when I hit the first breakpoint, i.e. insight thinks that the target is not running again. Regards Paul