Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* raw memory write?
@ 2004-01-21 19:08 Németh Márton
  2004-01-21 19:14 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Németh Márton @ 2004-01-21 19:08 UTC (permalink / raw)
  To: gdb

Hi!

I'm testing an embedded system with gdb using remote target.

Examining memor works fine as described at
http://sources.redhat.com/gdb/onlinedocs/gdb_9.html#SEC59

But I couldn't find any easy command with I could modify the content of
a given memory address, only if I create a one-byte-long file containing
my data.

For example:
--------------------------------------------------------
(gdb) x/b 0x800000C0
0x800000c0:     0x00
(gdb) restore one.dat binary 0x800000C0
Restore file one.dat offset 0x800000c0 start 0x0 end 0x0
Restoring binary file one.dat into memory (0x800000c0 to 0x800000c1)
(gdb) x/b 0x800000C0
0x800000c0:     0x01
(gdb) restore zero.dat binary 0x800000C0
Restore file zero.dat offset 0x800000c0 start 0x0 end 0x0
Restoring binary file zero.dat into memory (0x800000c0 to 0x800000c1)
(gdb) x/b 0x800000C0
0x800000c0:     0x00
(gdb)
--------------------------------------------------------

Do I need to create a file when I want to write a byte of data?

Thanks.

	Márton Németh

Student of Budapest University of Technology and Economics, Hungary


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-21 19:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-21 19:08 raw memory write? Németh Márton
2004-01-21 19:14 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox