diff options
author | Ulrich Drepper <drepper@gmail.com> | 2019-09-06 23:49:54 +0200 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2019-09-06 23:49:54 +0200 |
commit | fcab4f6587528db731da3676decb3bedcf44c08d (patch) | |
tree | 1cb27502bfef12cdaeb9f2fbfebf8eb01218f84e /lib | |
parent | c950e8a995dfee0b6094c9854581b103754c6bb6 (diff) | |
download | elfutils-fcab4f6587528db731da3676decb3bedcf44c08d.tar.gz |
Implement RISC-V disassembler
Diffstat (limited to 'lib')
-rw-r--r-- | lib/color.c | 14 | ||||
-rw-r--r-- | lib/color.h | 2 |
2 files changed, 13 insertions, 3 deletions
diff --git a/lib/color.c b/lib/color.c index 20b9698a..2cb41eba 100644 --- a/lib/color.c +++ b/lib/color.c @@ -72,6 +72,8 @@ char *color_operand = NULL; char *color_operand1 = ""; char *color_operand2 = ""; char *color_operand3 = ""; +char *color_operand4 = ""; +char *color_operand5 = ""; char *color_label = ""; char *color_undef = ""; char *color_undef_tls = ""; @@ -167,8 +169,10 @@ valid arguments are:\n\ E (m, mnemonic), E (o, operand), E (o1, operand1), - E (o1, operand2), - E (o1, operand3), + E (o2, operand2), + E (o3, operand3), + E (o4, operand4), + E (o5, operand5), E (l, label), E (u, undef), E (ut, undef_tls), @@ -205,6 +209,10 @@ valid arguments are:\n\ color_operand2 = color_operand; if (color_operand3[0] == '\0') color_operand3 = color_operand; + if (color_operand4[0] == '\0') + color_operand4 = color_operand; + if (color_operand5[0] == '\0') + color_operand5 = color_operand; } } #if 0 @@ -216,7 +224,7 @@ valid arguments are:\n\ color_mnemonic = xstrdup ("\e[38;5;202;1m"); color_operand1 = xstrdup ("\e[38;5;220m"); color_operand2 = xstrdup ("\e[38;5;48m"); - color_operand3 = xstrdup ("\e[38;5;112m"); + color_operand = xstrdup ("\e[38;5;112m"); color_label = xstrdup ("\e[38;5;21m"); } #endif diff --git a/lib/color.h b/lib/color.h index 3872eb0a..cb241435 100644 --- a/lib/color.h +++ b/lib/color.h @@ -50,6 +50,8 @@ extern char *color_mnemonic; extern char *color_operand1; extern char *color_operand2; extern char *color_operand3; +extern char *color_operand4; +extern char *color_operand5; extern char *color_label; extern char *color_undef; extern char *color_undef_tls; |