From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21002 invoked by alias); 27 Aug 2003 14:32:22 -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 20990 invoked from network); 27 Aug 2003 14:32:20 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 27 Aug 2003 14:32:20 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id BD43B2B7F; Wed, 27 Aug 2003 10:32:21 -0400 (EDT) Message-ID: <3F4CC0F5.9020506@redhat.com> Date: Wed, 27 Aug 2003 14:32:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Hylla, Kai" Cc: gdb@sources.redhat.com Subject: Re: Problems with load References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-08/txt/msg00299.txt.bz2 Several things to check: - Is the section being loaded marked as LOAD? Run 'objdump -h ' on the executable being loaded and check that all the sections that GDB should load have the LOAD attribute. - Is GDB transfering the data? There should be output from "load" indicating what GDB is transfering. Is the missing section in the list. - Is GDB really transfering the data? Enabe remote protocol debugging "(gdb) set debug remote 1" and then perform a load. You should see memory write packets to the sections in question. If all of these are ok, then the problem is in the remote end. Andrew > I've problems using the gdb load instruction. The command is executed. > But the file is no written correctly into the RAM. Some addresses are > not written. They still contain the value they had prior to the load > command. This behavior is address indepentend. If I move the progam into > anonther location the problem still exist. > > I tested some things and discovert that the set instruction is not > executed if the data type is char or short. (Readaccess with datatype > char and shor works.) I'm not sure if this my cause the load problem. If > the CPU executes byte or short writes to the memory it works. So in IMHO > it can't be a hardwareproblem. > > I think that the problem is caused due to a gdb configuration error. I > tried several settings (e.g. set download-write-size, set remote > memory-write-packet-size)but it doesn't help. > > I use where OcdLibDemon from Macraigor is > listening. If I use or to write to the > address it works. Because of that, the OcdLibDemon configuration <-c > PPC5XX8XX -d WIGGLER -a 1 -s 1> should be correct. > > Which settings I can use to modify gdbs load and set related behaviour? > > Thanks and regards, > Kai > > --- > K. Hylla > Abt. NJT T3 > > ATLAS Elektronik GmbH > A BAE Systems Company > Sebaldsbruecker Heerstr. 235 > D-28305 Bremen >