Add back gdb_pretty_print_insn
[binutils-gdb.git] / gdb / ChangeLog
index 327b327fdd1c51b8c07589973f6a3b5e42189932..723f06b21de0002e90f36236599bd360a2575004 100644 (file)
@@ -1,3 +1,73 @@
+2017-02-02  Pedro Alves  <palves@redhat.com>
+
+       * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
+       (gdb_pretty_print_insn): ... this.  Now a free function.  Add back
+       a 'gdbarch' parameter.  Allocate a mem_fileopen stream here.
+       Adjust to call gdb_print_insn instead of
+       gdb_disassembler::print_insn.
+       (dump_insns, do_mixed_source_and_assembly_deprecated)
+       (do_mixed_source_and_assembly, do_assembly_only): Add back a
+       'gdbarch' parameter.  Remove gdb_disassembler parameter.
+       (gdb_disassembly): Don't allocate a gdb_disassembler here.
+       * disasm.h (gdb_disassembler::pretty_print_insn): Delete
+       declaration.
+       (gdb_pretty_print_insn): Re-add declaration.
+       * record-btrace.c (btrace_insn_history): Don't allocate a
+       gdb_disassembler here.  Adjust to call gdb_pretty_print_insn.
+
+2017-02-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * disasm.h (gdb_disassembly): Remove file_string parameter.
+       * disasm.c (gdb_disassembly): Likewise.
+       * cli/cli-cmds.c (print_disassembly): Adapt.
+       * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
+       * stack.c (do_gdb_disassembly): Likewise.
+
+2017-02-01  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
+       DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
+       targets.  And if the implicit value is longer than needed, extract
+       the first bytes instead of the "least significant" ones.
+
+2017-02-01  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * btrace.c (btrace_enable): Do not call btrace_add_pc for
+       BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
+       (btrace_fetch): Assert can_access_registers_ptid.
+       * record-btrace.c (require_btrace_thread, record_btrace_info): Call
+       validate_registers_access.
+
+2017-02-01  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * gdbthread.h (can_access_registers_ptid): New.
+       * thread.c (can_access_registers_ptid): New.
+
+2017-02-01  Pedro Alves  <palves@redhat.com>
+
+       * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
+
+2017-01-31  Pedro Alves  <palves@redhat.com>
+
+       * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
+       Fix typos.
+
+2017-01-31  Pedro Alves  <palves@redhat.com>
+
+       * stack.c (print_frame_args): Remove local mem_fileopen stream,
+       not used.
+
+2017-01-31  Pedro Alves  <palves@redhat.com>
+
+       * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
+
+2017-01-31  Pedro Alves  <palves@redhat.com>
+
+       * common/scoped_restore.h
+       (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
+       change the value's parameter type to T2.
+       (make_scoped_restore): Likewise.
+
 2017-01-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
            Richard Henderson  <rth@redhat.com>