Clarify the address and pointer conversions on AVR.
authorPierre Langlois <pierre.langlois@embecosm.com>
Fri, 25 Jul 2014 13:45:03 +0000 (14:45 +0100)
committerPierre Langlois <pierre.langlois@embecosm.com>
Fri, 25 Jul 2014 14:03:29 +0000 (15:03 +0100)
commit7d0d9d2bee341b1e88c559c476f15fc24b6de346
treef6781f9824890f6f6ccad55a60a2b8e257ca6ee8
parentc3f814a14336b9d395f3abad739592929e2faaa0
Clarify the address and pointer conversions on AVR.

This patch adds additional comments about the conversion of addresses to
pointers and vice-versa on AVR.

Special conversion needs to be done when dealing with an address in the
flash address space, where both code and read-only data can be stored.
Code and data pointers to flash are not addressed the same way:

A code pointer is 16 bit addressed.  A data pointer is 8 bit addressed,
even if the data is in flash.

2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>

* avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
comments.
(avr_pointer_to_address): Likewise.
gdb/ChangeLog
gdb/avr-tdep.c
This page took 0.027766 seconds and 4 git commands to generate.