This is the mail archive of the gdb@sources.redhat.com 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]

Problems with load


Hi!

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 <target remote localhost:8888> where OcdLibDemon from Macraigor is
listening. If I use <monitor char> or <monitor short> 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

Tel.: +49 421 457-3231
Fax : +49 421 457-1702 


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