Andrew Burgess
36d94bd42b
libopcodes/ppc: add support for disassembler styling
...
This commit adds disassembler styling to the libopcodes ppc
disassembler. This conversion was pretty straight forward, I just
converted the fprintf_func calls to fprintf_styled_func calls and
added an appropriate style.
For testing the new styling I just assembled then disassembled the
source files in gas/testsuite/gas/ppc and manually checked that the
styling looked reasonable.
I think the only slightly weird case was how things like '4*cr1+eq'
are styled. As best I can tell, this construct, used for example in
this instruction:
crand 4*cr1+lt,4*cr1+gt,4*cr1+eq
is used to access a field of a control register. I initially tried
styling this whole construct as a register[1], but during review it
was suggested that instead different parts of the text should have
different styles. In this commit I propose styling '4*cr1+lt' like
this:
4 - immediate,
* - text,
cr1 - register
+ - text
lt - sub-mnemonic
If the user does not request styled output from objdump, then there
should be no change in the disassembler output after this commit.
[1] https://sourceware.org/pipermail/binutils/2022-July/121771.html
2022-07-25 14:13:34 +01:00
..
2022-07-08 11:19:44 +01:00
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-06 16:22:54 +00:00
2022-06-29 12:03:22 +01:00
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-06-29 12:03:22 +01:00
2022-01-02 12:04:28 +10:30
2022-01-06 16:22:54 +00:00
2022-07-09 20:10:47 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-07-20 12:47:38 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-07-04 11:25:42 +01:00
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-12 11:49:45 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-07-21 14:56:18 -05:00
2021-01-01 14:36:35 +10:30
2020-01-01 18:12:08 +10:30
2021-01-01 10:31:02 +10:30
2022-01-01 12:49:07 -05:00
2022-07-09 20:10:47 +09:30
2022-06-27 11:11:46 +02:00
2022-01-02 12:04:28 +10:30
2022-05-10 11:21:37 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-10 11:21:37 +09:30
2022-01-02 12:04:28 +10:30
2022-05-27 22:08:59 +09:30
2022-05-27 22:08:59 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-04-04 13:10:52 +01:00
2022-07-25 14:13:34 +01:00
2022-06-27 11:11:46 +02:00
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2021-03-10 08:20:29 +01:00
2022-01-14 10:56:06 +01:00
2022-01-14 10:56:06 +01:00
2021-03-10 08:20:29 +01:00
2022-01-14 10:54:55 +01:00
2022-01-14 10:56:06 +01:00
2022-06-15 10:02:29 +02:00
2022-07-18 11:19:58 +02:00
2022-07-04 08:32:50 +02:00
2022-01-02 12:04:28 +10:30
2022-07-18 11:19:58 +02:00
2022-07-21 12:32:25 +02:00
2022-01-02 12:04:28 +10:30
2022-07-21 12:32:25 +02:00
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-27 22:08:59 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-03-20 09:37:12 +08:00
2022-01-02 12:04:28 +10:30
2022-07-25 09:59:08 +08:00
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-06-27 11:11:46 +02:00
2022-07-09 20:10:47 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-02-14 17:12:41 +00:00
2022-02-14 17:12:41 +00:00
2022-03-06 18:30:58 +00:00
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-03-06 18:30:58 +00:00
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-07-25 14:13:34 +01:00
2022-07-21 14:53:52 -05:00
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-07-07 12:06:02 +08:00
2022-07-07 16:23:54 +08:00
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-10 11:21:37 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-10 11:21:37 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-07-08 13:14:33 +01:00
2022-04-07 07:54:29 +02:00
2022-05-05 07:57:13 +02:00
2022-05-05 07:57:13 +02:00
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-10 11:21:37 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-05-11 09:49:20 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-05-10 11:21:37 +09:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30
2022-01-02 12:04:28 +10:30