Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: loody <miloody@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: how to r/w memory
Date: Tue, 16 Jun 2009 11:25:00 -0000	[thread overview]
Message-ID: <3a665c760906160425j56ccb22fjb9a9012bde073228@mail.gmail.com> (raw)
In-Reply-To: <200906160939.18287.andre.poenitz@nokia.com>

Hi:

2009/6/16 André Pönitz <andre.poenitz@nokia.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".
thanks for your help.
BTW, when checking the usage of breakpoint.
It seems 2 kinds of them, HW and SW.
What are the differences?
appreciate your help,
miloody


      reply	other threads:[~2009-06-16 11:25 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
2009-06-16 11:25   ` loody [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=3a665c760906160425j56ccb22fjb9a9012bde073228@mail.gmail.com \
    --to=miloody@gmail.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