arc: Add 'set disassembler-options' support
authorShahab Vahedi <shahab@synopsys.com>
Wed, 5 May 2021 21:07:38 +0000 (23:07 +0200)
committerShahab Vahedi <shahab@synopsys.com>
Sat, 5 Jun 2021 09:43:07 +0000 (11:43 +0200)
commitae61ef2c5615a06f829468b57249a17762a44220
tree6fc2e0e1ed9f3938530d4107760861352577e29b
parent30569fbb57f1e4fe1ffed6b94882d967f27cbb66
arc: Add 'set disassembler-options' support

Implement ARC target support for passing options to the disassembler
through the command interface. e.g.:

gdb> set disassembler-options cpu=hs38_linux ...

gdb/ChangeLog:

* NEWS: Document 'set disassembler-options' support for the ARC
target.
* arc-tdep.c (arc_gdbarch_init): Set
'gdbarch_valid_disassembler_options'.

gdb/doc/ChangeLog:

* gdb.texinfo (Source and Machine Code): Document 'set
disassembler-options' support for the ARC target.

gdb/testsuite/ChangeLog:

* gdb.arch/arc-disassembler-options.exp: New test.
* gdb.arch/arc-disassembler-options.s: New test source.
gdb/ChangeLog
gdb/NEWS
gdb/arc-tdep.c
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/arc-disassembler-options.exp [new file with mode: 0644]
gdb/testsuite/gdb.arch/arc-disassembler-options.s [new file with mode: 0644]