diff options
author | Shahab Vahedi <shahab@synopsys.com> | 2021-05-05 23:07:38 +0200 |
---|---|---|
committer | Shahab Vahedi <shahab@synopsys.com> | 2021-06-05 11:43:07 +0200 |
commit | ae61ef2c5615a06f829468b57249a17762a44220 (patch) | |
tree | 6fc2e0e1ed9f3938530d4107760861352577e29b /gdb/arc-tdep.c | |
parent | 30569fbb57f1e4fe1ffed6b94882d967f27cbb66 (diff) | |
download | gdb-ae61ef2c5615a06f829468b57249a17762a44220.zip gdb-ae61ef2c5615a06f829468b57249a17762a44220.tar.gz gdb-ae61ef2c5615a06f829468b57249a17762a44220.tar.bz2 |
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.
Diffstat (limited to 'gdb/arc-tdep.c')
-rw-r--r-- | gdb/arc-tdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index ece8025..3afbf42 100644 --- a/gdb/arc-tdep.c +++ b/gdb/arc-tdep.c @@ -2434,11 +2434,13 @@ arc_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) arc_disassembler_options = NULL; break; } - set_gdbarch_disassembler_options (gdbarch, - &arc_disassembler_options); } } + set_gdbarch_disassembler_options (gdbarch, &arc_disassembler_options); + set_gdbarch_valid_disassembler_options (gdbarch, + disassembler_options_arc ()); + tdesc_use_registers (gdbarch, tdesc, std::move (tdesc_data)); return gdbarch; |