This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
mem command and set command
- From: bjgnu at sunnorth dot com dot cn
- To: gdb at sourceware dot org
- Date: Fri, 7 Mar 2008 16:55:53 +0800
- Subject: mem command and set command
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?