Re: Misaligned read/write of memory by GDB
Dave Brolley <[email protected]>
| Newsgroups | gmane.comp.emulators.sid.devel |
|---|---|
| Message-ID | <[email protected]> |
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