where to put defines for exception numbers as encoded in ARM CoreSight ETM traces

Zied Guermazi zied.guermazi@trande.de
Fri Mar 19 00:23:09 GMT 2021


hi

in ETM traces (3.4 and above), exception encodings for non v7m 
processors (v7A, is done in a 4 bit field, defined in table 7.12 - 
(https://developer.arm.com/documentation/ihi0014/q/ETMv3-Signal-Protocol/Instruction-tracing/Branch-Packets?lang=en#BABIECBB 
<https://developer.arm.com/documentation/ihi0014/q/ETMv3-Signal-Protocol/Instruction-tracing/Branch-Packets?lang=en#BABIECBB>). 
This is not the same encoding as for exception vector.

This is needed for handling the implementation of breakpoints as an 
undefined instruction trap in GDB for ARMv7 while decoding ETM traces 
(branch tracing extension to use ARM CoreSight ETM)

what will be a good location for adding defines for this exception 
encoding? will it be fine to add them in arch/arm.h? shall I create a 
new header file for them? please advise.

Kind Regards

Zied Guermazi




More information about the Gdb mailing list