gdb: make disassembler fprintf callback a static member function
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 13 Oct 2021 17:18:12 +0000 (18:18 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 22 Oct 2021 12:42:37 +0000 (13:42 +0100)
commit431be556b0bdd0733dedec2368d8d6a72cacea72
tree830c93f1f139e82ca3b830cbb8f7f001aa229a31
parentc628f812eba820e11ef83033b38becca1b148dc5
gdb: make disassembler fprintf callback a static member function

The disassemble_info structure has four callbacks, we have three of
them as static member functions within gdb_disassembler, the fourth is
just a global static function.

However, this fourth callback, is still only used from the
disassemble_info struct, so there's no real reason for its special
handling.

This commit makes fprintf_disasm a static method within
gdb_disassembler.

There should be no user visible changes after this commit.
gdb/disasm.c
gdb/disasm.h