On 02/22/2011 04:09 AM, Ulrich Weigand wrote: >> > Yes. If I understand you correctly, modinsn is a 'unsigned long' array. >> > * ARM instruction occupies one slot with flag `ARM', >> > * Thumb 16 bit instruction occupies one slot with flag `Thumb' >> > * Thumb 32-bit instruction occupies *two* slots with flag `Thumb', >> > That works, I think. > Yes, that's what I suggested. > This new patch implements what we discussed above. There is a minor difference on rule #3. "Thumb 32-bit instruction occupies *two* slots with flag `Thumb-2'", because we have to choose breakpoint type (thumb breakpoint or thumb-2 breakpoint) according to this flag. -- Yao (齐尧)