1 2017-04-05 Pedro Alves <palves@redhat.com>
3 * macroexp.c (macro_buffer::shared): Now a bool.
5 (init_shared_buffer): Constify 'addr' parameter.
6 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9 2017-04-05 Pedro Alves <palves@redhat.com>
11 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
12 * disasm.c (set_disassembler_options): Constify local.
13 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
15 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
18 * tracefile.c (tsave_command): Fix argument parsing for '-r'
21 2017-04-05 Yao Qi <yao.qi@linaro.org>
23 * frame.c (frame_unwind_register_unsigned): Call
24 frame_unwind_register_value.
26 2017-04-05 Yao Qi <yao.qi@linaro.org>
28 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
29 Use gdb_test_multiple, and don't match anchor.
31 2017-04-05 Pedro Alves <palves@redhat.com>
33 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
34 (Write After Approval): Remove Simon Marchi.
36 2017-04-05 Pedro Alves <palves@redhat.com>
38 * common/gdb_optional.h (optional::optional): Make constexpr and
41 2017-04-04 John Baldwin <jhb@FreeBSD.org>
43 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
44 (amd64fbsd_jmp_buf_reg_offset): Remove.
45 (amd64fbsd_supply_uthread): Remove function.
46 (amd64fbsd_collect_uthread): Remove function.
47 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
48 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
49 (x86_64-*-freebsd*): Remove bsd-uthread.o.
50 (fbsd-nat.c): Update comment.
51 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
52 (i386fbsd_jmp_buf_reg_offset): Remove.
53 (i386fbsd_supply_uthread): Remove function.
54 (i386fbsd_collect_uthread): Remove function.
55 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
57 2017-04-04 John Baldwin <jhb@FreeBSD.org>
59 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
60 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
61 * NEWS: Mention that support for FreeBSD/alpha was removed.
62 * alpha-fbsd-tdep.c: Delete file.
63 * config/alpha/fbsd.mh: Delete file.
64 * configure.host: Delete alpha*-*-freebsd* and
65 alpha*-*-kfreebsd*-gnu.
66 * configure.tgt: Delete alpha*-*-freebsd* and
67 alpha*-*-kfreebsd*-gnu.
69 2017-04-04 John Baldwin <jhb@FreeBSD.org>
71 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
72 amd64bsd_store_inferior_registers): Use ptid from regcache.
74 2017-04-04 Pedro Alves <palves@redhat.com>
76 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
77 data fields, make them private and add "m_" prefixes.
78 (lnp_state_machine::lnp_state_machine): New ctor.
79 (record_line, check_line_address, handle_set_discriminator)
80 (handle_set_address, handle_advance_pc, handle_special_opcode)
81 (handle_advance_line, handle_set_file, handle_negate_stmt)
82 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
83 (end_sequence, advance_line): New methods.
84 (m_gdbarch, m_record_lines_p): New fields.
85 (lnp_reader_state): Delete.
86 (dwarf_record_line): Rename to ...
87 (lnp_state_machine::record_line): ... adjust.
88 (init_lnp_state_machine): Delete.
89 (lnp_state_machine::lnp_state_machine): New.
90 (check_line_address): Rename to ...
91 (lnp_state_machine::check_line_address): This.
92 (dwarf_decode_lines_1): Remove reference to "reader_state".
93 Adjust lnp_state_machine having a non-default ctor. Use bool.
94 State machine internal state manipulation moved to
95 lnp_state_machine methods.
97 2017-04-04 Pedro Alves <palves@redhat.com>
99 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
100 unittests/offset-type-selftests.c.
101 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
102 * common/offset-type.h: New file.
103 * common/preprocessor.h: New file.
104 * common/traits.h: New file.
105 * common/valid-expr.h: New file.
106 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
107 sect_offset and cu_offset strong typedefs throughout.
108 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
110 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
111 sect_offset and cu_offset strong typedefs throughout.
112 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
114 * gdbtypes.h: Include "common/offset-type.h".
115 (cu_offset): Now an offset type (strong typedef) instead of a
117 (sect_offset): Likewise.
118 (union call_site_parameter_u): Rename "param_offset" field to
120 * unittests/offset-type-selftests.c: New file.
122 2017-04-04 Pedro Alves <palves@redhat.com>
124 * common/underlying.h: New file.
125 * dwarf2read.c: Include "common/gdb_optional.h" and
126 "common/underlying.h".
127 (dir_index, file_name_index): New types.
128 (file_entry): Use them.
129 (file_entry::include): Use to_underlying.
130 (line_header::add_file_name): Use dir_index.
131 (read_formatted_entries): Use gdb::optional. Read form before
132 writting to file_entry.
133 (dwarf_decode_line_header): Use dir_index.
134 (lnp_state_machine::current_file): Use to_underlying.
135 (lnp_state_machine::file): Change type to file_name_index.
136 (dwarf_record_line): Use to_underlying.
137 (init_lnp_state_machine): Use file_name_index.
138 (dwarf_decode_lines_1): Use dir_index and file_name_index.
140 2017-04-04 Pedro Alves <palves@redhat.com>
142 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
143 operator bool, has_value and get methods.
145 2017-04-04 Pedro Alves <palves@redhat.com>
147 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
149 (line_header): Initialize all data fields. Change type of
150 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
151 Change type of include_dirs to std::vector<const char *>. Remove
152 num_include_dirs, include_dirs_size. Change type of file_names to
153 std::vector<file_entry>. Remove num_file_names, file_names_size.
154 (line_header::line_header): New.
155 (line_header::add_include_dir, line_header::add_file_name): New
157 (line_header::include_dir_at): Remove NULL check.
158 (line_header::file_name_at): Add const overload.
159 (line_header_up): New unique_ptr typedef.
160 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
161 std::vector. Remove free_line_header call.
162 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
163 free_line_header call.
164 (free_cu_line_header): Delete.
165 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
166 (setup_type_unit_groups): Use line_header_up instead of cleanups.
167 Adjust to use std::vector.
168 (free_line_header): Delete.
169 (free_line_header_voidp): Use delete.
170 (add_include_dir): Replace with ...
171 (line_header::add_include_dir): ... this method. Use std::vector.
172 (add_file_name): Replace with ...
173 (line_header::add_file_name): ... this method. Use std::vector.
174 (add_include_dir_stub): Delete.
175 (read_formatted_entries): Remove memset.
176 (dwarf_decode_line_header): Return a line_header_up instead of a
177 raw pointer. Remove cleanup handling. Pass lambdas to
178 read_formatted_entries. Adjust to use line_header methods.
179 (dwarf_decode_lines_1): Adjust to use line_header methods.
180 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
183 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
185 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
186 instead of struct ptid.
188 2017-05-04 Alan Hayward <alan.hayward@arm.com>
190 * frame.c (get_frame_register_bytes): Unwind using value.
191 (put_frame_register_bytes): Likewise.
193 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
195 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
197 2017-03-29 Yao Qi <yao.qi@linaro.org>
199 * gdbthread.h (struct thread_info): Declare constructor and
200 destructor. Add some in-class member initializers.
201 * thread.c (free_thread): Remove.
202 (init_thread_list): Call delete instead of free_thread.
203 (new_thread): Call thread_info constructor.
204 (thread_info::thread_info): New function.
205 (thread_info::~thread_info): New function.
206 (delete_thread_1): Call delete instead of free_thread.
207 (make_cleanup_restore_current_thread): Move tp and frame to
210 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
212 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
213 (arc_skip_prologue): Likewise.
214 (arc_make_frame_cache): Likewise.
215 (arc_pv_get_operand): New function.
216 (arc_is_in_prologue): Likewise.
217 (arc_analyze_prologue): Likewise.
218 (arc_print_frame_cache): Likewise.
219 (MAX_PROLOGUE_LENGTH): New constant.
221 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
223 * configure.tgt: Add arc-insn.o.
224 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
225 (dump_arc_instruction_command): New function.
226 (arc_fprintf_disasm): Likewise.
227 (arc_disassemble_info): Likewise.
228 (arc_insn_get_operand_value): Likewise.
229 (arc_insn_get_operand_value_signed): Likewise.
230 (arc_insn_get_memory_base_reg): Likewise.
231 (arc_insn_get_memory_offset): Likewise.
232 (arc_insn_get_branch_target): Likewise.
233 (arc_insn_dump): Likewise.
234 (arc_insn_get_linear_next_pc): Likewise.
235 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
236 (arc_disassemble_info): Likewise.
237 (arc_insn_get_branch_target): Likewise.
238 (arc_insn_get_linear_next_pc): Likewise.
239 * NEWS: Mention new "maint print arc arc-instruction".
241 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
243 * arc-tdep (maintenance_print_arc_list): New variable.
244 (maintenance_print_arc_command): New function.
246 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
248 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
249 Add "limm" and "reserved".
250 (arc_cannot_fetch_register, arc_cannot_store_register): Add
251 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
252 * arc-tdep.h (arc_regnum): Likewise.
254 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
256 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
257 for THREADPTR register.
258 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
260 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
261 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
262 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
264 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
266 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
267 registers above gdbarch_num_regs (gdbarch) as privileged in
270 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
272 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
273 for a single specified register or for all registers in
274 a0_base..a0_base + C0_NREGS range.
275 (supply_gregset_reg): Call regcache_raw_supply for a single
276 specified register or for all registers in a0_base..a0_base +
279 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
281 * arch/xtensa.h (C0_NREGS): Add definition.
282 * xtensa-tdep.c (C0_NREGS): Remove definition.
284 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
286 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
287 Drop xtensa_default_isa initialization.
288 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
290 2017-03-27 Pedro Alves <palves@redhat.com>
292 * dwarf2read.c (file_entry) <dir_index>: Add comment.
293 (file_entry::include_dir): New method.
294 (line_header::include_dir_at, line_header::file_name_at): New
296 (setup_type_unit_groups, setup_type_unit_groups)
297 (psymtab_include_file_name): Simplify using the new methods.
298 (lnp_state_machine) <the_line_header>: New field.
300 (lnp_state_machine::current_file): New method.
301 (dwarf_record_line): Simplify using the new methods.
302 (init_lnp_state_machine): Initialize the "the_line_header" field.
303 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
304 Simplify using the new methods.
306 2017-03-27 Pedro Alves <palves@redhat.com>
308 * cp-name-parser.y (make_empty): Delete.
309 (demangler_special, nested_name, ptr_operator, array_indicator)
310 (direct_declarator, declarator_1): Use fill_comp instead of
313 2017-03-27 Pedro Alves <palves@redhat.com>
315 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
317 * solib-target.c (library_list_start_list): Print "string" not
319 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
322 2017-03-27 Pedro Alves <palves@redhat.com>
324 * dwarf2read.c (struct file_and_directory): New.
325 (dwarf2_get_dwz_file): Adjust to use std::string.
326 (dw2_get_file_names_reader): Adjust to use file_and_directory.
327 (find_file_and_directory): Adjust to return a file_and_directory
329 (read_file_scope): Adjust to use file_and_directory. Remove
330 make_cleanup/do_cleanups calls.
331 (open_and_init_dwp_file): Adjust to use std::string. Remove
332 make_cleanup/do_cleanups calls.
333 * python/python.c (do_start_initialization): Adjust to ldirname
334 returning a std::string.
335 * utils.c (ldirname): Now returns a std::string.
336 * utils.h (ldirname): Change return type to std::string.
337 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
338 returning a std::string.
339 * xml-tdesc.c (file_read_description_xml): Likewise.
341 2017-03-24 Alan Hayward <alan.hayward@arm.com>
343 * regcache.c (regcache_debug_print_register): New function.
344 * regcache.h (regcache_debug_print_register): New declaration.
345 * target.c (debug_print_register): Remove.
346 (target_fetch_registers): Call regcache_debug_print_register.
347 (target_store_registers): Likewise.
349 2017-03-24 Pádraig Brady <pbrady@fb.com>
351 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
352 reference beyond the 'lh->include_dirs' array before accessing to
354 (psymtab_include_file_name): Likewise.
355 (dwarf_decode_lines_1): Likewise.
356 (dwarf_decode_lines): Likewise.
357 (file_file_name): Likewise.
359 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
361 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
363 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
364 ps_lsetfpregs): Likewise.
365 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
366 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
367 ps_lsetfpregs): Likewise.
368 * target.c (target_fetch_registers, target_store_registers):
371 2017-03-23 Alan Hayward <alan.hayward@arm.com>
373 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
375 2017-03-23 Yao Qi <yao.qi@linaro.org>
377 * aarch64-tdep.c (aarch64_process_record_test): Declare.
378 (_initialize_aarch64_tdep): Register it.
379 (aarch64_record_load_store): Handle PRFM instruction.
380 (aarch64_process_record_test): New function.
382 2017-03-23 Yao Qi <yao.qi@linaro.org>
384 * aarch64-tdep.c (aarch64_record_load_store): Fix code
387 2017-03-23 Yao Qi <yao.qi@linaro.org>
389 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
391 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
393 python/python.c (do_start_initialization): Fix memory leak.
395 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
397 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
398 using get_ptrace_pid.
399 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
401 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
402 inferior_ptid instead of pid.
404 2017-03-22 Yao Qi <yao.qi@linaro.org>
406 * aarch64-tdep.c: Wrap locally used classes in anonymous
408 * arm-tdep.c: Likewise.
409 * linespec.c: Likewise.
410 * ui-out.c: Likewise.
412 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
415 * python/lib/gdb/printer/bound_registers.py: Import sys.
417 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
419 * windows-nat.c (do_windows_fetch_inferior_registers): Add
420 windows_thread_info parameter and use it instead of
422 (windows_fetch_inferior_registers): Don't set current_thread,
423 pass the thread to do_windows_fetch_inferior_registers. Use
424 ptid from regcache instead of inferior_ptid.
425 (do_windows_store_inferior_registers): Add windows_thread_info
426 parameter and use it instead of current_thread.
427 (windows_store_inferior_registers): Don't set current_thread,
428 pass the thread to do_windows_store_inferior_registers. Use
429 ptid from regcache instead of inferior_ptid.
431 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
433 * ser-mingw.c (ser_windows_raw): Remove reference to
434 struct serial::current_timeout.
436 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
439 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
440 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
441 (sparc64_fsr_type): Fix %fsr decoding.
443 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
445 * python/py-record-btrace.c (btpy_insn_data): Change return type
448 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
450 * spu-linux-nat.c (spu_fetch_inferior_registers,
451 spu_store_inferior_registers): Use ptid from regcache, set and
452 restore inferior_ptid.
453 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
456 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
458 * i386-linux-nat.c (fetch_register, store_register,
459 i386_linux_fetch_inferior_registers,
460 i386_linux_store_inferior_registers): Use ptid from regcache.
461 * ia64-linux-nat.c (ia64_linux_fetch_register,
462 ia64_linux_store_register): Likewise.
463 * inf-ptrace.c (inf_ptrace_fetch_register,
464 inf_ptrace_store_register): Likewise.
465 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
466 m32r_linux_store_inferior_registers): Likewise.
467 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
468 m68kbsd_store_inferior_registers): Likewise.
469 * m68k-linux-nat.c (fetch_register, store_register,
470 m68k_linux_fetch_inferior_registers,
471 m68k_linux_store_inferior_registers): Likewise.
472 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
473 m88kbsd_store_inferior_registers): Likewise.
474 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
475 mips_fbsd_store_inferior_registers): Likewise.
476 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
477 mips64_linux_regsets_store_registers): Likewise.
478 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
479 mipsnbsd_store_inferior_registers): Likewise.
480 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
481 mips64obsd_store_inferior_registers): Likewise.
482 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
484 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
485 ppcfbsd_store_inferior_registers): Likewise.
486 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
487 ppc_linux_store_inferior_registers): Likewise.
488 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
489 ppcnbsd_store_inferior_registers): Likewise.
490 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
491 ppcobsd_store_registers): Likewise.
492 * procfs.c (procfs_fetch_registers, procfs_store_registers):
494 * ravenscar-thread.c (ravenscar_fetch_registers,
495 ravenscar_store_registers, ravenscar_prepare_to_store):
497 * record-btrace.c (record_btrace_fetch_registers,
498 record_btrace_store_registers, record_btrace_prepare_to_store):
500 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
501 Lookup inferior using ptid from regcache, instead of
503 * remote.c (remote_fetch_registers, remote_store_registers): Use
505 * rs6000-nat.c (fetch_register, store_register): Likewise.
506 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
507 s390_linux_store_inferior_registers): Likewise.
508 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
509 shnbsd_store_inferior_registers): Likewise.
510 * sol-thread.c (sol_thread_fetch_registers,
511 sol_thread_store_registers): Likewise.
512 * sparc-nat.c (sparc_fetch_inferior_registers,
513 sparc_store_inferior_registers): Likewise.
514 * tilegx-linux-nat.c (fetch_inferior_registers,
515 store_inferior_registers): Likewise.
516 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
517 vaxbsd_store_inferior_registers): Likewise.
518 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
519 store_xtregs): Likewise.
521 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
524 * NEWS: Mention support for rvalue references in GDB and python.
525 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
526 supports both lvalue and rvalue references.
528 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
531 * gdbtypes.c (rank_one_type): Implement overloading
532 resolution rules regarding rvalue references.
534 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
537 * aarch64-tdep.c (aarch64_type_align)
538 (aarch64_extract_return_value, aarch64_store_return_value): Change
539 lvalue reference type checks to general reference type checks.
540 * amd64-tdep.c (amd64_classify): Likewise.
541 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
543 * arm-tdep.c (arm_type_align, arm_extract_return_value)
544 (arm_store_return_value): Likewise.
545 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
546 * c-typeprint.c (c_print_type): Likewise.
547 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
548 (cplus_number_of_children, cplus_describe_child): Likewise.
549 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
550 * completer.c (expression_completer): Likewise.
551 * cp-support.c (make_symbol_overload_list_adl_namespace):
553 * darwin-nat-info.c (info_mach_region_command): Likewise.
554 * dwarf2loc.c (entry_data_value_coerce_ref)
555 (value_of_dwarf_reg_entry): Likewise.
556 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
557 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
559 * findvar.c (extract_typed_address, store_typed_address):
561 * gdbtypes.c (rank_one_type): Likewise.
562 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
563 * infcall.c (value_arg_coerce): Likewise.
564 * language.c (pointer_type): Likewise.
565 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
567 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
568 * mn10300-tdep.c (mn10300_type_align): Likewise.
569 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
570 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
571 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
573 * printcmd.c (print_formatted, x_command): Likewise.
574 * python/py-type.c (typy_get_composite, typy_template_argument):
576 * python/py-value.c (valpy_referenced_value)
577 (valpy_get_dynamic_type, value_has_field): Likewise.
578 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
579 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
580 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
581 * spu-tdep.c (spu_scalar_value_p): Likewise.
582 * symtab.c (lookup_symbol_aux): Likewise.
583 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
584 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
586 * valops.c (value_cast_pointers, value_cast)
587 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
588 (value_struct_elt, value_struct_elt_bitpos)
589 (value_find_oload_method_list, find_overload_match)
590 (value_rtti_indirect_type): Likewise.
591 * valprint.c (val_print_scalar_type_p, generic_val_print):
593 * value.c (value_actual_type, value_as_address, unpack_long)
594 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
595 (coerce_ref): Likewise.
596 * varobj.c (varobj_get_value_type): Likewise.
598 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
601 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
603 * python/lib/gdb/command/explore.py: Support exploring values
604 of rvalue reference types.
605 * python/lib/gdb/types.py: Implement get_basic_type() for
606 rvalue reference types.
607 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
609 * python/py-value.c (valpy_getitem): Add an rvalue reference
611 (valpy_reference_value): Add new parameter "refcode".
612 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
613 New wrappers for valpy_reference_value().
614 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
615 (gdbpy_invoke_xmethod): Likewise.
617 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
620 * dwarf2read.c (process_die, read_type_die_1): Handle the
621 DW_TAG_rvalue_reference_type DIE.
622 (read_tag_reference_type): Add new parameter "refcode".
624 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
627 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
628 (c_type_print_modifier, c_type_print_varspec_suffix)
629 (c_type_print_base): Support printing rvalue reference types.
630 * c-valprint.c (c_val_print, c_value_print): Support printing
631 rvalue reference values.
633 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
636 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
638 * cp-support.c (replace_typedefs): Handle
639 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
640 * python/py-type.c (typy_lookup_type): Likewise.
642 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
645 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
646 * parse.c (insert_type): Change assert statement.
647 (follow_types): Handle rvalue reference types.
648 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
651 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
654 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
655 value_ref() interface.
656 * c-valprint.c (c_value_print): Likewise.
657 * infcall.c (value_arg_coerce): Likewise.
658 * python/py-value.c (valpy_reference_value): Likewise.
659 * valops.c (value_cast, value_reinterpret_cast)
660 (value_dynamic_cast, typecmp): Likewise.
661 (value_ref): Parameterize by kind of return value reference type.
662 * value.h (value_ref): Add new parameter "refcode".
664 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
667 * dwarf2read.c (read_tag_reference_type): Use
668 lookup_lvalue_reference_type() instead of lookup_reference_type().
669 * eval.c (evaluate_subexp_standard): Likewise.
671 * gdbtypes.c (make_reference_type, lookup_reference_type):
672 Generalize with rvalue reference types.
673 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
674 convenience wrappers for lookup_reference_type().
675 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
676 reference kind parameter.
677 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
678 wrappers for lookup_reference_type().
679 * guile/scm-type.c (gdbscm_type_reference): Use
680 lookup_lvalue_reference_type() instead of lookup_reference_type().
681 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
682 * parse.c (follow_types): Likewise.
683 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
684 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
686 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
687 (gdbpy_invoke_xmethod): Likewise.
688 * stabsread.c: Provide extra argument to make_reference_type()
690 * valops.c (value_ref, value_rtti_indirect_type): Use
691 lookup_lvalue_reference_type() instead of lookup_reference_type().
693 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
696 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
697 (TYPE_IS_REFERENCE): New macro.
698 (struct type): Add rvalue_reference_type field.
699 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
701 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
703 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
704 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
705 New function definition.
706 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
707 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
708 New function declaration.
709 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
710 * mi/mi-interp.h: New file.
711 * solib.c (info_sharedlibrary_command): Replace for loop with
713 * solib.h (update_solib_list): New function declaration.
714 (so_list_head): Move macro.
715 * solist.h (ALL_SO_LIBS): New macro.
717 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
719 * infcmd.c (post_create_inferior): Remove unused argument in
721 * remote.c (remote_start_remote): Likewise.
722 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
723 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
724 (enable_break): Likewise.
725 * solib.c (update_solib_list): Remove unused target argument
726 and its documentation.
727 (solib_add): Remove unused target argument. Remove unused
728 argument in call to update_solib_list.
729 (info_sharedlibrary_command): Remove unused argument in call
730 to update_solib_list.
731 (sharedlibrary_command): Remove unused argument in call to
733 (handle_solib_event): Likewise.
734 (reload_shared_libraries): Likewise.
735 * solib.h (solib_add): Remove unused target argument.
737 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
739 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
740 (s390_displaced_step_fixup): Cover relative branches with the
741 default fixup handling. This fixes lack of support for some
742 relative branch instructions.
744 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
746 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
749 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
751 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
752 i386_darwin_store_inferior_registers): Use ptid from regcache.
754 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
756 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
757 i386bsd_store_inferior_registers): Use ptid from regcache.
759 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
761 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
762 hppaobsd_store_registers): Use ptid from regcache.
764 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
766 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
767 hppanbsd_store_registers): Use ptid from regcache.
769 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
771 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
772 from regcache. Use get_ptrace_pid.
774 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
776 * corelow.c (get_core_register_section): Use ptid from regcache,
779 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
781 * bsd-uthread.c (bsd_uthread_fetch_registers,
782 bsd_uthread_store_registers): Use ptid from regcache, set and
783 restore inferior_ptid.
785 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
787 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
788 fetch_fp_regs, store_register, store_regs, store_fp_register,
789 store_fp_regs): Use ptid from regcache.
791 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
793 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
794 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
795 store_vfp_regs): Use ptid from regcache.
797 2017-03-17 Pedro Alves <palves@redhat.com>
800 * ser-base.c (ser_base_wait_for): Add comment.
801 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
803 * ser-unix.c (hardwire_raw): Remove reference to
804 scb->current_timeout.
805 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
806 (hardwire_ops): Install ser_base_readchar instead of
808 * serial.h (struct serial) <current_timeout, timeout_remaining>:
811 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
814 * python/lib/gdb/printer/bound_registers.py: Add support for
817 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
819 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
820 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
821 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
822 byte_offset to subobj_byte_offset. Fix the handling of
823 DWARF_VALUE_STACK on big-endian targets when coming via an
825 (dwarf2_evaluate_loc_desc): Adjust call to
826 dwarf2_evaluate_loc_desc_full.
827 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
828 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
830 2017-03-16 Yao Qi <yao.qi@linaro.org>
832 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
833 and REVSH instructions.
835 2017-03-16 Yao Qi <yao.qi@linaro.org>
837 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
838 (arm_record_test): Declare.
839 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
840 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
841 align with the manual.
842 (thumb_record_misc): Adjust the code order to align with the
844 (thumb2_record_decode_insn_handler): Fix instruction matching.
845 (instruction_reader_thumb): New class.
846 (arm_record_test): New function.
848 2017-03-16 Yao Qi <yao.qi@linaro.org>
850 * arm-tdep.c (abstract_memory_reader): New class.
851 (instruction_reader): New class.
852 (extract_arm_insn): Add argument 'reader'. Callers updated.
853 (decode_insn): Likewise.
855 2017-03-16 Doug Evans <dje@google.com>
857 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
858 member. Change type of TYPE member to SCM. All uses updated.
859 (lsscm_make_lazy_string_smob): Add assert.
860 (lsscm_make_lazy_string): Flag bad length values.
861 (lsscm_elt_type): New function.
862 (gdbscm_lazy_string_to_value): Rewrite to use
863 lsscm_safe_lazy_string_to_value.
864 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
865 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
866 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
868 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
869 * guile/scm-type.c (tyscm_scm_to_type): New function.
871 2017-03-15 Doug Evans <dje@google.com>
873 PR python/17728, python/18439, python/18779
874 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
875 member. Change type of TYPE member to PyObject *. All uses updated.
876 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
877 (gdbpy_create_lazy_string_object): Flag bad length values.
878 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
879 Handle typedefs in incoming type.
880 (stpy_lazy_string_elt_type): New function.
881 (gdbpy_extract_lazy_string): Call it.
882 * python/py-value.c (valpy_lazy_string): Flag bad length values.
883 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
884 typedefs in incoming type.
886 2017-03-16 Doug Evans <dje@google.com>
888 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
889 * guile/scm-type.c (tyscm_scm_to_type): New function.
891 2017-03-16 Jiong Wang <jiong.wang@arm.com>
893 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
894 "ULONGEST" for "skip".
896 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
899 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
900 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
901 (inf_ptrace_peek_poke): ...here. New function. Now also loop
902 over ptrace peek/poke until end of buffer or error.
904 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
906 * parse.c (length_of_subexp): Make static.
907 * parser-defs.h (length_of_subexp): Remove.
909 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
911 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
914 2017-03-14 Pedro Alves <palves@redhat.com>
916 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
917 (main): Use std::unique_ptr. Remove calls to
918 cp_demangled_name_parse_free.
920 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
922 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
923 alphabsd_store_inferior_registers): Use regcache->ptid instead
926 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
928 * aix-thread.c (aix_thread_fetch_registers,
929 aix_thread_store_registers): Use regcache->ptid instead of
932 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
934 * aarch64-linux-nat.c (fetch_gregs_from_thread,
935 store_gregs_to_thread, fetch_fpregs_from_thread,
936 store_fpregs_to_thread): Use regcache->ptid instead of
939 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
941 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
942 amd64_linux_fetch_inferior_registers): Use regcache->ptid
943 instead of inferior_ptid.
945 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
947 * target.c (target_fetch_registers, target_store_registers): Add
950 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
952 * regcache.h (regcache_get_ptid): New function.
953 * regcache.c (regcache_get_ptid): New function.
955 2017-03-13 Mark Wielaard <mark@klomp.org>
957 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
959 2017-03-10 Keith Seitz <keiths@redhat.com>
962 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
964 2017-03-08 Pedro Alves <palves@redhat.com>
967 * infrun.c (start_step_over, do_target_resume, resume)
968 (restart_threads): Assert we're not resuming a thread that is
970 (infrun_thread_stop_requested_callback): Delete.
971 (infrun_thread_stop_requested): If the thread is internally
972 stopped, queue a pending stop event and clear the thread's
974 (handle_stop_requested): New function.
975 (handle_syscall_event, handle_inferior_event_1): Use
976 handle_stop_requested.
977 (handle_stop_requested): New function.
978 (handle_signal_stop): Set the thread's stop_signal here instead of
980 (finish_step_over): Clear step over info unconditionally.
981 (handle_signal_stop): If the user had interrupted the event
982 thread, consider the stop a random signal.
983 (handle_signal_stop) <signal arrived while stepping over
984 breakpoint>: Don't restart threads here.
985 (stop_waiting): Don't clear step-over info here.
987 2017-03-08 Pedro Alves <palves@redhat.com>
990 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
991 goes to argument 2, not 1.
993 2017-03-08 Pedro Alves <palves@redhat.com>
996 * top.c (gdb_readline_wrapper): Avoid passing NULL to
998 (command_line_input): Add comment.
1000 2017-03-08 Pedro Alves <palves@redhat.com>
1003 * tui/tui-file.c (tui_file::write): New.
1004 * tui/tui-file.h (tui_file): Override "write".
1005 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
1006 factored out from ...
1007 (tui_puts): ... here.
1008 (tui_putc): Use them.
1009 (tui_write): New function.
1010 * tui/tui-io.h (tui_write): Declare.
1012 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
1014 * Makefile.in (SFILES): Replace "environ.c" with
1016 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
1017 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
1019 * common/environ.c: ... here.
1020 * environ.h: Moved to...
1021 * common/environ.h: ... here.
1023 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
1025 * gdbarch.sh (pstring_ptr): New static function.
1026 (gdbarch_disassembler_options): Use it.
1027 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
1028 not valid_disassembler_option->name.
1029 * gdbarch.c: Regenerate.
1031 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
1033 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
1035 2017-03-07 Pedro Alves <palves@redhat.com>
1037 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
1039 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
1041 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
1042 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
1043 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
1044 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
1046 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
1048 * xtensa-linux-nat.c (fetch_gregs): Remove const.
1050 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
1052 * remote.c (remote_add_target_side_commands): Use range-based
1055 2017-03-03 Yao Qi <yao.qi@linaro.org>
1058 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
1060 * valprint.c (common_val_print): Likewise.
1062 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
1064 * NEWS: Mention new set/show disassembler-options commands.
1065 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
1066 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
1067 (prospective_options): New static variable.
1068 (gdb_disassembler::gdb_disassembler): Initialize
1069 m_di.disassembler_options.
1070 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
1071 (get_disassembler_options): New function.
1072 (set_disassembler_options): Likewise.
1073 (set_disassembler_options_sfunc): Likewise.
1074 (show_disassembler_options_sfunc): Likewise.
1075 (disassembler_options_completer): Likewise.
1076 (_initialize_disasm): Likewise.
1077 * disasm.h (get_disassembler_options): New prototype.
1078 (set_disassembler_options): Likewise.
1079 * gdbarch.sh (gdbarch_disassembler_options): New variable.
1080 (gdbarch_verify_disassembler_options): Likewise.
1081 * gdbarch.c: Regenerate.
1082 * gdbarch.h: Likewise.
1083 * arm-tdep.c (num_disassembly_options): Delete.
1084 (set_disassembly_style): Likewise.
1085 (arm_disassembler_options): New static variable.
1086 (set_disassembly_style_sfunc): Convert short style name into long
1087 option name. Call set_disassembler_options.
1088 (show_disassembly_style_sfunc): New function.
1089 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
1090 set_gdbarch_verify_disassembler_options.
1091 (_initialize_arm_tdep): Delete regnames variable and update callers.
1092 (arm_disassembler_options): Initialize.
1093 (disasm_options): New variable.
1094 (num_disassembly_options): Rename from this...
1095 (num_disassembly_styles): ...to this. Compute by scanning through
1097 (valid_disassembly_styles): Initialize using disasm_options.
1098 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
1099 set_arm_regname_option.
1100 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
1101 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
1102 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
1103 set_gdbarch_verify_disassembler_options.
1104 * s390-tdep.c (s390_disassembler_options): New static variable.
1105 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
1106 set_gdbarch_verify_disassembler_options.
1108 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
1110 * remote.c (remote_add_target_side_condition): Remove "struct"
1111 keyword from range-based for loop.
1113 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
1115 * remote.c (remote_add_target_side_condition): Use range-based
1116 for loop. Update comment.
1118 2017-02-27 Yao Qi <yao.qi@linaro.org>
1120 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
1122 2017-02-26 Alan Hayward <alan.hayward@arm.com>
1124 * regcache.c (regcache_raw_update): New function.
1125 (regcache_raw_read): Move code to regcache_raw_update.
1126 * regcache.h (regcache_raw_update): New declaration.
1127 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
1129 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1131 * dwarf2read.c (create_debug_type_hash_table): Initialize
1132 header.signature and header.type_offset_in_tu.
1134 2017-02-24 Pedro Alves <palves@redhat.com>
1136 * symtab.c (make_file_symbol_completion_list_1): Use
1137 add_symtab_completions.
1139 2017-02-24 Alan Hayward <alan.hayward@arm.com>
1141 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
1143 2017-02-24 Alan Hayward <alan.hayward@arm.com>
1145 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
1146 I386_MAX_REGISTER_SIZE.
1147 (i386_pseudo_register_write): Likewise.
1148 (i386_process_record): Likewise.
1149 * i387-tdep.c (i387_supply_xsave): Likewise.
1150 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
1151 (store_register): Likewise.
1153 2017-02-23 Pedro Alves <palves@redhat.com>
1155 * ada-lang.c: Include "common/function-view.h".
1156 (ada_iterate_over_symbols): Adjust to use function_view as
1158 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
1159 (ada_make_symbol_completion_list): Use a lambda.
1160 (ada_exc_search_name_matches): Delete.
1161 (name_matches_regex): New.
1162 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
1163 * compile/compile-c-support.c: Include "common/function-view.h".
1164 (print_one_macro): Change prototype to accept a ui_file pointer.
1165 (write_macro_definitions): Use a lambda.
1166 * dwarf2read.c: Include "common/function-view.h".
1167 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
1168 (dw2_expand_symtabs_matching): Adjust to use function_view as
1170 * language.h: Include "common/function-view.h".
1171 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
1172 function_view as callback type.
1173 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
1174 * linespec.c: Include "common/function-view.h".
1175 (collect_info::add_symbol): New method.
1176 (struct symbol_and_data_callback, iterate_inline_only, struct
1177 symbol_matcher_data, iterate_name_matcher): Delete.
1178 (iterate_over_all_matching_symtabs): Adjust to use function_view
1179 as callback type and lambdas.
1180 (iterate_over_file_blocks): Adjust to use function_view as
1182 (decode_compound_collector): Now a class with private fields.
1183 (decode_compound_collector::release_symbols): New method.
1184 (collect_one_symbol): Rename to...
1185 (decode_compound_collector::operator()): ... this and adjust.
1186 (lookup_prefix_sym): decode_compound_collector construction bits
1187 move to decode_compound_collector ctor. Pass the
1188 decode_compound_collector object directly as callback. Remove
1189 cleanups and use decode_compound_collector::release_symbols
1191 (symtab_collector): Now a class with private fields.
1192 (symtab_collector::release_symtabs): New method.
1193 (add_symtabs_to_list): Rename to...
1194 (symtab_collector::operator()): ... this and adjust.
1195 (collect_symtabs_from_filename): symtab_collector construction
1196 bits move to symtab_collector ctor. Pass the symtab_collector
1197 object directly as callback. Remove cleanups and use
1198 symtab_collector::release_symtabs instead.
1199 (collect_symbols): Delete.
1200 (add_matching_symbols_to_info): Use lambdas.
1201 * macrocmd.c (print_macro_callback): Delete.
1202 (info_macro_command): Use a lambda.
1203 (info_macros_command): Pass print_macro_definition as callable
1205 (print_one_macro): Remove 'ignore' parameter.
1206 (macro_list_command): Adjust.
1207 * macrotab.c (macro_for_each_data::fn): Now a function_view.
1208 (macro_for_each_data::user_data): Delete field.
1209 (foreach_macro): Adjust to call the function_view.
1210 (macro_for_each): Adjust to use function_view as callback type.
1211 (foreach_macro_in_scope): Adjust to call the function_view.
1212 (macro_for_each_in_scope): Adjust to use function_view as callback
1214 * macrotab.h: Include "common/function-view.h".
1215 (macro_callback_fn): Declare a prototype instead of a pointer.
1216 Remove "user_data" parameter.
1217 (macro_for_each, macro_for_each_in_scope): Adjust to use
1218 function_view as callback type.
1219 * psymtab.c (partial_map_expand_apply)
1220 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
1221 Adjust to use function_view as callback type and to return bool.
1222 (psym_expand_symtabs_matching): Adjust to use function_view as
1224 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
1225 to use function_view as callback type and to return bool.
1226 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
1228 * symfile.c (expand_symtabs_matching): Adjust to use function_view
1230 * symfile.h: Include "common/function-view.h".
1231 (expand_symtabs_file_matcher_ftype)
1232 (expand_symtabs_symbol_matcher_ftype)
1233 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
1235 (quick_symbol_functions::map_symtabs_matching_filename)
1236 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
1237 function_view as callback type and return bool.
1238 (expand_symtabs_matching): Adjust to use function_view as callback
1240 (maintenance_expand_name_matcher)
1241 (maintenance_expand_file_matcher): Delete.
1242 (maintenance_expand_symtabs): Use lambdas.
1243 * symtab.c (iterate_over_some_symtabs): Adjust to use
1244 function_view as callback types and return bool.
1245 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
1247 (lookup_symtab_callback): Delete.
1248 (lookup_symtab): Use a lambda.
1249 (iterate_over_symbols): Adjust to use function_view as callback
1251 (struct search_symbols_data, search_symbols_file_matches)
1252 (search_symbols_name_matches): Delete.
1253 (search_symbols): Use a pair of lambdas.
1254 (struct add_name_data, add_macro_name, symbol_completion_matcher)
1255 (symtab_expansion_callback): Delete.
1256 (default_make_symbol_completion_list_break_on_1): Use lambdas.
1257 * symtab.h: Include "common/function-view.h".
1258 (iterate_over_some_symtabs): Adjust to use function_view as
1259 callback type and return bool.
1260 (iterate_over_symtabs): Adjust to use function_view as callback
1262 (symbol_found_callback_ftype): Remove 'data' parameter and return
1264 (iterate_over_symbols): Adjust to use function_view as callback
1267 2017-02-23 Pedro Alves <palves@redhat.com>
1269 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
1270 (%.o) <unittests/%.c>: New pattern.
1271 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
1272 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
1273 * common/function-view.h: New file.
1274 * unittests/function-view-selftests.c: New file.
1275 * configure: Regenerate.
1277 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
1279 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
1281 * go32-nat.c (go32_thread_alive): Likewise.
1283 2017-02-23 Yao Qi <yao.qi@linaro.org>
1285 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
1288 2017-02-23 Yao Qi <yao.qi@linaro.org>
1290 * varobj.c (varobj_clear_saved_item): Use delete instead of
1292 (update_dynamic_varobj_children): Likewise.
1294 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1296 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
1298 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
1300 * common/enum-flags.h (enum_flags::enum_flags): Initialize
1301 m_enum_value to 0 in default constructor.
1303 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1305 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
1306 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
1307 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
1308 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
1309 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
1310 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
1311 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
1312 IS_STORE_CONDITIONAL_INSN.
1314 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1316 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
1318 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1320 * NEWS (Changes since GDB 7.12): Add DWARF-5.
1322 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1324 * dwarf2read.c (skip_one_die, read_attribute_value)
1325 (dwarf2_const_value_attr, dump_die_shallow)
1326 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
1327 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
1329 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1331 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
1332 (dwarf_parse_macro_header): Accept DWARF version 5.
1333 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
1335 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1337 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
1339 * common/common-exceptions.h (enum errors): Likewise.
1340 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
1341 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
1342 (dwarf_expr_context::execute_stack_op): Likewise.
1343 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
1345 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
1346 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
1347 (show_entry_values_debug, call_site_to_target_addr)
1348 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
1349 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
1350 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
1351 (value_of_dwarf_block_entry, indirect_pieced_value)
1352 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
1353 (disassemble_dwarf_expression): Likewise.
1354 * dwarf2read.c (process_die, inherit_abstract_dies)
1355 (read_call_site_scope): Likewise.
1356 * gdbtypes.h (struct func_type, struct call_site_parameter)
1357 (struct call_site): Likewise.
1358 * stack.c (read_frame_arg): Likewise.
1359 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
1361 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1363 * defs.h (read_unsigned_leb128): New declaration.
1364 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
1365 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
1366 (dwarf2_find_location_expression): Call also
1367 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
1368 * dwarf2loc.h (dwarf2_version): New declaration.
1369 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
1371 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
1373 (struct dwop_section_names): Add loclists_dwo.
1374 (dwop_section_names): Add .debug_loclists.dwo.
1375 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
1376 (struct dwarf2_per_cu_data): Add dwarf_version.
1377 (struct dwo_sections): Add loclists.
1378 (struct attr_abbrev): Add implicit_const.
1379 (read_indirect_line_string): New declaration.
1380 (read_unsigned_leb128): Delete declaration.
1381 (rcuh_kind): New definition.
1382 (read_and_check_comp_unit_head): Change parameter
1383 is_debug_types_section to section_kind.
1384 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
1385 (read_comp_unit_head): Change parameter abfd to section, add parameter
1386 section_kind. Handle DWARF-5.
1387 (error_check_comp_unit_head): Accept also DWARF version 5.
1388 (read_and_check_comp_unit_head): Change parameter
1389 is_debug_types_section to section_kind.
1390 (read_and_check_type_unit_head): Delete function.
1391 (read_abbrev_offset): Handle DWARF-5.
1392 (create_debug_type_hash_table): Add parameter section_kind. Process
1393 only DW_UT_type. Use signature and type_offset_in_tu from struct
1395 (create_debug_types_hash_table): Update create_debug_type_hash_table
1397 (create_all_type_units): Call create_debug_type_hash_table.
1398 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
1399 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
1401 (skip_one_die): Handle DW_FORM_implicit_const.
1402 (dwarf2_rnglists_process): New function.
1403 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
1404 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
1405 (read_attribute_value): Handle DW_FORM_implicit_const,
1407 (read_attribute): Handle DW_FORM_implicit_const.
1408 (read_indirect_string_at_offset_from): New function from
1409 read_indirect_string_at_offset.
1410 (read_indirect_string_at_offset): Call
1411 read_indirect_string_at_offset_from.
1412 (read_indirect_line_string_at_offset): New function.
1413 (read_indirect_string): New function comment.
1414 (read_indirect_line_string): New function.
1415 (read_unsigned_leb128): Make it global.
1416 (dwarf2_string_attr): Handle DWARF-5.
1417 (add_include_dir_stub, read_formatted_entries): New functions.
1418 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
1420 (per_cu_header_read_in): Update read_comp_unit_head caller.
1421 (dwarf2_version): New function.
1422 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
1424 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
1427 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1429 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
1431 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1433 * dwarf2read.c (dwarf2_ranges_process): New function from
1435 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
1436 dwarf2_ranges_process.
1438 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1440 * dwarf2read.c (create_debug_type_hash_table): New function from
1441 create_debug_types_hash_table.
1442 (create_debug_types_hash_table): Call create_debug_type_hash_table.
1443 (create_all_type_units, open_and_init_dwo_file): Update
1444 create_debug_types_hash_table callers.
1446 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1449 * fork-child.c (trace_start_error): Fix thinko. va_end should
1450 refer to 'ap', not 'args'.
1452 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1453 Pedro Alves <palves@redhat.com>
1456 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
1458 * fork-child.c (trace_start_error): New function.
1459 (trace_start_error_with_name): Likewise.
1460 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
1461 * inf-ptrace.c (inf_ptrace_me): Likewise.
1462 * inferior.h (trace_start_error): New prototype.
1463 (trace_start_error_with_name): Likewise.
1465 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
1468 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
1469 NULL before using it.
1470 * symmisc.c (maintenance_print_symbols): Likewise.
1471 (maintenance_print_msymbols): Likewise.
1473 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1475 * NEWS: Add record Python bindings entry.
1477 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1479 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
1481 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
1482 * python/py-record-btrace.c, python/py-record-btrace.h,
1483 python/py-record-full.c, python/py-record-full.h: New file.
1484 * python/py-record.c: Add include for py-record-btrace.h and
1486 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
1487 recpy_instruction_history, recpy_function_call_history, recpy_begin,
1488 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
1489 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
1491 (gdbpy_initialize_btrace): New export.
1492 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
1494 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1496 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
1497 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
1498 * python/py-record.c: New file.
1499 * python/python-internal.h (gdbpy_start_recording,
1500 gdbpy_current_recording, gdpy_stop_recording,
1501 gdbpy_initialize_record): New export.
1502 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
1503 (python_GdbMethods): Add gdbpy_start_recording,
1504 gdbpy_current_recording and gdbpy_stop_recording.
1506 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1508 * record-btrace.c (record_btrace_record_method): New function.
1509 (init_record_btrace_ops): Initialize to_record_method.
1510 * record-full.c (record_full_record_method): New function.
1511 (init_record_full_ops, init_record_full_core_ops): Add
1512 record_full_record_method.
1513 * record.h (enum record_method): New enum.
1514 * target-debug.h (target_debug_print_enum_record_method: New define.
1515 * target-delegates.c: Regenerate.
1516 * target.c (target_record_method): New function.
1517 * target.h: Include record.h.
1518 (struct target_ops) <to_record_method>: New field.
1519 (target_record_method): New export.
1521 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1523 * record.h (record_start, record_stop): New export.
1524 * record.c (record_start, record_stop): New function.
1526 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1528 * btrace.c (btrace_fetch): Copy function call segments pointer
1530 (btrace_clear): Clear the vector.
1531 (btrace_find_insn_by_number): Use binary search to find the correct
1532 function call segment.
1533 * btrace.h (brace_fun_p): New typedef.
1534 (struct btrace_thread_info) <functions>: New field.
1536 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1538 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
1539 * btrace.c (btrace_decode_error): ... here. New function.
1540 * btrace.h (btrace_decode_error): New export.
1542 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1544 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
1545 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
1546 btrace_find_insn_by_number): Remove special case for gaps.
1547 * btrace.h (btrace_insn_get_error): New export.
1548 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
1549 * record-btrace.c (btrace_insn_history): Print number for gaps.
1550 (record_btrace_info, record_btrace_goto): Handle gaps.
1552 2017-02-14 Tom Tromey <tom@tromey.com>
1555 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
1557 * python/py-evts.c (gdbpy_initialize_py_events): Add
1558 before_prompt registry.
1559 * python/py-events.h (events_object) <before_prompt>: New field.
1561 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
1563 * btrace.c (ftrace_new_switch): Preserve up link and flags.
1565 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
1567 * symfile (_initialize_symfile): Add usage text to the load command's
1570 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
1572 * utils.c (defaulted_query): Don't query on secondary UIs.
1574 2017-02-10 Tom Tromey <tom@tromey.com>
1576 * rust-lang.c (rust_get_disr_info): Remove unused variable.
1578 2017-02-10 Tom Tromey <tom@tromey.com>
1580 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
1582 * python/py-type.c (typy_legacy_template_argument): Remove
1583 unnecessary "cleanup" local.
1585 2017-02-10 Tom Tromey <tom@tromey.com>
1587 * python/python.c (do_start_initialization): New function, from
1589 (_initialize_python): Call do_start_initialization.
1590 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
1593 2017-02-10 Tom Tromey <tom@tromey.com>
1595 * python/py-prettyprint.c (pretty_print_one_value): Use
1598 2017-02-10 Tom Tromey <tom@tromey.com>
1600 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
1601 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
1603 * python/py-type.c (field_new): Use gdbpy_ref.
1604 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
1606 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
1607 (py_free_pspace): Likewise.
1608 (pspace_to_pspace_object): Likewise.
1609 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
1610 (py_free_objfile): Likewise.
1611 (objfile_to_objfile_object): Likewise.
1612 * python/py-inferior.c (delete_thread_object): Use
1614 (infpy_read_memory): Likewise.
1615 (py_free_inferior): Likewise.
1616 * python/py-evtregistry.c (create_eventregistry_object): Use
1618 * python/py-event.c (create_event_object): Use gdbpy_ref.
1620 2017-02-10 Tom Tromey <tom@tromey.com>
1622 * python/py-ref.h (gdbpy_ref_policy): Now a template.
1623 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
1625 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
1626 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
1627 python/py-exitedevent.c, python/py-finishbreakpoint.c,
1628 python/py-framefilter.c, python/py-function.c,
1629 python/py-inferior.c, python/py-infevents.c,
1630 python/py-linetable.c, python/py-newobjfileevent.c,
1631 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
1632 python/py-signalevent.c, python/py-stopevent.c,
1633 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
1634 python/py-unwind.c, python/py-utils.c, python/py-value.c,
1635 python/py-varobj.c, python/py-xmethods.c, python/python.c,
1636 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
1638 2017-02-10 Tom Tromey <tom@tromey.com>
1640 * ui-out.h (ui_out_emit_type): New class.
1641 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
1642 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
1643 and ui_out_emit_tuple.
1644 (enumerate_locals): Likewise.
1645 (py_mi_print_variables, py_print_locals, py_print_args): Use
1647 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
1649 * common/gdb_optional.h: New file.
1651 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
1653 * MAINTAINERS (Write After Approval): Update my e-mail address.
1655 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
1658 * breakpoint.c (_initialize_breakpoint): Update the help description
1659 of the 'commands' command to indicate that it takes a list argument.
1661 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
1663 * interps.c (current_interp_set_logging): Remove "return".
1665 2017-02-09 Gary Benson <gbenson@redhat.com>
1667 * symtab.c (add_symtab_completions): Prevent NULL pointer
1670 2017-02-08 Pedro Alves <palves@redhat.com>
1672 * interps.c (interp::interp): Remove reference to quiet_p.
1673 (interp_set): Make static. Remove dead "Switching to" output
1675 (interp_quiet_p, interp_set_quiet): Delete.
1676 (interpreter_exec_cmd): Don't set the interpreter quiet.
1677 * interps.h (interp_quiet_p): Make static.
1678 (class interp) <quiet_p>: Remove field
1680 2017-02-08 Jerome Guitton <guitton@adacore.com>
1682 * cli/cli-decode.c (find_command_name_length): Make it extern.
1683 * cli/cli-decode.h (find_command_name_length): Declare.
1684 * cli/cli-script.c (command_name_equals, line_first_arg):
1686 (process_next_line): Use cli-decode to parse command names.
1687 (build_command_line): Make args a constant pointer.
1689 2017-02-08 Jerome Guitton <guitton@adacore.com>
1691 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
1692 Remove case-insensitive search.
1694 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1696 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
1697 at the end of the line. Avoids an ARI warning.
1699 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
1701 * NEWS: Mention support for record/replay of Intel 64 rdrand and
1702 rdseed instructions.
1703 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
1705 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
1708 Provide and use sparc32 and sparc64 target description XML files.
1709 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
1710 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
1711 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
1712 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
1713 * features/sparc/sparc32-solaris.xml: New file.
1714 * features/sparc/sparc64-solaris.xml: New file.
1715 * features/sparc/sparc32-solaris.c: Generated.
1716 * features/sparc/sparc64-solaris.c: Generated.
1717 * sparc-tdep.h: Account for differences in target descriptions.
1718 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
1719 (sparc32_register_type): Use target provided registers.
1720 (validate_tdesc_registers): New function.
1721 (sparc32_gdbarch_init): Use tdesc_has_registers.
1722 Set pseudoregister functions.
1723 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
1724 (sparc64_register_type): Use target provided registers.
1725 (sparc64_init_abi): Set pseudoregister functions.
1727 2017-02-03 Tom Tromey <tom@tromey.com>
1730 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
1731 with a single member.
1733 2017-02-03 Pedro Alves <palves@redhat.com>
1735 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
1736 (cli_interp_base::~cli_interp_base): New.
1737 (cli_interp): New struct.
1738 (as_cli_interp): Cast the interp itself to cli_interp.
1739 (cli_interpreter_pre_command_loop): Rename to ...
1740 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
1742 (cli_interpreter_init): Rename to ...
1743 (cli_interp::init): ... this. Remove 'self' parameter. Use
1744 boolean. Make extern.
1745 (cli_interpreter_resume): Rename to ...
1746 (cli_interp::resume): ... this. Remove 'data' parameter. Make
1748 (cli_interpreter_suspend): Rename to ...
1749 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
1751 (cli_interpreter_exec): Rename to ...
1752 (cli_interp::exec): ... this. Remove 'data' parameter. Make
1754 (cli_interpreter_supports_command_editing): Rename to ...
1755 (cli_interp_base::supports_command_editing): ... this. Remove
1756 'interp' parameter. Make extern.
1757 (cli_ui_out): Rename to ...
1758 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
1760 (cli_set_logging): Rename to ...
1761 (cli_interp_base::set_logging): ... this. Remove 'interp'
1762 parameter. Make extern.
1763 (cli_interp_procs): Delete.
1764 (cli_interp_factory): Adjust to use "new".
1765 * cli/cli-interp.h: Include "interps.h".
1766 (struct cli_interp_base): New struct.
1767 * interps.c (struct interp): Delete. Fields moved to interps.h.
1768 (interp_new): Delete.
1769 (interp::interp, interp::~interp): New.
1770 (interp_set): Use bool, and return void. Assume the interpreter
1771 has suspend, init and resume methods, and that the all return
1773 (set_top_level_interpreter): interp_set returns void.
1774 (interp_ui_out): Adapt.
1775 (current_interp_set_logging): Adapt.
1776 (interp_data): Delete.
1777 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
1778 (interp_exec): Adapt.
1779 (top_level_interpreter_data): Delete.
1780 * interps.h (interp_init_ftype, interp_resume_ftype)
1781 (interp_suspend_ftype, interp_exec_ftype)
1782 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
1783 (class interp): New.
1784 (interp_new): Delete.
1785 (interp_set): Now returns void. Use bool.
1786 (interp_data, top_level_interpreter_data): Delete.
1787 * mi/mi-common.h: Include interps.h.
1788 (class mi_interp): Inherit from interp. Define a ctor. Declare
1789 init, resume, suspect, exec, interp_ui_out, set_logging and
1790 pre_command_loop methods.
1791 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
1792 (mi_interpreter_init): Rename to ...
1793 (mi_interp::init): ... this. Remove the 'interp' parameter, use
1794 bool, return void and make extern. Adjust.
1795 (mi_interpreter_resume): ... Rename to ...
1796 (mi_interp::resume): ... this. Remove the 'data' parameter,
1797 return void and make extern. Adjust.
1798 (mi_interpreter_suspend): ... Rename to ...
1799 (mi_interp::suspend): ... this. Remove the 'data' parameter,
1800 return void and make extern. Adjust.
1801 (mi_interpreter_exec): ... Rename to ...
1802 (mi_interp::exec): ... this. Remove the 'data' parameter and make
1804 (mi_interpreter_pre_command_loop): ... Rename to ...
1805 (mi_interp::pre_command_loop): ... this. Remove the 'self'
1806 parameter and make extern.
1807 (mi_on_normal_stop_1): Adjust.
1808 (mi_ui_out): Rename to ...
1809 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
1810 parameter and make extern. Adjust.
1811 (mi_set_logging): Rename to ...
1812 (mi_interp::set_logging): ... this. Remove the 'interp'
1813 parameter and make extern. Adjust.
1814 (mi_interp_procs): Delete.
1815 (mi_interp_factory): Adjust to use 'new'.
1816 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
1817 (mi_print_exception, mi_execute_command, mi_load_progress):
1819 * tui/tui-interp.c (tui_interp): New class.
1820 (as_tui_interp): Return a tui_interp pointer.
1821 (tui_on_normal_stop, tui_on_signal_received)
1822 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
1823 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
1824 to use interp::interp_ui_out.
1825 (tui_init): Rename to ...
1826 (tui_interp::init): ... this. Remove the 'self' parameter, use
1827 bool, return void and make extern. Adjust.
1828 (tui_resume): Rename to ...
1829 (tui_interp::resume): ... this. Remove the 'data' parameter,
1830 return void and make extern. Adjust.
1831 (tui_suspend): Rename to ...
1832 (tui_interp::suspend): ... this. Remove the 'data' parameter,
1833 return void and make extern. Adjust.
1834 (tui_ui_out): Rename to ...
1835 (tui_interp::interp_ui_out): ... this. Remove the 'self'
1836 parameter, and make extern. Adjust.
1837 (tui_exec): Rename to ...
1838 (tui_interp::exec): ... this. Remove the 'data' parameter and
1840 (tui_interp_procs): Delete.
1841 (tui_interp_factory): Use "new".
1843 2017-02-02 Tom Tromey <tom@tromey.com>
1845 * rust-exp.y (ends_raw_string, space_then_number)
1846 (rust_identifier_start_p): Return bool.
1847 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
1848 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
1849 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
1850 (rust_chartype_p): Return bool.
1851 (val_print_struct, rust_print_struct_def, rust_print_type):
1853 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
1856 2017-02-02 Tom Tromey <tom@tromey.com>
1858 * rust-lang.c: Reindent.
1860 2017-02-02 Tom Tromey <tom@tromey.com>
1862 * rust-lang.h (rust_crate_for_block): Update.
1863 * rust-lang.c (rust_crate_for_block): Return std::string.
1864 (rust_get_disr_info): Use std:;string, not
1865 gdb::unique_xmalloc_ptr.
1866 * rust-exp.y (crate_name): Update.
1868 2017-02-02 Pedro Alves <palves@redhat.com>
1870 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
1871 field out of gdb_disassembler_test and make it static.
1873 2017-02-02 Pedro Alves <palves@redhat.com>
1875 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
1876 mi1_interp and mi_interp fields.
1878 2017-02-02 Pedro Alves <palves@redhat.com>
1880 * cli/cli-interp.c (struct saved_output_files, saved_output):
1881 Moved from cli/cli-logging.c.
1882 (cli_set_logging): New function.
1883 (cli_interp_procs): Install cli_set_logging.
1884 * cli/cli-interp.h (make_logging_output, cli_set_logging):
1886 * cli/cli-logging.c (struct saved_output_files, saved_output):
1887 Moved to cli/cli-interp.c.
1888 (pop_output_files): Don't save outputs here.
1889 (make_logging_output): New function.
1890 (handle_redirections): Don't build tee nor save previous outputs
1892 * interps.c (current_interp_set_logging): Change prototype.
1893 Assume there's always a set_logging_proc method installed.
1894 * interps.h (interp_set_logging_ftype): Change prototype.
1895 (current_interp_set_logging): Change prototype and adjust comment.
1896 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
1897 use make_logging_output.
1898 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
1899 2017-02-02 Pedro Alves <palves@redhat.com>
1901 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
1903 (set_logging_overwrite): ... here.
1904 (logging_no_redirect_file): Delete.
1905 (set_logging_redirect): Don't handle redirection on the fly.
1906 Instead warn that "logging off" / "logging on" is necessary.
1907 (pop_output_files): Delete references to logging_no_redirect_file.
1908 (show_logging_command): Always speak in terms of what will happen
1909 once logging is reenabled.
1911 2017-02-02 Pedro Alves <palves@redhat.com>
1913 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
1915 2017-02-02 Pedro Alves <palves@redhat.com>
1917 * disasm.c (gdb_pretty_print_insn): Rename to ...
1918 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
1919 Remove gdbarch parameter. Adapt to clear the object's buffers
1920 instead of allocating new buffers, and to print using the object's
1921 gdb_disassembler instead of calling gdb_print_insn.
1922 (dump_insns): Use gdb_pretty_print_disassembler.
1923 * disasm.h (gdb_pretty_print_insn): Delete declaration.
1924 (gdb_pretty_print_disassembler): New class.
1925 * record-btrace.c (btrace_insn_history): Use
1926 gdb_pretty_print_disassembler.
1928 2017-02-02 Pedro Alves <palves@redhat.com>
1930 * ada-lang.c (type_as_string): Use string_file.
1931 * ada-valprint.c (ada_print_floating): Use string_file.
1932 * ada-varobj.c (ada_varobj_scalar_image)
1933 (ada_varobj_get_value_image): Use string_file.
1934 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
1935 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
1936 * breakpoint.c (update_inserted_breakpoint_locations)
1937 (insert_breakpoint_locations, reattach_breakpoints)
1938 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
1939 (print_it_watchpoint): Use string_file.
1940 (save_breakpoints): Use stdio_file.
1941 * c-exp.y (oper): Use string_file.
1942 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
1944 (pop_output_files): Use delete.
1945 (handle_redirections): Use stdio_file and tee_file.
1946 * cli/cli-setshow.c (do_show_command): Use string_file.
1947 * compile/compile-c-support.c (c_compute_program): Use
1949 * compile/compile-c-symbols.c (generate_vla_size): Take a
1950 'string_file &' instead of a 'ui_file *'.
1951 (generate_c_for_for_one_variable): Take a 'string_file &' instead
1952 of a 'ui_file *'. Use string_file.
1953 (generate_c_for_variable_locations): Take a 'string_file &'
1954 instead of a 'ui_file *'.
1955 * compile/compile-internal.h (generate_c_for_for_one_variable):
1956 Take a 'string_file &' instead of a 'ui_file *'.
1957 * compile/compile-loc2c.c (push, pushf, unary, binary)
1958 (print_label, pushf_register_address, pushf_register)
1959 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
1960 'ui_file *'. Adjust.
1961 * compile/compile.c (compile_to_object): Use string_file.
1962 * compile/compile.h (compile_dwarf_expr_to_c)
1963 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
1965 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
1966 (replace_typedefs_qualified_name): Use string_file and
1968 * disasm.c (gdb_pretty_print_insn): Use string_file.
1969 (gdb_disassembly): Adjust reference the null_stream global.
1970 (do_ui_file_delete): Delete.
1971 (gdb_insn_length): Use null_stream.
1972 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
1973 * dwarf2loc.c (dwarf2_compile_property_to_c)
1974 (locexpr_generate_c_location, loclist_generate_c_location): Take a
1975 'string_file &' instead of a 'ui_file *'.
1976 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
1977 * dwarf2read.c (do_ui_file_peek_last): Delete.
1978 (dwarf2_compute_name): Use string_file.
1979 * event-top.c (gdb_setup_readline): Use stdio_file.
1980 * gdbarch.sh (verify_gdbarch): Use string_file.
1981 * gdbtypes.c (safe_parse_type): Use null_stream.
1982 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
1984 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
1985 'string_file *' instead of a 'ui_file *'.
1986 (gdbscm_arch_disassemble): Use string_file.
1987 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
1988 * guile/scm-ports.c (class ioscm_file_port): Now a class that
1989 inherits from ui_file.
1990 (ioscm_file_port_delete, ioscm_file_port_rewind)
1991 (ioscm_file_port_put): Delete.
1992 (ioscm_file_port_write): Rename to ...
1993 (ioscm_file_port::write): ... this. Remove file_port_magic
1995 (ioscm_file_port_new): Delete.
1996 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
1998 * guile/scm-type.c (tyscm_type_name): Use string_file.
1999 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
2001 * infcmd.c (print_return_value_1): Use string_file.
2002 * infrun.c (print_target_wait_results): Use string_file.
2003 * language.c (add_language): Use string_file.
2004 * location.c (explicit_to_string_internal): Use string_file.
2005 * main.c (captured_main_1): Use null_file.
2006 * maint.c (maintenance_print_architecture): Use stdio_file.
2007 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
2008 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
2009 event_channel>: Change type to mi_console_file pointer.
2010 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
2011 (mi_console_file_delete): Delete.
2012 (struct mi_console_file): Delete.
2013 (mi_console_file_magic): Delete.
2014 (mi_console_file_new): Delete.
2015 (mi_console_file::mi_console_file): New.
2016 (mi_console_file_delete): Delete.
2017 (mi_console_file_fputs): Delete.
2018 (mi_console_file::write): New.
2019 (mi_console_raw_packet): Delete.
2020 (mi_console_file::flush): New.
2021 (mi_console_file_flush): Delete.
2022 (mi_console_set_raw): Rename to ...
2023 (mi_console_file::set_raw): ... this.
2024 * mi/mi-console.h (class mi_console_file): New class.
2025 (mi_console_file_new, mi_console_set_raw): Delete.
2026 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
2027 (mi_set_logging): Use delete and tee_file. Adjust.
2028 * mi/mi-main.c (output_register): Use string_file.
2029 (mi_cmd_data_evaluate_expression): Use string_file.
2030 (mi_cmd_data_read_memory): Use string_file.
2031 (mi_cmd_execute, print_variable_or_computed): Use string_file.
2032 * mi/mi-out.c (mi_ui_out::main_stream): New.
2033 (mi_ui_out::rewind): Use main_stream and
2035 (mi_ui_out::put): Use main_stream and string_file.
2036 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
2037 Allocate a 'string_file' instead.
2038 (mi_out_new): Don't allocate a mem_fileopen stream here.
2039 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
2040 (mi_ui_out::main_stream): Declare method.
2041 * printcmd.c (eval_command): Use string_file.
2042 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
2043 * python/py-arch.c (archpy_disassemble): Use string_file.
2044 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
2045 * python/py-frame.c (frapy_str): Use string_file.
2046 * python/py-framefilter.c (py_print_type, py_print_single_arg):
2048 * python/py-type.c (typy_str): Use string_file.
2049 * python/py-unwind.c (unwind_infopy_str): Use string_file.
2050 * python/py-value.c (valpy_str): Use string_file.
2051 * record-btrace.c (btrace_insn_history): Use string_file.
2052 * regcache.c (regcache_print): Use stdio_file.
2053 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
2054 * remote.c (escape_buffer): Use string_file.
2055 * rust-lang.c (rust_get_disr_info): Use string_file.
2056 * serial.c (serial_open_ops_1): Use stdio_file.
2057 (do_serial_close): Use delete.
2058 * stack.c (print_frame_arg): Use string_file.
2059 (print_frame_args): Remove local mem_fileopen stream, not used.
2060 (print_frame): Use string_file.
2061 * symmisc.c (maintenance_print_symbols): Use stdio_file.
2062 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2063 Take a 'string_file *' instead of a 'ui_file *'.
2064 * top.c (new_ui): Use stdio_file and stderr_file.
2065 (free_ui): Use delete.
2066 (execute_command_to_string): Use string_file.
2067 (quit_confirm): Use string_file.
2068 * tracepoint.c (collection_list::append_exp): Use string_file.
2069 * tui/tui-disasm.c (tui_disassemble): Use string_file.
2070 * tui/tui-file.c: Don't include "ui-file.h".
2071 (enum streamtype, struct tui_stream): Delete.
2072 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
2073 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
2074 (tui_file::tui_file): New method.
2075 (tui_file_fputs): Delete.
2076 (tui_file_get_strbuf): Delete.
2077 (tui_file::puts): New method.
2078 (tui_file_adjust_strbuf): Delete.
2079 (tui_file_flush): Delete.
2080 (tui_file::flush): New method.
2081 * tui/tui-file.h: Tweak intro comment.
2083 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
2084 (tui_file_adjust_strbuf): Delete declarations.
2085 (class tui_file): New class.
2086 * tui/tui-io.c (tui_initialize_io): Use tui_file.
2087 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
2088 (tui_register_format): Use string_stream.
2089 * tui/tui-stack.c (tui_make_status_line): Use string_file.
2090 (tui_get_function_from_frame): Use string_file.
2091 * typeprint.c (type_to_string): Use string_file.
2092 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
2093 (null_stream): New global.
2094 (ui_file_delete): Delete.
2095 (ui_file::ui_file): New.
2096 (null_file_isatty): Delete.
2097 (ui_file::~ui_file): New.
2098 (null_file_rewind): Delete.
2099 (ui_file::printf): New.
2100 (null_file_put): Delete.
2101 (null_file_flush): Delete.
2102 (ui_file::putstr): New.
2103 (null_file_write): Delete.
2104 (ui_file::putstrn): New.
2105 (null_file_read): Delete.
2106 (ui_file::putc): New.
2107 (null_file_fputs): Delete.
2108 (null_file_write_async_safe): Delete.
2109 (ui_file::vprintf): New.
2110 (null_file_delete): Delete.
2111 (null_file::write): New.
2112 (null_file_fseek): Delete.
2113 (null_file::puts): New.
2114 (ui_file_data): Delete.
2115 (null_file::write_async_safe): New.
2116 (gdb_flush, ui_file_isatty): Adjust.
2117 (ui_file_put, ui_file_rewind): Delete.
2118 (ui_file_write): Adjust.
2119 (ui_file_write_for_put): Delete.
2120 (ui_file_write_async_safe, ui_file_read): Adjust.
2121 (ui_file_fseek): Delete.
2122 (fputs_unfiltered): Adjust.
2123 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
2124 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
2125 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
2126 (set_ui_file_data): Delete.
2127 (string_file::~string_file, string_file::write)
2128 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
2129 (do_ui_file_as_string, ui_file_as_string): Delete.
2130 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
2131 (struct mem_file): Delete.
2132 (mem_file_new): Delete.
2133 (stdio_file::stdio_file): New.
2134 (mem_file_delete): Delete.
2135 (stdio_file::stdio_file): New.
2136 (mem_fileopen): Delete.
2137 (stdio_file::~stdio_file): New.
2138 (mem_file_rewind): Delete.
2139 (stdio_file::set_stream): New.
2140 (mem_file_put): Delete.
2141 (stdio_file::open): New.
2142 (mem_file_write): Delete.
2143 (stdio_file_magic, struct stdio_file): Delete.
2144 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
2145 (stdio_file::flush): New.
2146 (stdio_file_read): Rename to ...
2147 (stdio_file::read): ... this. Adjust.
2148 (stdio_file_write): Rename to ...
2149 (stdio_file::write): ... this. Adjust.
2150 (stdio_file_write_async_safe): Rename to ...
2151 (stdio_file::write_async_safe) ... this. Adjust.
2152 (stdio_file_fputs): Rename to ...
2153 (stdio_file::puts) ... this. Adjust.
2154 (stdio_file_isatty): Delete.
2155 (stdio_file_fseek): Delete.
2156 (stdio_file::isatty): New.
2157 (stderr_file_write): Rename to ...
2158 (stderr_file::write) ... this. Adjust.
2159 (stderr_file_fputs): Rename to ...
2160 (stderr_file::puts) ... this. Adjust.
2161 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
2162 (stderr_file::stderr_file): New.
2163 (tee_file_magic): Delete.
2164 (struct tee_file): Delete.
2165 (tee_file::tee_file): New.
2166 (tee_file_new): Delete.
2167 (tee_file::~tee_file): New.
2168 (tee_file_delete): Delete.
2169 (tee_file_flush): Rename to ...
2170 (tee_file::flush): ... this. Adjust.
2171 (tee_file_write): Rename to ...
2172 (tee_file::write): ... this. Adjust.
2173 (tee_file::write_async_safe): New.
2174 (tee_file_fputs): Rename to ...
2175 (tee_file::puts): ... this. Adjust.
2176 (tee_file_isatty): Rename to ...
2177 (tee_file::isatty): ... this. Adjust.
2178 * ui-file.h (struct obstack, struct ui_file): Don't
2180 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
2181 (ui_file_write_ftype)
2182 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
2183 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
2184 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
2185 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
2186 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
2187 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
2188 (set_ui_file_fseek): Delete.
2189 (ui_file_data, ui_file_delete, ui_file_rewind)
2190 (struct ui_file): New.
2192 (class null_file): New.
2193 (null_stream): Declare.
2194 (ui_file_write_for_put, ui_file_put): Delete.
2195 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
2197 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
2198 (gdb_fopen, tee_file_new): Delete.
2199 (struct string_file): New.
2200 (struct stdio_file): New.
2201 (stdio_file_up): New.
2202 (struct stderr_file): New.
2203 (class tee_file): New.
2204 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
2205 of a 'ui_file *'. Adjust.
2206 * ui-out.h (class ui_out) <field_stream>: Likewise.
2207 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
2208 (null_stream): Delete.
2209 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
2211 * utils.h (struct ui_file): Delete forward declaration..
2212 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
2213 (error_stream): Take a 'string_file &' instead of a
2215 * varobj.c (varobj_value_get_print_value): Use string_file.
2216 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
2217 * gdbarch.c: Regenerate.
2219 2017-02-02 Pedro Alves <palves@redhat.com>
2221 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
2222 (gdb_pretty_print_insn): ... this. Now a free function. Add back
2223 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
2224 Adjust to call gdb_print_insn instead of
2225 gdb_disassembler::print_insn.
2226 (dump_insns, do_mixed_source_and_assembly_deprecated)
2227 (do_mixed_source_and_assembly, do_assembly_only): Add back a
2228 'gdbarch' parameter. Remove gdb_disassembler parameter.
2229 (gdb_disassembly): Don't allocate a gdb_disassembler here.
2230 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
2232 (gdb_pretty_print_insn): Re-add declaration.
2233 * record-btrace.c (btrace_insn_history): Don't allocate a
2234 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
2236 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
2238 * disasm.h (gdb_disassembly): Remove file_string parameter.
2239 * disasm.c (gdb_disassembly): Likewise.
2240 * cli/cli-cmds.c (print_disassembly): Adapt.
2241 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2242 * stack.c (do_gdb_disassembly): Likewise.
2244 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
2246 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
2247 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
2248 targets. And if the implicit value is longer than needed, extract
2249 the first bytes instead of the "least significant" ones.
2251 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
2253 * btrace.c (btrace_enable): Do not call btrace_add_pc for
2254 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
2255 (btrace_fetch): Assert can_access_registers_ptid.
2256 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
2257 validate_registers_access.
2259 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
2261 * gdbthread.h (can_access_registers_ptid): New.
2262 * thread.c (can_access_registers_ptid): New.
2264 2017-02-01 Pedro Alves <palves@redhat.com>
2266 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
2268 2017-01-31 Pedro Alves <palves@redhat.com>
2270 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
2273 2017-01-31 Pedro Alves <palves@redhat.com>
2275 * stack.c (print_frame_args): Remove local mem_fileopen stream,
2278 2017-01-31 Pedro Alves <palves@redhat.com>
2280 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
2282 2017-01-31 Pedro Alves <palves@redhat.com>
2284 * common/scoped_restore.h
2285 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
2286 change the value's parameter type to T2.
2287 (make_scoped_restore): Likewise.
2289 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2290 Richard Henderson <rth@redhat.com>
2292 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
2293 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
2294 GS_BASE for older kernels.
2295 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
2296 GS_BASE for older kernels.
2297 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
2298 and GS_BASE to the offset table.
2299 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
2300 system register group.
2301 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
2303 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
2305 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
2306 AMD64_GSBASE_REGNUM.
2307 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
2308 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
2309 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
2310 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
2311 i386/64bit-segments.xml in those rules.
2312 * features/i386/64bit-segments.xml: New file.
2313 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
2314 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
2315 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
2316 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
2317 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
2318 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
2319 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
2320 * features/i386/amd64-avx-linux.c: Regenerated.
2321 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
2322 * features/i386/amd64-avx-mpx.c: Regenerated.
2323 * features/i386/amd64-avx512-linux.c: Regenerated.
2324 * features/i386/amd64-linux.c: Regenerated.
2325 * features/i386/amd64-mpx-linux.c: Regenerated.
2326 * features/i386/i386-avx-mpx-linux.c: Regenerated.
2327 * features/i386/i386-avx-mpx.c: Regenerated.
2328 * features/i386/x32-avx-linux.c: Regenerated.
2329 * features/i386/x32-avx512-linux.c: Regenerated.
2330 * regformats/i386/amd64-avx-linux.dat: Regenerated.
2331 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
2332 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
2333 * regformats/i386/amd64-linux.dat: Regenerated.
2334 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
2335 * regformats/i386/x32-avx-linux.dat: Regenerated.
2336 * regformats/i386/x32-avx512-linux.dat: Regenerated.
2337 * regformats/i386/x32-linux.dat: Regenerated.
2339 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2341 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
2342 Set to AMD64_NUM_REGS.
2344 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2346 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
2347 that checks validity of a register number.
2349 2017-01-27 Kees Cook <keescook@google.com>
2351 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
2352 fetch_fpregs if target has fpa registers.
2353 (arm_linux_store_inferior_registers): Call store_fpregs if target
2356 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
2358 * cris-tdep.c (cris_gdbarch_init): Remove check for
2359 info.byte_order and force it to BFD_ENDIAN_LITTLE.
2361 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
2363 * corelow.c (get_core_register_section): Check for regset
2364 existence before checking for REGSET_VARIABLE_SIZE.
2366 2017-01-26 Yao Qi <yao.qi@linaro.org>
2367 Pedro Alves <palves@redhat.com>
2370 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
2371 call memory_error, save memaddr instead.
2372 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
2373 negative, cal memory_error.
2374 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
2376 2017-01-26 Yao Qi <yao.qi@linaro.org>
2378 * disasm-selftests.c (memory_error_test): New function.
2379 (_initialize_disasm_selftests): Register memory_error_test.
2381 2017-01-26 Yao Qi <yao.qi@linaro.org>
2383 * Makefile.in (SFILES): Add disasm-selftests.c and
2385 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
2386 * disasm-selftests.c: New file.
2387 * selftest-arch.c: New file.
2388 * selftest-arch.h: New file.
2390 2017-01-26 Yao Qi <yao.qi@linaro.org>
2392 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
2393 to bfd_arch_mep. Don't return 0 if section is not
2394 found. Call print_insn_mep.
2396 2017-01-26 Pedro Alves <palves@redhat.com>
2397 Yao Qi <yao.qi@linaro.org>
2399 * arm-tdep.c: Include "disasm.h".
2400 (gdb_print_insn_arm): Update code to get gdbarch.
2401 * disasm.c (dis_asm_read_memory): Change it to
2402 gdb_disassembler::dis_asm_read_memory.
2403 (dis_asm_memory_error): Likewise.
2404 (dis_asm_print_address): Likewise.
2405 (gdb_pretty_print_insn): Change it to
2406 gdb_disassembler::pretty_print_insn.
2407 (dump_insns): Add one argument gdb_disassemlber. All
2409 (do_mixed_source_and_assembly_deprecated): Likewise.
2410 (do_mixed_source_and_assembly): Likewise.
2411 (do_assembly_only): Likewise.
2412 (gdb_disassembler::gdb_disassembler): New.
2413 (gdb_disassembler::print_insn): New.
2414 * disasm.h (class gdb_disassembler): New.
2415 (gdb_pretty_print_insn): Remove declaration.
2416 (gdb_disassemble_info): Likewise.
2417 * guile/scm-disasm.c (class gdbscm_disassembler): New.
2418 (gdbscm_disasm_read_memory_worker): Update.
2419 (gdbscm_disasm_read_memory): Update.
2420 (gdbscm_disasm_memory_error): Remove.
2421 (gdbscm_disasm_print_address): Remove.
2422 (gdbscm_disassembler::gdbscm_disassembler): New.
2423 (gdbscm_print_insn_from_port): Update.
2424 * mips-tdep.c: Include disasm.h.
2425 (gdb_print_insn_mips): Update code to get gdbarch.
2426 * record-btrace.c (btrace_insn_history): Update.
2427 * spu-tdep.c: Include disasm.h.
2428 (struct spu_dis_asm_data): Remove.
2429 (struct spu_dis_asm_info): New.
2430 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
2432 (gdb_print_insn_spu): Cast disassemble_info to
2435 2017-01-26 Yao Qi <yao.qi@linaro.org>
2437 * disasm.c (do_ui_file_delete): Delete.
2438 (gdb_insn_length): Move code creating stream to ...
2439 * utils.c (null_stream): ... here. New function.
2440 * utils.h (null_stream): Declare.
2442 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2444 * python/py-inferior.c (find_thread_object): Return directly
2445 from the loop. Remove "found" variable.
2447 2017-01-21 Joel Brobecker <brobecker@adacore.com>
2449 GDB 7.12.1 released.
2451 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
2453 * python/py-function.c (fnpy_call): Reorder declarations to have
2454 the gdbpy_enter object declared first.
2455 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
2457 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
2460 * python/python-internal.h (PyMem_RawMalloc): Define for
2462 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
2463 PyMem_RawMalloc instead of PyMem_Malloc.
2465 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
2466 Luis Machado <lgustavo@codesourcery.com>
2468 * NEWS (New commands): Mention flash-erase.
2469 (New MI commands): Mention target-flash-erase.
2470 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
2472 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
2473 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
2474 * target.c (flash_erase_command): New function.
2475 (initialize_targets): Add new flash-erase command.
2476 * target.h (flash_erase_command): New declaration.
2478 2017-01-20 Joel Brobecker <brobecker@adacore.com>
2480 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
2481 HAVE_SYS_PROCFS_H is defined.
2483 2017-01-18 Alan Hayward <alan.hayward@arm.com>
2485 * remote.c (struct cached_reg): Change data into a pointer.
2486 * (stop_reply_dtr): Free data pointers before deleting vector.
2487 (process_stop_reply): Likewise.
2488 (remote_parse_stop_reply): Allocate space for data
2490 2017-01-18 Alan Hayward <alan.hayward@arm.com>
2492 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
2494 (amd64_pseudo_register_read_value): Likewise.
2495 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
2496 (store_register_using_P): Likewise.
2497 * regcache.c (regcache_xfer_part): Likewise.
2499 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
2501 Split real and pseudo registers.
2502 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
2503 (sparc32_pseudo_regnum): New enum.
2504 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
2505 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
2506 (SPARC32_CP0_REGISTERS): New macro.
2507 (sparc32_pseudo_register_name): New function.
2508 (sparc32_register_name): Use sparc32_pseudo_register_name.
2509 (sparc32_pseudo_register_type): New function.
2510 (sparc32_register_type): Use sparc32_pseudo_register_type.
2511 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
2512 pseudo register numbers.
2513 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
2514 (SPARC64_CP0_REGISTERS): New macro.
2515 (sparc64_pseudo_register_name): New function.
2516 (sparc64_register_name): Use sparc64_pseudo_register_name.
2517 (sparc64_pseudo_register_type): New function.
2518 (sparc64_register_type): Use sparc64_pseudo_register_type.
2519 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
2520 pseudo register numbers.
2521 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
2522 sparc64_store_arguments): Handle pseudo register numbers.
2524 2017-01-13 Yao Qi <yao.qi@linaro.org>
2526 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
2527 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
2529 (getpkt_or_notif_sane_1): Likewise.
2531 2017-01-13 Yao Qi <yao.qi@linaro.org>
2533 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
2534 of CC. Pass "-x c++-header" instead of "-x c".
2536 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
2538 * remote.c (remote_can_async_p): Update comment.
2540 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
2542 * linux-nat.c (linux_nat_can_async_p): Update comment.
2544 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
2546 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
2548 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
2550 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
2552 2017-01-10 Tom Tromey <tom@tromey.com>
2554 * python/py-type.c (typy_legacy_template_argument): Update.
2555 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
2556 ~demangle_parse_info): Declare new members.
2557 (cp_demangled_name_to_comp): Return unique_ptr.
2558 (cp_demangled_name_parse_free)
2559 (make_cleanup_cp_demangled_name_parse_free)
2560 (cp_new_demangle_parse_info): Remove.
2561 * cp-support.c (do_demangled_name_parse_free_cleanup)
2562 (make_cleanup_cp_demangled_name_parse_free): Remove.
2563 (inspect_type, cp_canonicalize_string_full)
2564 (cp_canonicalize_string): Update.
2565 (mangled_name_to_comp): Change return type.
2566 (cp_class_name_from_physname, method_name_from_physname)
2567 (cp_func_name, cp_remove_params): Update.
2568 * cp-name-parser.y (demangle_parse_info): New constructor, from
2569 cp_new_demangle_parse_info.
2570 (~demangle_parse_info): New destructor, from
2571 cp_demangled_name_parse_free.
2572 (cp_merge_demangle_parse_infos): Update.
2573 (cp_demangled_name_to_comp): Change return type.
2575 2017-01-10 Tom Tromey <tom@tromey.com>
2577 * top.c (prevent_dont_repeat): Change return type.
2578 * python/python.c (execute_gdb_command): Use std::string.
2580 * guile/guile.c (gdbscm_execute_gdb_command): Update.
2581 * command.h (prevent_dont_repeat): Change return type.
2582 * breakpoint.c (bpstat_do_actions_1): Update.
2584 2017-01-10 Tom Tromey <tom@tromey.com>
2586 * value.h (scoped_value_mark::~scoped_value_mark): Call
2588 (scoped_value_mark::free_to_mark): New method.
2589 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2592 2017-01-10 Tom Tromey <tom@tromey.com>
2594 * python/py-value.c (valpy_dereference, valpy_referenced_value)
2595 (valpy_reference_value, valpy_const_value, valpy_get_address)
2596 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
2597 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
2598 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
2599 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2601 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
2602 * value.h (scoped_value_mark): New class.
2604 2017-01-10 Tom Tromey <tom@tromey.com>
2606 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
2607 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
2608 * psymtab.c (discard_psymtabs_upto): Remove.
2609 (make_cleanup_discard_psymtabs): Remove.
2610 (struct psymtab_state): Remove.
2612 2017-01-10 Tom Tromey <tom@tromey.com>
2614 * record-full.c (record_full_save_cleanups): Remove.
2615 (record_full_save): Use gdb::unlinker.
2616 * gcore.c (do_bfd_delete_cleanup): Remove.
2617 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
2619 * dwarf2read.c (unlink_if_set): Remove.
2620 (write_psymtabs_to_index): Use gdb::unlinker.
2621 * common/gdb_unlinker.h: New file.
2623 2017-01-10 Tom Tromey <tom@tromey.com>
2625 * windows-tdep.c (windows_xfer_shared_library): Update.
2626 * windows-nat.c (windows_make_so): Update.
2627 * utils.h (make_cleanup_bfd_unref): Remove.
2628 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
2629 * symfile.h (symfile_bfd_open)
2630 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
2631 * symfile.c (read_symbols, symbol_file_add)
2632 (separate_debug_file_exists): Update.
2633 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
2634 (generic_load, reread_symbols): Update.
2635 * symfile-mem.c (symbol_file_add_from_memory): Update.
2636 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
2637 (spu_symbol_file_add_from_memory): Update.
2638 * solist.h (struct target_so_ops) <bfd_open>: Return
2640 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
2641 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
2643 (solib_map_sections, reload_shared_libraries_1): Update.
2644 * solib-svr4.c (enable_break): Update.
2645 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
2646 * solib-frv.c (enable_break2): Update.
2647 * solib-dsbt.c (enable_break): Update.
2648 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
2650 (darwin_solib_get_all_image_info_addr_at_init): Update.
2651 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
2652 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
2653 * record-full.c (record_full_save): Update.
2654 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
2655 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2656 * minidebug.c (find_separate_debug_file_in_section): Return
2658 * machoread.c (macho_add_oso_symfile): Change abfd to
2660 (macho_symfile_read_all_oso): Update.
2661 (macho_check_dsym): Return gdb_bfd_ref_ptr.
2662 (macho_symfile_read): Update.
2663 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
2664 (jit_bfd_try_read_symtab): Update.
2665 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2666 (gdb_bfd_openw, gdb_bfd_openr_iovec)
2667 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
2669 (gdb_bfd_ref_policy): New struct.
2670 (gdb_bfd_ref_ptr): New typedef.
2671 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2672 (gdb_bfd_openw, gdb_bfd_openr_iovec)
2673 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
2675 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
2676 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
2677 (gcore_command): Update.
2678 * exec.c (exec_file_attach): Update.
2679 * elfread.c (elf_symfile_read): Update.
2680 * dwarf2read.c (dwarf2_get_dwz_file): Update.
2681 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
2682 (open_and_init_dwo_file): Update.
2683 (open_dwp_file): Return gdb_bfd_ref_ptr.
2684 (open_and_init_dwp_file): Update.
2685 * corelow.c (core_open): Update.
2686 * compile/compile-object-load.c (compile_object_load): Update.
2687 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
2688 * coffread.c (coff_symfile_read): Update.
2689 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
2690 gdb_bfd_ref_ptr. Rename.
2691 (dump_bfd_file, restore_command): Update.
2692 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
2693 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
2694 (find_separate_debug_file_by_buildid): Update.
2696 2017-01-10 Tom Tromey <tom@tromey.com>
2698 * common/gdb_ref_ptr.h: New file.
2699 * python/py-ref.h (struct gdbpy_ref_policy): New.
2700 (gdbpy_ref): Now a typedef.
2702 2017-01-10 Tom Tromey <tom@tromey.com>
2704 * utils.h (make_cleanup_htab_delete): Don't declare.
2705 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
2707 * linespec.c (decode_compound_collector): Add constructor,
2709 (lookup_prefix_sym): Remove cleanup.
2710 (symtab_collector): Add constructor, destructor.
2711 (collect_symtabs_from_filename): Remove cleanup.
2712 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
2713 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2715 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
2716 * dwarf2read.c (dw2_expand_symtabs_matching)
2717 (dw2_map_symbol_filenames, dwarf_decode_macros)
2718 (write_psymtabs_to_index): Use htab_up.
2719 * dwarf2loc.c (func_verify_no_selftailcall)
2720 (call_site_find_chain_1, func_verify_no_selftailcall)
2721 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
2722 std::vector, gdb::unique_xmalloc_ptr.
2723 (call_sitep): Remove typedef.
2724 (dwarf2_locexpr_baton_eval): Remove unused variable.
2726 2017-01-10 Tom Tromey <tom@tromey.com>
2728 * python/python-internal.h (make_cleanup_py_decref)
2729 (make_cleanup_py_xdecref): Don't declare.
2730 * python/py-utils.c (py_decref, make_cleanup_py_decref)
2731 (py_xdecref, make_cleanup_py_xdecref): Remove.
2733 2017-01-10 Tom Tromey <tom@tromey.com>
2735 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
2736 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
2738 2017-01-10 Tom Tromey <tom@tromey.com>
2740 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
2742 2017-01-10 Tom Tromey <tom@tromey.com>
2744 * python/py-utils.c (unicode_to_encoded_string)
2745 (python_string_to_target_string)
2746 (python_string_to_target_python_string)
2747 (python_string_to_host_string, gdbpy_obj_to_string)
2748 (get_addr_from_python): Use gdbpy_ref.
2750 2017-01-10 Tom Tromey <tom@tromey.com>
2752 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
2755 2017-01-10 Tom Tromey <tom@tromey.com>
2757 * python/python.c (eval_python_command, gdbpy_decode_line)
2758 (gdbpy_run_events, gdbpy_start_type_printers)
2759 (gdbpy_apply_type_printers): Use gdbpy_ref.
2761 2017-01-10 Tom Tromey <tom@tromey.com>
2763 * python/py-param.c (get_doc_string, compute_enum_values): Use
2766 2017-01-10 Tom Tromey <tom@tromey.com>
2768 * python/py-inferior.c (find_thread_object, build_inferior_list):
2771 2017-01-10 Tom Tromey <tom@tromey.com>
2773 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
2775 2017-01-10 Tom Tromey <tom@tromey.com>
2777 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
2780 2017-01-10 Tom Tromey <tom@tromey.com>
2782 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
2784 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
2787 2017-01-10 Tom Tromey <tom@tromey.com>
2789 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
2792 2017-01-10 Tom Tromey <tom@tromey.com>
2794 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
2795 decref results of PyArg_ParseTupleAndKeywords.
2797 2017-01-10 Tom Tromey <tom@tromey.com>
2799 * python/python.c (python_run_simple_file): Use
2800 unique_xmalloc_ptr, gdbpy_ref.
2802 2017-01-10 Tom Tromey <tom@tromey.com>
2804 * python/py-prettyprint.c (print_stack_unless_memory_error)
2805 (print_string_repr, print_children): Use gdbpy_ref.
2806 (dummy_python_frame): New class.
2807 (dummy_python_frame::dummy_python_frame): Rename from
2808 push_dummy_python_frame.
2809 (py_restore_tstate): Remove.
2811 2017-01-10 Tom Tromey <tom@tromey.com>
2813 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
2815 2017-01-10 Tom Tromey <tom@tromey.com>
2817 * python/python.c (ensure_python_env, restore_python_env):
2819 * python/python-internal.h (ensure_python_env): Don't declare.
2820 * varobj.h (varobj_ensure_python_env): Don't declare.
2821 * varobj.c (varobj_ensure_python_env): Remove.
2823 2017-01-10 Tom Tromey <tom@tromey.com>
2825 * varobj.c (varobj_value_get_print_value): Use
2828 2017-01-10 Tom Tromey <tom@tromey.com>
2830 * python/py-prettyprint.c (print_string_repr, print_children):
2832 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
2834 * varobj.c (varobj_value_get_print_value): Update.
2835 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
2837 2017-01-10 Tom Tromey <tom@tromey.com>
2839 * varobj.c (varobj_get_display_hint)
2840 (dynamic_varobj_has_child_method, install_new_value_visualizer)
2841 (varobj_set_visualizer, free_variable): Use
2844 2017-01-10 Tom Tromey <tom@tromey.com>
2846 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
2847 (do_finish_initialization): New function. Use gdbpy_ref.
2848 (gdbpy_finish_initialization): Use gdbpy_enter. Call
2849 do_finish_initialization.
2851 2017-01-10 Tom Tromey <tom@tromey.com>
2853 * python/py-param.c (get_set_value, get_show_value): Use
2854 gdbpy_enter, gdbpy_ref.
2856 2017-01-10 Tom Tromey <tom@tromey.com>
2858 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
2860 2017-01-10 Tom Tromey <tom@tromey.com>
2862 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
2864 2017-01-10 Tom Tromey <tom@tromey.com>
2866 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
2867 Use gdbpy_enter_varobj.
2869 2017-01-10 Tom Tromey <tom@tromey.com>
2871 * varobj.c (gdbpy_enter_varobj): New constructor.
2872 * python/python-internal.h (gdbpy_enter_varobj): New class.
2873 * python/py-varobj.c (py_varobj_get_iterator): Use
2876 2017-01-10 Tom Tromey <tom@tromey.com>
2878 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
2879 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
2880 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
2881 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
2883 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
2885 2017-01-10 Tom Tromey <tom@tromey.com>
2887 * python/py-xmethods.c (invoke_match_method): Use
2890 2017-01-10 Tom Tromey <tom@tromey.com>
2892 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
2893 gdbpy_enter, gdbpy_ref.
2895 2017-01-10 Tom Tromey <tom@tromey.com>
2897 * python/python.c (python_interactive_command): Use gdbpy_enter.
2899 2017-01-10 Tom Tromey <tom@tromey.com>
2901 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
2904 2017-01-10 Tom Tromey <tom@tromey.com>
2906 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
2907 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
2909 2017-01-10 Tom Tromey <tom@tromey.com>
2911 * utils.h (htab_deleter): New struct.
2912 (htab_up): New typedef.
2913 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
2914 gdbpy_enter, gdbpy_ref, htab_up.
2916 2017-01-10 Tom Tromey <tom@tromey.com>
2918 * python/py-unwind.c (pending_frame_invalidate): Remove.
2919 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
2921 2017-01-10 Tom Tromey <tom@tromey.com>
2923 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
2924 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
2926 2017-01-10 Tom Tromey <tom@tromey.com>
2928 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
2930 2017-01-10 Tom Tromey <tom@tromey.com>
2932 * python/python.c (gdbpy_eval_from_control_command)
2933 (gdbpy_source_script, gdbpy_run_events)
2934 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
2935 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
2938 2017-01-10 Tom Tromey <tom@tromey.com>
2940 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
2942 2017-01-10 Tom Tromey <tom@tromey.com>
2944 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
2946 2017-01-10 Tom Tromey <tom@tromey.com>
2948 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
2949 (python_on_inferior_call_pre, python_on_inferior_call_post)
2950 (python_on_memory_change, python_on_register_change)
2951 (python_inferior_exit, python_new_objfile, add_thread_object)
2952 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
2954 2017-01-10 Tom Tromey <tom@tromey.com>
2956 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
2957 (bpfinishpy_handle_exit): Use gdbpy_enter.
2959 2017-01-10 Tom Tromey <tom@tromey.com>
2961 * python/py-cmd.c (cmdpy_destroyer)
2962 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
2965 2017-01-10 Tom Tromey <tom@tromey.com>
2967 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
2969 (gdbpy_breakpoint_has_cond): Likewise.
2971 2017-01-10 Tom Tromey <tom@tromey.com>
2973 * python/python.c (gdbpy_enter): New constructor.
2974 (~gdbpy_enter): New destructor.
2975 (restore_python_env, ensure_python_env): Rewrite.
2976 * python/python-internal.h (gdbpy_enter): New class.
2978 2017-01-10 Tom Tromey <tom@tromey.com>
2980 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
2982 2017-01-10 Tom Tromey <tom@tromey.com>
2984 * python/py-value.c (value_has_field, get_field_flag)
2985 (get_field_type, valpy_getitem, convert_value_from_python): Use
2988 2017-01-10 Tom Tromey <tom@tromey.com>
2990 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
2993 2017-01-10 Tom Tromey <tom@tromey.com>
2995 * python/py-prettyprint.c (search_pp_list)
2996 (find_pretty_printer_from_objfiles)
2997 (find_pretty_printer_from_progspace)
2998 (find_pretty_printer_from_gdb, find_pretty_printer)
2999 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
3002 2017-01-10 Tom Tromey <tom@tromey.com>
3004 * python/py-param.c (call_doc_function): Use gdbpy_ref.
3006 2017-01-10 Tom Tromey <tom@tromey.com>
3008 * python/py-linetable.c (build_line_table_tuple_from_pcs)
3009 (ltpy_get_all_source_lines): Use gdbpy_ref.
3011 2017-01-10 Tom Tromey <tom@tromey.com>
3013 * python/py-framefilter.c (extract_sym, extract_value)
3014 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
3017 2017-01-10 Tom Tromey <tom@tromey.com>
3019 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
3021 2017-01-10 Tom Tromey <tom@tromey.com>
3023 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
3025 2017-01-10 Tom Tromey <tom@tromey.com>
3027 * python/py-function.c (convert_values_to_python, fnpy_init): Use
3030 2017-01-10 Tom Tromey <tom@tromey.com>
3032 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
3034 2017-01-10 Tom Tromey <tom@tromey.com>
3036 * python/py-type.c (convert_field, make_fielditem, typy_fields)
3037 (typy_range): Use gdbpy_ref.
3039 2017-01-10 Tom Tromey <tom@tromey.com>
3041 * python/py-threadevent.c (create_thread_event_object): Use
3043 * python/py-stopevent.c (create_stop_event_object): Simplify.
3044 (emit_stop_event): Use gdbpy_ref.
3045 * python/py-signalevent.c (create_signal_event_object): Use
3047 * python/py-newobjfileevent.c (create_new_objfile_event_object)
3048 (emit_new_objfile_event, create_clear_objfiles_event_object)
3049 (emit_clear_objfiles_event): Use gdbpy_ref.
3050 * python/py-infevents.c (create_inferior_call_event_object)
3051 (create_register_changed_event_object)
3052 (create_memory_changed_event_object, emit_inferior_call_event)
3053 (emit_memory_changed_event, emit_register_changed_event): Use
3055 * python/py-exitedevent.c (create_exited_event_object)
3056 (emit_exited_event): Use gdbpy_ref.
3057 * python/py-event.h (evpy_emit_event): Remove
3058 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
3059 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
3060 * python/py-continueevent.c (emit_continue_event): Use
3062 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3063 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3065 * python/py-bpevent.c (create_breakpoint_event_object): Use
3068 2017-01-10 Tom Tromey <tom@tromey.com>
3070 * python/py-ref.h: New file.
3072 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
3074 * cli-out.c (cli_ui_out::do_redirect): Change return type to
3076 * cli-out.h (cli_ui_out::do_redirect): Likewise.
3077 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
3078 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
3079 * ui-out.c (ui_out::redirect): Likewise.
3080 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
3081 * cli/cli-logging.c (set_logging_redirect): Update call site of
3083 (handle_redirections): Likewise.
3084 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
3085 * top.c (execute_command_to_string): Likewise.
3086 * utils.c (do_ui_out_redirect_pop): Likewise.
3088 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
3090 * stack.c (_initialize_stack): Update "frame" command help message.
3092 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
3094 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
3096 2017-01-06 Yao Qi <yao.qi@linaro.org>
3098 * x86-linux-nat.h: Include gdb_proc_service.h.
3100 2017-01-06 Yao Qi <yao.qi@linaro.org>
3102 * ser-base.h: Include serial.h.
3104 2017-01-06 Yao Qi <yao.qi@linaro.org>
3106 * ppc-linux-tdep.h: Include ppc-tdep.h.
3108 2017-01-06 Yao Qi <yao.qi@linaro.org>
3110 * nat/amd64-linux-siginfo.h: Include signal.h.
3112 2017-01-06 Yao Qi <yao.qi@linaro.org>
3114 * nat/aarch64-linux-hw-point.h: Include break-common.h.
3116 2017-01-06 Yao Qi <yao.qi@linaro.org>
3118 * mi/mi-parse.h: Include mi-cmds.h.
3120 2017-01-06 Yao Qi <yao.qi@linaro.org>
3122 * inf-loop.c: Don't include "target.h".
3123 * inf-loop.h: Include it here.
3125 2017-01-06 Yao Qi <yao.qi@linaro.org>
3127 * dfp.h: Include "dboulest.h" and "expression.h".
3129 2017-01-06 Yao Qi <yao.qi@linaro.org>
3131 * ax-gdb.h: Include "ax.h".
3133 2017-01-06 Yao Qi <yao.qi@linaro.org>
3135 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
3136 with nat/gdb_ptrace.h.
3138 2017-01-05 Yao Qi <yao.qi@linaro.org>
3140 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
3142 (mips64_fbsd_sigframe_init): Likewise.
3144 2017-01-04 John Baldwin <jhb@FreeBSD.org>
3146 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
3147 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
3149 2017-01-04 John Baldwin <jhb@FreeBSD.org>
3151 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
3152 * NEWS: Mention new FreeBSD/mips native configuration.
3153 * config/mips/fbsd.mh: New file.
3154 * configure.host: Add mips*-*-freebsd*.
3155 * mips-fbsd-nat.c: New file.
3157 2017-01-04 John Baldwin <jhb@FreeBSD.org>
3159 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
3160 (ALLDEPFILES): Add mips-fbsd-tdep.c.
3161 * NEWS: Mention new FreeBSD/mips target.
3162 * configure.tgt: Add mips*-*-freebsd*.
3163 * mips-fbsd-tdep.c: New file.
3164 * mips-fbsd-tdep.h: New file.
3166 2017-01-04 Yao Qi <yao.qi@linaro.org>
3168 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
3169 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
3171 2017-01-01 Joel Brobecker <brobecker@adacore.com>
3173 Update copyright year range in all GDB files.
3175 2017-01-01 Joel Brobecker <brobecker@adacore.com>
3177 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
3179 For older changes see ChangeLog-2016.
3185 version-control: never