This is the mail archive of the sid@sources.redhat.com mailing list for the SID 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]

Re: Misaligned read/write of memory by GDB


Frank Ch. Eigler wrote:

OK, but did you consider an alternate of having a memory target that
is unable to handle an unaligned access return sid::bus::misaligned,
and then have gdb back down to byte-by-byte access?


I thought about the possibility of fixing existing memory targets to handle misaligned access, either by implementing support, returning sid::bus::misaligned, or whatever else might be appropriate. However it occurred to me that this would require implementors of all future memory targets to be aware of potential GDB access of this type. This just seemed like something that will always work regardless of the implementation of the downstream memory.

Dave



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