hi Ajith here is an ugly and slow script that uses gdb to display the disassembled executed code. it's a kind of workaround but it works. Replace <trace and config folder> by your actual folder and <your elf file> by your elf file. take care also of changing the prefix of your Binutils if you use another variant. "
*trc_pkt_lister.exe -ss_dir ./<trace and config folder>/ >./pflow.txtsed -e "s:.*BRANCH_ADDRESS.*Addr=(0x[0-9A-Fa-f]*) ~.*:arm-none-eabi-gdb ./<your elf file> -batch -ex 'disas \1,+1':" ./pflow.txt | grep 'arm-none-eabi-gdb' >gdb_shell.shchmod u+x ./gdb_shell.sh./gdb_shell.sh |grep -v 'assembler' * *"*
Kind Regards Zied Guermazi
On Tue, Jul 28, 2020 at 9:23 PM Ajith Kurian Issac < ajith-kurian.issac@broadcom.com> wrote:
Hi Mike, We are trying to make open CSD working in our silicon sample. It is very much required for our debug as we cannot attach DS5 early enough. We were able to generate the trace.bin and generate the trace decode file(attached) I have few questions [image: image.png] The end portion of teh trace looks something like this.
I know PTM only takes the branch address. Is there any way we can make it more readable by filling the missing instructions between branches? or is this the final output.
Also can you check the attached file and see if anything else is missing in our setup?
Ajith K Issac Broadcom DCSG _______________________________________________ CoreSight mailing list CoreSight@lists.linaro.org https://lists.linaro.org/mailman/listinfo/coresight