This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Targets with non-byte-addressable memory
- From: Vladimir Prus <ghost at cs dot msu dot su>
- To: gdb at sources dot redhat dot com
- Date: Fri, 23 Sep 2005 12:55:47 +0400
- Subject: Targets with non-byte-addressable memory
Hello!
Does anybody has experience of porting gdb to a target where memory is not
byte-addressable. That is, if you read 0x80000007 you get 4 bytes and if
you read 0x80000008 you get another 4 bytes.
The source has TARGET_CHAR_BIT macro, but no target under "config" makes use
of them which makes me suspect that setting it won't do any good. In fact,
after setting it to 32, I get compile error in ax-gdb.c:
case 8 / TARGET_CHAR_BIT:
ax_simple (ax, aop_ref8);
break;
case 16 / TARGET_CHAR_BIT:
ax_simple (ax, aop_ref16);
break;
case 32 / TARGET_CHAR_BIT:
ax_simple (ax, aop_ref32);
break;
case 64 / TARGET_CHAR_BIT:
ax_simple (ax, aop_ref64);
as both 8/32 and 16/32 give 0, and I get duplicate case label.
So, any easy way for me?
- Volodya