From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4295 invoked by alias); 7 Mar 2008 08:56:31 -0000 Received: (qmail 4284 invoked by uid 22791); 7 Mar 2008 08:56:30 -0000 X-Spam-Check-By: sourceware.org Received: from mail.sunnorth.com.cn (HELO bjmsw01.sunnorth.com.cn) (124.42.0.200) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 07 Mar 2008 08:56:13 +0000 Received: from maillog.sunnorth.com.cn (unverified [172.20.10.250]) by bjmsw01.sunnorth.com.cn (Clearswift SMTPRS 5.2.9) with ESMTP id for ; Fri, 7 Mar 2008 16:56:11 +0800 Received: from ntns1cn.sunnorth.com.cn (ntns1cn.sunnorth.com.cn [172.20.10.252]) by maillog.sunnorth.com.cn (8.12.10/8.12.10) with ESMTP id m279BGQo008559 for ; Fri, 7 Mar 2008 17:12:09 +0800 From: bjgnu@sunnorth.com.cn To: gdb@sourceware.org Subject: mem command and set command MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: Date: Fri, 07 Mar 2008 13:56:00 -0000 Content-Type: text/plain; charset="US-ASCII" 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: 2008-03/txt/msg00087.txt.bz2 hello all, Executing the following GDB commands: mem 0x0 0x100 16 set *0x0=0x12345678 I found the 3rd parameter of write_memory (CORE_ADDR memaddr, const bfd_byte *myaddr, int len) is always 4. I think the length should be 2 because "mem 0x0 0x100 16" has set memory width to 16. Does "mem" command affect write memory operation?