From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7651 invoked by alias); 7 Aug 2002 14:22:44 -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 7644 invoked from network); 7 Aug 2002 14:22:43 -0000 Received: from unknown (HELO TheWorld.com) (199.172.62.105) by sources.redhat.com with SMTP; 7 Aug 2002 14:22:43 -0000 Received: from shell.TheWorld.com (root@shell01.TheWorld.com [199.172.62.241]) by TheWorld.com (8.9.3/8.9.3) with ESMTP id KAA31771; Wed, 7 Aug 2002 10:22:42 -0400 Received: from localhost (qqi@localhost) by shell.TheWorld.com (8.9.3/8.9.3) with ESMTP id KAA72179032; Wed, 7 Aug 2002 10:22:41 -0400 (EDT) X-Authentication-Warning: shell01.TheWorld.com: qqi owned process doing -bs Date: Wed, 07 Aug 2002 07:22:00 -0000 From: Quality Quorum To: Squal cc: gdb@sources.redhat.com Subject: Re: remote debugging with m68k-stub In-Reply-To: <3D511895.F61D82A1@enssat.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-08/txt/msg00050.txt.bz2 On Wed, 7 Aug 2002, Squal wrote: > Hello! > > I have done all the remote target gdb instructions: > - define all the low level routines > - insert set_debug_traps(); and breakpoints(); at > the beginning of the program > - compiling stub and program together > > After that, I downloaded my program and the m68k-stub in the target. > My problem is when I start the program in the remote target, the program > stop and never restart (the halt indicator is set). > Normally, the program will stop at the breakpoint (TRAP #1) and will > continue after gdb be connected to the stub but the program seems to > be stopped. If you this is not the first time you are running gdb in this environment check changes you made. If it is the first time it is quite possible that you have conflict between you ROM monitor (I suspect this is what you call target) initialization and gdb initialization. > > Somebody can help me ? 1. Use ICE if it is available or 2. Trace the thing with characters sent to serial port. > > Thanks > > Pascal > There are simply no smart ways to debug initialization, also do not forget to read you target doc, it is quite possible that they have some debugging help. Thanks, Aleksey