This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"Load" problem


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 conditions.
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=i686-pc-linux-gnu --target=ppc-ibm-linux"...
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 <stdio.h>
#include <stdlib.h>
int main ()
{
	int i;

	i = 51;
	printf("i = %d", i);
	return 0;
}

gcc -c -g testprog.c
gcc -o testprog testprog.o


Thanks,
Mitchell


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]