This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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? 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]