From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31794 invoked by alias); 16 Jun 2009 05:47:57 -0000 Received: (qmail 31785 invoked by uid 22791); 16 Jun 2009 05:47:57 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-px0-f202.google.com (HELO mail-px0-f202.google.com) (209.85.216.202) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 16 Jun 2009 05:47:52 +0000 Received: by pxi40 with SMTP id 40so1003978pxi.12 for ; Mon, 15 Jun 2009 22:47:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.8.17 with SMTP id l17mr3721811wfi.173.1245131270434; Mon, 15 Jun 2009 22:47:50 -0700 (PDT) Date: Tue, 16 Jun 2009 05:47:00 -0000 Message-ID: <3a665c760906152247r1625a2ban876c8c55ab52d4e2@mail.gmail.com> Subject: how to r/w memory From: loody To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00167.txt.bz2 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