Re: where to put defines for exception numbers as encoded in ARM CoreSight ETM traces
Simon Marchi via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
> 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 Hi, I don't know the specific details of this problem, but yes a file under arch/ sounds fine. These files contain definitions and helpers shared between gdb and gdbserver (yes, even though it's under the gdb directory). Puting them in arm.h or in a new file are both fine. Simon