Misaligned read/write of memory by GDB

Dave Brolley brolley@redhat.com
Mon Jun 28 21:18:00 GMT 2004


Hi,

Some sid components don't support misaligned reads/writes. The current 
cache components are the example which caused my particular problem. 
They punt on misaligned reads/writes, presumably so that they don't have 
to worry about accesses which cross cache line boundaries. This causes a 
problem when GDB attempts to read memory at unaligned addresses.

This patch to gdb::process_get_mem and gdb::process_set_mem forces any 
unaligned requests to use the existing byte-at-a-time method.

I've committed this patch. Let me know if there are any problems.

Dave
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sid-gdb-align.ChangeLog
URL: <http://sourceware.org/pipermail/sid/attachments/20040628/00200733/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sid-gdb.patch.txt
URL: <http://sourceware.org/pipermail/sid/attachments/20040628/00200733/attachment.txt>


More information about the Sid mailing list