aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJens Remus <jremus@linux.ibm.com>2023-12-20 11:34:15 +0100
committerAndreas Krebbel <krebbel@linux.ibm.com>2023-12-20 11:50:32 +0100
commitf96fe7f454bdd077abec2acc415f546bb5646189 (patch)
treeee9abf7a8ffe9b9d36236bab978e8a9da980062e /binutils
parenta3fa108623c51846ff019fbcba9f483897d6f5f7 (diff)
downloadgdb-f96fe7f454bdd077abec2acc415f546bb5646189.zip
gdb-f96fe7f454bdd077abec2acc415f546bb5646189.tar.gz
gdb-f96fe7f454bdd077abec2acc415f546bb5646189.tar.bz2
s390: Optionally print instruction description in disassembly
Print instruction description as comment in disassembly with s390 architecture specific option "insndesc": - For objdump it can be enabled with option "-M insndesc" - In gdb it can be enabled with "set disassembler-options insndesc" Since comments are not column aligned the output can enhanced for readability by postprocessing using a filter such as "expand": ... | expand -t 8,16,24,32,40,80 Or when using in combination with objdump option --visualize-jumps: ... | expand | sed -e 's/ *#/\t#/' | expand -t 1,80 Note that the instruction descriptions add about 128 KB to s390-opc.o: s390-opc.o without instruction descriptions: 216368 bytes s390-opc.o with instruction descriptions : 348432 bytes binutils/ * NEWS: Mention new s390-specific disassembler option "insndesc". include/ * opcode/s390.h (struct s390_opcode): Add field to hold instruction description. opcodes/ * s390-mkopc.c: Copy instruction description from s390-opc.txt into generated operation code table s390-opc.tab. * s390-opc.c (s390_opformats): Provide NULL as description in .insn pseudo-mnemonics opcode table. * s390-dis.c: Add s390-specific disassembler option "insndesc" and optionally print the instruction description as comment in the disassembly when it is specified. gas/ * testsuite/gas/s390/s390.exp: Add new test disassembly test case "zarch-insndesc". * testsuite/gas/s390/zarch-insndesc.s: New test case for s390- specific disassembler option "insndesc". * testsuite/gas/s390/zarch-insndesc.d: Likewise. Signed-off-by: Jens Remus <jremus@linux.ibm.com> Reviewed-by: Andreas Krebbel <krebbel@linux.ibm.com>
Diffstat (limited to 'binutils')
-rw-r--r--binutils/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/NEWS b/binutils/NEWS
index 73df705..35b84e6 100644
--- a/binutils/NEWS
+++ b/binutils/NEWS
@@ -19,6 +19,11 @@
* objdump --visualize-jumps is now supported on s390 architecture.
+* The s390 disassembly now optionally includes the instruction description as
+ comment with the s390-specific disassembler option "insndesc":
+ - For objdump it can be enabled with "objdump -M insndesc ...".
+ - In gdb it can be enabled with "set disassembler-options insndesc".
+
Changes in 2.41:
* The MIPS port now supports the Sony Interactive Entertainment Allegrex