From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30252 invoked by alias); 13 Feb 2006 22:08:30 -0000 Received: (qmail 30242 invoked by uid 22791); 13 Feb 2006 22:08:28 -0000 X-Spam-Check-By: sourceware.org Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.201) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 13 Feb 2006 22:08:27 +0000 Received: by wproxy.gmail.com with SMTP id i30so927184wra for ; Mon, 13 Feb 2006 14:08:25 -0800 (PST) Received: by 10.65.145.8 with SMTP id x8mr1318807qbn; Mon, 13 Feb 2006 14:08:25 -0800 (PST) Received: by 10.64.76.5 with HTTP; Mon, 13 Feb 2006 14:08:25 -0800 (PST) Message-ID: Date: Mon, 13 Feb 2006 22:08:00 -0000 From: Mitchell Fang To: gdb@sourceware.org Subject: "Load" problem MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00126.txt.bz2 Has anybody run into this "load" problem before? Looking at the error message it says it's due to it failing at the function target_write_memory_partial in symfile.c. The thing I don't get is whether this error is due to error in transferring the program to the target or is this something wrong with gdb running on the host machine? When I look at the remote log file I'm pretty sure that I wrote the program to memory and returned OK. A little background on what I'm doing. I'm implementing a GDB stub thats connect GDB running on a linux machine to a PowerPC4xx eval board (target) via a JTAG controller. [mitchell@karla2 testprog]$ ppc_gdb test/testprog GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=3Di686-pc-linux-gnu --target=3Dppc-ibm-l= inux"... Setting up the environment for debugging gdb. No symbol table is loaded. Use the "file" command. No symbol table is loaded. Use the "file" command. (top-gdb) target remote :8888 Remote debugging using :8888 0x00000000 in ?? () (top-gdb) load test/testprog Loading section .interp, size 0x13 lma 0x80480f4 Memory access error while loading section .interp. My testprog program is extremely simple. #include #include int main () { int i; i =3D 51; printf("i =3D %d", i); return 0; } gcc -c -g testprog.c gcc -o testprog testprog.o Thanks, Mitchell