diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-10-13 18:18:12 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-10-22 13:42:37 +0100 |
commit | 431be556b0bdd0733dedec2368d8d6a72cacea72 (patch) | |
tree | 830c93f1f139e82ca3b830cbb8f7f001aa229a31 /gdb/disasm.h | |
parent | c628f812eba820e11ef83033b38becca1b148dc5 (diff) | |
download | binutils-431be556b0bdd0733dedec2368d8d6a72cacea72.zip binutils-431be556b0bdd0733dedec2368d8d6a72cacea72.tar.gz binutils-431be556b0bdd0733dedec2368d8d6a72cacea72.tar.bz2 |
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.
Diffstat (limited to 'gdb/disasm.h')
-rw-r--r-- | gdb/disasm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/disasm.h b/gdb/disasm.h index d3642d8..f6de33e 100644 --- a/gdb/disasm.h +++ b/gdb/disasm.h @@ -82,6 +82,9 @@ private: non-memory error. */ gdb::optional<CORE_ADDR> m_err_memaddr; + static int dis_asm_fprintf (void *stream, const char *format, ...) + ATTRIBUTE_PRINTF(2,3); + static int dis_asm_read_memory (bfd_vma memaddr, gdb_byte *myaddr, unsigned int len, struct disassemble_info *info); |