diff options
author | Nelson Chu <nelson.chu@sifive.com> | 2021-01-13 16:52:14 +0800 |
---|---|---|
committer | Nelson Chu <nelson.chu@sifive.com> | 2021-01-15 17:33:59 +0800 |
commit | b800637e7631482d1bece2463b7c89e2d873d9d0 (patch) | |
tree | 05591e95c8750d698d4fdc9cb55eb5b01f89a1e8 /opcodes | |
parent | dcd709e056c6f4b7ffff759b9b6ecab1177083ed (diff) | |
download | gdb-b800637e7631482d1bece2463b7c89e2d873d9d0.zip gdb-b800637e7631482d1bece2463b7c89e2d873d9d0.tar.gz gdb-b800637e7631482d1bece2463b7c89e2d873d9d0.tar.bz2 |
RISC-V: Error and warning messages tidy.
Error and warning messages usually starting with lower case letter,
and without the period at the end. Besides, add the prefixed "internel:"
at the beginning of the messages when they are caused internally.
Also fix indents and typos.
bfd/
* elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
gas/
* config/tc-riscv.c: Error and warning messages tidy.
* testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
* testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
* testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
* testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
* testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
* testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
* testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
ld/
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
opcodes/
* riscv-dis.c (parse_riscv_dis_option): Fix typos of message.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/riscv-dis.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 6a449ff..a229e1e 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,9 @@ 2021-01-15 Nelson Chu <nelson.chu@sifive.com> + * riscv-dis.c (parse_riscv_dis_option): Fix typos of message. + +2021-01-15 Nelson Chu <nelson.chu@sifive.com> + * riscv-dis.c: Comments tidy and improvement. * riscv-opc.c: Likewise. diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index d6d66e4..b5883c3 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -101,7 +101,7 @@ parse_riscv_dis_option (const char *option) { enum riscv_priv_spec_class priv_spec = PRIV_SPEC_CLASS_NONE; if (!riscv_get_priv_spec_class (value, &priv_spec)) - opcodes_error_handler (_("unknown privilege spec set by %s=%s"), + opcodes_error_handler (_("unknown privileged spec set by %s=%s"), option, value); else if (default_priv_spec == PRIV_SPEC_CLASS_NONE) default_priv_spec = priv_spec; |