tools: add disassembler helper for files .inc
commit9dac3b247b43d8b91821560b7c99fbd33d736419
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 13 Nov 2022 14:46:19 +0000 (13 15:46 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 15 Jan 2023 15:06:56 +0000 (15 15:06 +0000)
tree0339fc46a0187d1da490bdd8480f80a4211589c8
parent6d76a915214f06a4960710ae171434265409a705
tools: add disassembler helper for files .inc

We are moving the binary helpers in files .inc in contrib/loaders/
but we have no support to disassemble them for checking their
content, nor documentation to give any hint.

Add a simple script that uses objdump to directly disassemble a
file .inc
Use Cortex-M settings as default, but provide the flexibility to
reuse the script for any other target CPU.

Change-Id: I12e79580f2936b1622fb7231d9a2484a763ba72a
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7347
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
tools/disassemble_inc.sh [new file with mode: 0755]