Reuse buffers across gdb_pretty_print_insn calls
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index e3bca388578491351ae123662e378b2fd10446fe..38a3beb0594a11fc163361aea7977beb71649e13 100644 (file)
@@ -1,3 +1,16 @@
+2017-02-02  Pedro Alves  <palves@redhat.com>
+
+       * disasm.c (gdb_pretty_print_insn): Rename to ...
+       (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
+       Remove gdbarch parameter.  Adapt to clear the object's buffers
+       instead of allocating new buffers, and to print using the object's
+       gdb_disassembler instead of calling gdb_print_insn.
+       (dump_insns): Use gdb_pretty_print_disassembler.
+       * disasm.h (gdb_pretty_print_insn): Delete declaration.
+       (gdb_pretty_print_disassembler): New class.
+       * record-btrace.c (btrace_insn_history): Use
+       gdb_pretty_print_disassembler.
+
 2017-02-02  Pedro Alves  <palves@redhat.com>
 
        * ada-lang.c (type_as_string): Use string_file.
This page took 0.023766 seconds and 4 git commands to generate.