From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24418 invoked by alias); 16 Jun 2009 11:25:37 -0000 Received: (qmail 24392 invoked by uid 22791); 16 Jun 2009 11:25:36 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,MISSING_HEADERS,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from wf-out-1314.google.com (HELO wf-out-1314.google.com) (209.85.200.173) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 16 Jun 2009 11:25:28 +0000 Received: by wf-out-1314.google.com with SMTP id 23so1516113wfg.24 for ; Tue, 16 Jun 2009 04:25:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.107.1 with SMTP id f1mr4507110wfc.140.1245151526814; Tue, 16 Jun 2009 04:25:26 -0700 (PDT) In-Reply-To: <200906160939.18287.andre.poenitz@nokia.com> References: <3a665c760906152247r1625a2ban876c8c55ab52d4e2@mail.gmail.com> <200906160939.18287.andre.poenitz@nokia.com> Date: Tue, 16 Jun 2009 11:25:00 -0000 Message-ID: <3a665c760906160425j56ccb22fjb9a9012bde073228@mail.gmail.com> Subject: Re: how to r/w memory From: loody Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00174.txt.bz2 Hi: 2009/6/16 Andr=E9 P=F6nitz : > 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=3D0" like "p var=3Dval" but it fail. >> thanks for your help, >> miloody > > I use > > =A0set {char[5]} &buffer =3D {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