Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "André Pönitz" <andre.poenitz@nokia.com>
To: gdb@sourceware.org
Subject: Re: how to r/w memory
Date: Tue, 16 Jun 2009 07:40:00 -0000	[thread overview]
Message-ID: <200906160939.18287.andre.poenitz@nokia.com> (raw)
In-Reply-To: <3a665c760906152247r1625a2ban876c8c55ab52d4e2@mail.gmail.com>

On Tuesday 16 June 2009 07:47:50 loody wrote:
> Dear all:
> From the gdb document, we can use "x/nfu address" to read memory, but
> how we can write it?
> I have tried "x 0x80000000=0" like "p var=val" but it fail.
> thanks for your help,
> miloody

I use 

  set {char[5]} &buffer = {65,66,67,68,69}

I am not sure it's the recommended approach but "works".

Andre'


  parent reply	other threads:[~2009-06-16  7:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-16  5:47 loody
2009-06-16  6:53 ` Paul Pluzhnikov
2009-06-16  7:32   ` Alfred M. Szmidt
2009-06-16  7:40 ` André Pönitz [this message]
2009-06-16 11:25   ` loody

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=200906160939.18287.andre.poenitz@nokia.com \
    --to=andre.poenitz@nokia.com \
    --cc=gdb@sourceware.org \
    /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