From: Daniel Jacobowitz <drow@mvista.com>
To: "Németh Márton" <nm127@hszk.bme.hu>
Cc: gdb@sources.redhat.com
Subject: Re: raw memory write?
Date: Wed, 21 Jan 2004 19:14:00 -0000 [thread overview]
Message-ID: <20040121191423.GA21575@nevyn.them.org> (raw)
In-Reply-To: <Pine.GSO.4.58.0401211957170.29029@ural2>
On Wed, Jan 21, 2004 at 08:08:35PM +0100, Németh Márton wrote:
> 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)
Try:
(gdb) set *(char *)0x800000C0 = 0x01
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
prev parent reply other threads:[~2004-01-21 19:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-21 19:08 Németh Márton
2004-01-21 19:14 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040121191423.GA21575@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=nm127@hszk.bme.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox