1 2017-05-24 Yao Qi <yao.qi@linaro.org>
3 * rl78-tdep.c (rl78_gdbarch_init): Don't call
4 set_gdbarch_print_insn.
6 2017-05-24 Yao Qi <yao.qi@linaro.org>
8 * h8300-tdep.c (h8300_gdbarch_init): Don't call
9 set_gdbarch_print_insn.
11 2017-05-24 Yao Qi <yao.qi@linaro.org>
13 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14 set_gdbarch_print_insn.
15 * arc-tdep.c (arc_gdbarch_init): Likewise.
16 * arch-utils.c: include dis-asm.h.
17 (default_print_insn): New function.
18 * arch-utils.h (default_print_insn): Declare.
19 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
20 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
21 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
22 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
23 * frv-tdep.c (frv_gdbarch_init): Likewise.
24 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
25 * gdbarch.sh (print_insn): Use default_print_insn.
26 * gdbarch.c: Regenerated.
27 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
28 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
29 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
30 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
31 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
32 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
33 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
34 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
35 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
36 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
37 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
38 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
39 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
40 * mt-tdep.c (mt_gdbarch_init): Likewise.
41 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
42 * nios2-tdep.c (nios2_print_insn): Remove.
43 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
44 * rx-tdep.c (rx_gdbarch_init): Likewise.
45 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
46 * score-tdep.c (score_print_insn): Remove.
47 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
48 * sh-tdep.c (sh_gdbarch_init): Likewise.
49 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
50 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
51 * tic6x-tdep.c (tic6x_print_insn): Remove.
52 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
53 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
54 * v850-tdep.c (v850_gdbarch_init): Likewise.
55 * vax-tdep.c (vax_gdbarch_init): Likewise.
56 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
57 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
59 2017-05-23 John Baldwin <jhb@FreeBSD.org>
61 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
62 (MIPS_FP0_REGNUM): Remove.
63 (MIPS_FSR_REGNUM): Remove.
64 (mips_fbsd_supply_fpregs): Use mips_regnum.
65 (mips_fbsd_supply_gregs): Likewise.
66 (mips_fbsd_collect_fpregs): Likewise.
67 (mips_fbsd_collect_gregs): Likewise.
69 2017-05-23 John Baldwin <jhb@FreeBSD.org>
71 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
72 (getpfpregs_supplies): New function.
73 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
75 (mips_fbsd_store_inferior_registers): Likewise.
77 2017-05-22 Pedro Alves <palves@redhat.com>
79 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
82 2017-05-22 Alan Hayward <alan.hayward@arm.com>
84 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
85 (store_register): Likewise.
86 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
87 (get_decimal_float_return_value): Likewise.
88 (do_ppc_sysv_return_value): Likewise.
89 (ppc64_sysv_abi_push_integer): Likewise.
90 (ppc64_sysv_abi_push_freg): Likewise.
91 (ppc64_sysv_abi_return_value_base): Likewise.
92 (ppc64_sysv_abi_return_value): Likewise.
93 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
94 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
95 * rs6000-nat.c: Likewise.
96 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
97 (rs6000_value_to_register): Likewise.
98 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
100 2017-05-21 Tom Tromey <tom@tromey.com>
103 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
104 arrays as "[T]", not "[T; ]".
106 2017-05-19 Tom Tromey <tom@tromey.com>
109 * rust-lang.c (exp_descriptor_rust): New function.
110 (rust_language_defn): Use it.
111 * p-lang.c (pascal_language_defn): Update.
112 * opencl-lang.c (opencl_language_defn): Update.
113 * objc-lang.c (objc_language_defn): Update.
114 * m2-lang.c (m2_language_defn): Update.
115 * language.h (struct language_defn)
116 <la_watch_location_expression>: New member.
117 * language.c (unknown_language_defn, auto_language_defn)
118 (local_language_defn): Update.
119 * go-lang.c (go_language_defn): Update.
120 * f-lang.c (f_language_defn): Update.
121 * d-lang.c (d_language_defn): Update.
122 * c-lang.h (c_watch_location_expression): Declare.
123 * c-lang.c (c_watch_location_expression): New function.
124 (c_language_defn, cplus_language_defn, asm_language_defn)
125 (minimal_language_defn): Use it.
126 * breakpoint.c (watch_command_1): Call
127 la_watch_location_expression.
128 * ada-lang.c (ada_language_defn): Update.
130 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
133 * gdb_curses.h (NOMACROS): Define.
134 (NCURSES_NOMACROS): Define.
136 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
139 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
141 * tui/tui-wingeneral.c (box_win): Likewise.
142 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
143 (tui_show_source_line): Likewise.
144 (tui_show_exec_info_content): Likewise.
146 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
148 * sparc-tdep.c (sparc_structure_return_p)
149 (sparc_arg_on_registers_p): New functions.
150 (sparc32_store_arguments): Use them.
151 * sparc64-tdep.c (sparc64_16_byte_align_p)
152 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
153 Handle TYPE_CODE_ARRAY.
155 2017-05-17 Yao Qi <yao.qi@linaro.org>
157 * cli/cli-decode.c (add_alias_cmd): New function.
158 * command.h (add_alias_cmd): Declare.
159 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
160 instead call add_alias_cmd.
162 2017-05-17 Pedro Alves <palves@redhat.com>
164 * Makefile.in (nat_extra_makefile_frag): Rename to ...
165 (nat_makefile_frag): ... this. All references updated.
166 * configure.ac: Likewise.
167 * configure.nat: Likewise. Enhance comments.
168 * configure: Regenerate.
170 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
172 * procfs.c (procfs_create_inferior): Change prototype to match
175 2017-05-13 Eli Zaretskii <eliz@gnu.org>
177 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
178 C++ compiler warning.
180 2017-05-12 Tom Tromey <tom@tromey.com>
183 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
184 recurse, just call value_struct_elt directly.
186 2017-05-12 Tom Tromey <tom@tromey.com>
188 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
191 2017-05-12 Tom Tromey <tom@tromey.com>
193 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
195 2017-05-09 Yao Qi <yao.qi@linaro.org>
197 * regcache.c: Include <forward_list>.
198 (struct regcache_list): Remove.
199 (current_regcache): Update.
200 (get_thread_arch_aspace_regcache): Update for std::forward_list.
201 (regcache_thread_ptid_changed): Likewise.
202 (registers_changed_ptid): Likewise.
203 (current_regcache_size): Likewise.
205 2017-05-09 Yao Qi <yao.qi@linaro.org>
207 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
208 (current_regcache_size): New function.
209 (current_regcache_test): New function.
210 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
212 2017-05-08 Alan Hayward <alan.hayward@arm.com>
214 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
215 (print_gp_register_row): Use get_frame_register_value.
217 2017-05-08 Alan Hayward <alan.hayward@arm.com>
219 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
220 (mips_supply_fpregset): Likewise.
221 (mips64_supply_gregset): Likewise.
223 2017-05-08 Alan Hayward <alan.hayward@arm.com>
225 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
226 regcache->raw_supply_zeroed.
228 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
230 * configure.nat: Rearrange 'case' statements to match
233 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
235 * Makefile.in: Remove "@host_makefile_frag@". Add variables
236 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
237 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
238 "@nat_extra_makefile_frag@".
239 (Makefile): Remove dependency on "@frags@".
240 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
241 (data-directory/Makefile): Likewise.
242 * config/aarch64/linux.mh: Deleted; moved contents to
244 * config/alpha/alpha-linux.mh: Likewise.
245 * config/alpha/nbsd.mh: Likewise.
246 * config/arm/linux.mh: Likewise.
247 * config/arm/nbsdelf.mh: Likewise.
248 * config/i386/cygwin.mh: Likewise.
249 * config/i386/cygwin64.mh: Likewise.
250 * config/i386/darwin.mh: Likewise.
251 * config/i386/fbsd.mh: Likewise.
252 * config/i386/fbsd64.mh: Likewise.
253 * config/i386/go32.mh: Likewise.
254 * config/i386/i386gnu.mh: Likewise.
255 * config/i386/i386sol2.mh: Likewise.
256 * config/i386/linux.mh: Likewise.
257 * config/i386/linux64.mh: Likewise.
258 * config/i386/mingw.mh: Likewise.
259 * config/i386/mingw64.mh: Likewise.
260 * config/i386/nbsd64.mh: Likewise.
261 * config/i386/nbsdelf.mh: Likewise.
262 * config/i386/nto.mh: Likewise.
263 * config/i386/obsd.mh: Likewise.
264 * config/i386/obsd64.mh: Likewise.
265 * config/i386/sol2-64.mh: Likewise.
266 * config/ia64/linux.mh: Likewise.
267 * config/m32r/linux.mh: Likewise.
268 * config/m68k/linux.mh: Likewise.
269 * config/m68k/nbsdelf.mh: Likewise.
270 * config/m68k/obsd.mh: Likewise.
271 * config/m88k/obsd.mh: Likewise.
272 * config/mips/fbsd.mh: Likewise.
273 * config/mips/linux.mh: Likewise.
274 * config/mips/nbsd.mh: Likewise.
275 * config/mips/obsd64.mh: Likewise.
276 * config/pa/linux.mh: Likewise.
277 * config/pa/nbsd.mh: Likewise.
278 * config/pa/obsd.mh: Likewise.
279 * config/powerpc/aix.mh: Likewise.
280 * config/powerpc/fbsd.mh: Likewise.
281 * config/powerpc/linux.mh: Likewise.
282 * config/powerpc/nbsd.mh: Likewise.
283 * config/powerpc/obsd.mh: Likewise.
284 * config/powerpc/ppc64-linux.mh: Likewise.
285 * config/powerpc/spu-linux.mh: Likewise.
286 * config/s390/linux.mh: Likewise.
287 * config/sh/nbsd.mh: Likewise.
288 * config/sparc/fbsd.mh: Likewise.
289 * config/sparc/linux.mh: Likewise.
290 * config/sparc/linux64.mh: Likewise.
291 * config/sparc/nbsd64.mh: Likewise.
292 * config/sparc/nbsdelf.mh: Likewise.
293 * config/sparc/obsd64.mh: Likewise.
294 * config/sparc/sol2.mh: Likewise.
295 * config/tilegx/linux.mh: Likewise.
296 * config/vax/nbsdelf.mh: Likewise.
297 * config/vax/obsd.mh: Likewise.
298 * config/xtensa/linux.mh: Likewise.
299 * config/i386/i386gnu.mn: New file, with excerpts from
300 "config/i386/i386gnu.mh".
301 * configure: Regenerate.
302 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
303 *.mh files under "gdb/config".
304 * configure.nat: New file, with contents from the
305 "gdb/config/*/*.mh" files.
307 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
309 * btrace.c (btrace_clear): Free insn vector.
311 2017-05-05 Pedro Alves <palves@redhat.com>
313 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
314 * configure: Regenerate.
316 2017-05-04 Pedro Alves <palves@redhat.com>
318 * Makefile.in (SFILES): Add progspace-and-thread.c.
319 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
320 (COMMON_OBS): Add progspace-and-thread.o.
321 * breakpoint.c: Include "progspace-and-thread.h".
322 (update_inserted_breakpoint_locations)
323 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
324 Use scoped_restore_current_pspace_and_thread.
325 (create_std_terminate_master_breakpoint): Use
326 scoped_restore_current_program_space.
327 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
328 (print_breakpoint_location): Use
329 scoped_restore_current_program_space.
330 (bp_loc_is_permanent): Use
331 scoped_restore_current_pspace_and_thread.
332 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
333 (download_tracepoint_locations): Use
334 scoped_restore_current_pspace_and_thread.
335 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
336 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
337 (enum step_over_calls_kind): Moved from inferior.h.
338 (class scoped_restore_current_thread): New class.
339 * gdbthread.h (make_cleanup_restore_current_thread): Delete
341 (scoped_restore_current_thread): New class.
342 * infcmd.c: Include "common/gdb_optional.h".
343 (continue_1, proceed_after_attach): Use
344 scoped_restore_current_thread.
345 (notice_new_inferior): Use scoped_restore_current_thread.
346 * inferior.c: Include "progspace-and-thread.h".
347 (restore_inferior, save_current_inferior): Delete.
348 (add_inferior_command, clone_inferior_command): Use
349 scoped_restore_current_pspace_and_thread.
350 * inferior.h (scoped_restore_current_inferior): New class.
351 * infrun.c: Include "progspace-and-thread.h" and
352 "common/gdb_optional.h".
353 (follow_fork_inferior): Use
354 scoped_restore_current_pspace_and_thread.
355 (scoped_restore_exited_inferior): New class.
356 (handle_vfork_child_exec_or_exit): Use
357 scoped_restore_exited_inferior,
358 scoped_restore_current_pspace_and_thread,
359 scoped_restore_current_thread and scoped_restore.
360 (fetch_inferior_event): Use scoped_restore_current_thread.
361 * linespec.c (decode_line_full, decode_line_1): Use
362 scoped_restore_current_program_space.
363 * mi/mi-main.c: Include "progspace-and-thread.h".
364 (exec_continue): Use scoped_restore_current_thread.
365 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
366 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
367 * proc-service.c (ps_pglobal_lookup): Use
368 scoped_restore_current_program_space.
369 * progspace-and-thread.c: New file.
370 * progspace-and-thread.h: New file.
371 * progspace.c (release_program_space, clone_program_space): Use
372 scoped_restore_current_program_space.
373 (restore_program_space, save_current_program_space)
374 (save_current_space_and_thread): Delete.
375 (switch_to_program_space_and_thread): Moved to
376 progspace-and-thread.c.
377 * progspace.h (save_current_program_space)
378 (save_current_space_and_thread): Delete declarations.
379 (scoped_restore_current_program_space): New class.
380 * remote.c (remote_btrace_maybe_reopen): Use
381 scoped_restore_current_thread.
382 * symtab.c: Include "progspace-and-thread.h".
383 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
384 * thread.c (print_thread_info_1): Use
385 scoped_restore_current_thread.
386 (struct current_thread_cleanup): Delete.
387 (do_restore_current_thread_cleanup)
388 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
389 (scoped_restore_current_thread::~scoped_restore_current_thread):
391 (make_cleanup_restore_current_thread): Rename/convert to ...
392 (scoped_restore_current_thread::scoped_restore_current_thread):
394 (thread_apply_all_command): Use scoped_restore_current_thread.
395 (thread_apply_command): Use scoped_restore_current_thread.
396 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
397 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
399 2017-05-04 Pedro Alves <palves@redhat.com>
401 * thread.c (make_cleanup_restore_current_thread): Move
402 find_thread_ptid call before the is_stopped call. Assert that the
403 thread is found. Replace is_stopped call by checking the thread's
404 state directly. Remove unnecessary NULL-thread check.
406 2017-05-04 Pedro Alves <palves@redhat.com>
408 * corelow.c (thread_section_name): New class.
409 (get_core_register_section, get_core_siginfo): Use it.
411 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
413 * corelow.c (sniff_core_bfd): Remove extra semicolon.
414 (get_core_register_section): Remove xfree of NULL pointer.
416 2017-05-03 Alan Hayward <alan.hayward@arm.com>
418 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
419 * regcache.c (regcache::raw_supply_zeroed): New function.
420 * regcache.h (regcache::raw_supply_zeroed): New declaration.
422 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
424 * gdbarch.sh: Remove commented out definition of
426 * gdbarch.h: Re-generate.
428 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
430 * configure: Regenerate.
432 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
434 * solib-target.c (solib_target_relocate_section_addresses):
435 Remove num_section_bases, num_bases, segment_bases variables.
437 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
439 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
441 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
443 * solib-target.c: Include <vector>
444 (struct lm_info_target) <~lm_info_target>: Remove.
445 <segment_bases, section_bases>: Change type to
446 std::vector<CORE_ADDR>.
447 (library_list_start_segment, library_list_start_section,
448 library_list_end_library,
449 solib_target_relocate_section_addresses): Adjust.
451 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
453 * gdbarch.sh (software_single_step): Change return type to
454 std::vector<CORE_ADDR>.
455 * gdbarch.c, gdbarch.h: Re-generate.
456 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
458 (arm_deal_with_atomic_sequence_raw): Adjust.
459 (thumb_get_next_pcs_raw): Adjust.
460 (arm_get_next_pcs_raw): Adjust.
461 (arm_get_next_pcs): Adjust.
462 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
463 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
464 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
465 (alpha_software_single_step): Adjust.
466 * alpha-tdep.h (alpha_software_single_step): Adjust.
467 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
468 * arm-tdep.c (arm_software_single_step): Adjust.
469 (arm_breakpoint_kind_from_current_state): Adjust.
470 * arm-tdep.h (arm_software_single_step): Adjust.
471 * breakpoint.c (insert_single_step_breakpoint): Adjust.
472 * cris-tdep.c (cris_software_single_step): Adjust.
473 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
474 (micromips_deal_with_atomic_sequence): Adjust.
475 (deal_with_atomic_sequence): Adjust.
476 (mips_software_single_step): Adjust.
477 * mips-tdep.h (mips_software_single_step): Adjust.
478 * moxie-tdep.c (moxie_software_single_step): Adjust.
479 * nios2-tdep.c (nios2_software_single_step): Adjust.
480 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
481 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
482 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
483 * s390-linux-tdep.c (s390_software_single_step): Adjust.
484 * sparc-tdep.c (sparc_software_single_step): Adjust.
485 * spu-tdep.c (spu_software_single_step): Adjust.
486 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
488 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
490 * gdbarch.sh: Use semi-colon as field separator instead of colon.
491 * gdbarch.h: Re-generate.
493 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
495 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
496 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
497 * python/py-instruction.c, python/py-instruction.h: New file.
498 * python/py-record.c: Add py-instruction.h include.
499 (gdbpy_initialize_record): Make gdb.Instruction a super class of
500 gdb.RecordInstruction.
501 * python/python-internal.h: Add gdbpy_initialize_instruction
503 * python/python.c (do_start_initialization): Add
504 gdbpy_initialize_instruction.
506 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
508 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
510 (btrace_func_from_recpy_func): New function.
511 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
512 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
513 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
514 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
515 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
516 Also, use new helper functions.
517 (btpy_list_item): Use new helper functions.
518 (recpy_bt_function_call_history): Use new type name.
519 (btpy_call_getset): Remove.
520 (gdbpy_initialize_btrace): Remove code to initialize
521 gdb.BtraceFunctionCall.
522 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
523 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
524 recpy_bt_func_prev, recpy_bt_func_next): New export.
525 * python/py-record.c (recpy_func_type): New static object.
526 (recpy_func_new, recpy_func_level, recpy_func_symbol,
527 recpy_func_instructions, recpy_func_up, recpy_func_prev,
528 recpy_func_next): New function.
529 (recpy_element_hash, recpy_element_richcompare): Updated comment.
530 (recpy_func_getset): New static object.
531 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
532 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
534 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
536 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
537 (btpy_object, btpy_insn_type, btpy_new): Remove.
538 (btpy_list_object): Use gdb.RecordInstruction type instead of
539 gdb.BtraceInstruction type.
540 (btrace_insn_from_recpy_insn): New function.
541 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
543 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
544 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
545 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
546 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
547 instead of btpy_object.
548 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
549 btpy_insn_data, btpy_insn_decode): Rename to ...
550 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
551 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
552 recpy_bt_insn_decode): This. Also, use new helper functions.
553 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
555 (btpy_insn_getset): Remove.
556 (gdbpy_initialize_btrace): Remove code to initialize
557 gdb.BtraceInstruction. Use recpy_element_object.
558 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
559 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
560 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
561 * python/py-record.c (recpy_insn_type): New static object.
562 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
563 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
564 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
566 (recpy_insn_getset): New static object.
567 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
568 * python/py-record.h (recpy_element_object): New typedef.
569 (recpy_insn_type, recpy_insn_new): New export.
571 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
573 * py-record-btrace.c (btpy_insn_new): Removed.
574 (btpy_insn_or_gap_new): New function.
575 (btpy_insn_error): Removed.
576 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
577 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
578 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
579 btpy_insn_or_gap_new instead of btpy_insn_new.
580 (btpy_insn_getset): Remove btpy_insn_error.
581 * py-record.c (recpy_gap_type): New static object.
582 (recpy_gap_object): New typedef.
583 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
584 recpy_gap_reason_string): New function.
585 (recpy_gap_getset): New static object.
586 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
587 * py-record.h (recpy_gap_new): New export.
589 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
591 * python/py-record.c (recpy_ptid): Remove.
592 (recpy_record_getset): Remove recpy_ptid.
594 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
596 * btrace.c (btrace_fetch): Set inferior_ptid.
597 * python/py-record-btrace.c: Add "py-record.h" include.
598 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
599 recpy_bt_end, recpy_bt_instruction_history,
600 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
601 in gdb.Record object instead of current ptid.
602 * python/py-record.c: Include new "py-record.h" file.
603 (recpy_record_object): Moved to py-record.h.
604 * python/py-record.h: New file.
606 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
608 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
609 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
612 2017-05-01 Joel Brobecker <brobecker@adacore.com>
614 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
615 the past maintainers section.
617 2017-04-28 Yao Qi <yao.qi@linaro.org>
619 * infcmd.c (get_return_value): Use regcache ctor, and remove
622 2017-04-28 Yao Qi <yao.qi@linaro.org>
623 Pedro Alves <palves@redhat.com>
625 * regcache.c (regcache::regcache): New tag dispatch ctor.
626 (do_cooked_read): Moved above.
627 (regcache_dup): Use the tag dispatch ctor..
628 * regcache.h (regcache): Declare ctor, delete copy ctor and
629 assignment operator, remove friend regcache_dup.
631 2017-04-28 Yao Qi <yao.qi@linaro.org>
633 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
634 call method save instead of regcache_cpy.
635 * regcache.h (struct regcache): Make regcache_dup a friend.
637 2017-04-28 Yao Qi <yao.qi@linaro.org>
639 * regcache.c (struct regcache): Move to regcache.h
640 (regcache::arch): New method.
641 (regcache_get_ptid): Update.
642 (get_regcache_arch): Call arch method.
643 (get_regcache_aspace): Call method aspace.
644 (register_buffer): Change it to method.
645 (regcache_save): Change it to regcache::save.
646 (regcache_restore): Likewise.
647 (regcache_cpy_no_passthrough): Remove the declaration.
648 (regcache_cpy): Call methods restore and cpy_no_passthrough.
649 (regcache_cpy_no_passthrough): Change it to method
651 (regcache_register_status): Change it to method
653 (regcache_invalidate): Change it to method invalidate.
654 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
655 (regcache_raw_update): Change it to method raw_update.
656 (regcache_raw_read): Likewise.
657 (regcache_raw_read_signed): Likewise.
658 (regcache_raw_read_unsigned): Likewise.
659 (regcache_raw_write_signed): Likewise.
660 (regcache_raw_write_unsigned): Likewise.
661 (regcache_cooked_read): Likewise.
662 (regcache_cooked_read_value): Likewise.
663 (regcache_cooked_read_signed): Likewise.
664 (regcache_cooked_read_unsigned): Likewise.
665 (regcache_cooked_write_signed): Likewise.
666 (regcache_cooked_write_unsigned): Likewise.
667 (regcache_raw_set_cached_value): Likewise.
668 (regcache_raw_write): Likewise.
669 (regcache_cooked_write): Likewise.
670 (regcache_xfer_part): Likewise.
671 (regcache_raw_read_part): Likewise.
672 (regcache_raw_write_part): Likewise.
673 (regcache_cooked_read_part): Likewise.
674 (regcache_cooked_write_part): Likewise.
675 (regcache_raw_supply): Likewise.
676 (regcache_raw_collect): Likewise.
677 (regcache_transfer_regset): Likewise.
678 (regcache_supply_regset): Likewise.
679 (regcache_collect_regset): Likewise.
680 (regcache_debug_print_register): Likewise.
681 (enum regcache_dump_what): Move it to regcache.h.
682 (regcache_dump): Change it to method dump.
683 * regcache.h (enum regcache_dump_what): New.
684 (class regcache): New.
685 * target.c (target_fetch_registers): Call method
686 debug_print_register.
687 (target_store_registers): Likewise.
689 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
691 * windows-nat.c (struct lm_info_windows): Initialize field.
692 (windows_make_so): Allocate lm_info_windows with new.
693 (windows_free_so): Free lm_info_windows with delete.
695 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
697 * solib-darwin.c (struct lm_info_darwin): Initialize field.
698 (darwin_current_sos): Allocate lm_info_darwin with new, remove
700 (darwin_free_so): Free lm_info_darwin with delete.
702 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
704 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
705 <l_addr_p>: Change type to bool.
706 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
707 (svr4_free_so): Free lm_info_svr4 with delete.
708 (svr4_copy_library_list): Replace memcpy with call to copy
710 (library_list_start_library, svr4_default_sos): Allocate
711 lm_info_svr4 with new.
713 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
715 * solib-target.c (struct lm_info_target): Add destructor,
717 <name>: Change type to std::string.
718 (library_list_start_library): Allocate lm_info_target with new.
719 (solib_target_free_library_list): Free lm_info_target with
721 (solib_target_current_sos): Adapt to std::string.
722 (solib_target_free_so): Free lm_info_target with delete.
724 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
726 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
728 (frv_current_sos): Allocate lm_info_frv with new.
729 (frv_relocate_main_executable): Free lm_info_frv with delete,
731 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
733 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
735 * solib-frv.c (struct lm_info_frv): Fix indentation.
737 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
739 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
741 (dsbt_current_sos): Allocate lm_info_dsbt with new.
742 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
743 and allocate with new.
744 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
746 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
748 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
749 <filename, member_name>: Change type to std::string.
750 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
751 (library_list_start_library): Allocate lm_info_aix with new.
752 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
753 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
754 with copy constructor.
756 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
758 * solist.h (struct lm_info): Remove.
759 (struct lm_info_base): New class.
760 (struct so_list) <lm_info>: Change type to lm_info_base *.
761 * nto-tdep.c (struct lm_info): Remove.
763 * solib-aix.c (struct lm_info): Rename to ...
764 (struct lm_info_aix): ... this. Extend lm_info_base.
765 (lm_info_p): Rename to ...
766 (lm_info_aix_p): ... this, and adjust.
767 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
768 solib_aix_parse_libraries, library_list_start_library,
769 solib_aix_free_library_list, solib_aix_parse_libraries,
770 solib_aix_get_library_list,
771 solib_aix_relocate_section_addresses, solib_aix_free_so,
772 solib_aix_get_section_offsets,
773 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
775 (struct solib_aix_inferior_data) <library_list>: Adjust.
776 * solib-darwin.c (struct lm_info): Rename to ...
777 (struct lm_info_darwin): ... this. Extend lm_info_base.
778 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
779 * solib-dsbt.c (struct lm_info): Rename to ...
780 (struct lm_info_dsbt): ... this. Extend lm_info_base.
781 (struct dsbt_info) <main_executable_lm_info): Adjust.
782 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
783 dsbt_relocate_section_addresses): Adjust.
784 * solib-frv.c (struct lm_info): Rename to ...
785 (struct lm_info_frv): ... this. Extend lm_info_base.
786 (main_executable_lm_info): Adjust.
787 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
788 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
789 find_canonical_descriptor_in_load_object,
790 frv_fdpic_find_canonical_descriptor): Adjust.
791 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
793 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
794 svr4_clear_so, svr4_copy_library_list,
795 library_list_start_library, svr4_default_sos, svr4_read_so_list,
796 svr4_current_sos, svr4_fetch_objfile_link_map,
797 solist_update_incremental): Adjust.
798 * solib-svr4.h (struct lm_info_svr4): Move here from
800 * solib-target.c (struct lm_info): Rename to ...
801 (struct lm_info_target): ... this. Extend lm_info_base.
802 (lm_info_p): Rename to ...
803 (lm_info_target_p): ... this.
804 (solib_target_parse_libraries, library_list_start_segment,
805 library_list_start_section, library_list_start_library,
806 library_list_end_library, solib_target_free_library_list,
807 solib_target_current_sos, solib_target_free_so,
808 solib_target_relocate_section_addresses): Adjust.
809 * windows-nat.c (struct lm_info): Rename to ...
810 (struct lm_info_windows): ... this. Extend lm_info_base.
811 (windows_make_so, handle_load_dll, handle_unload_dll,
812 windows_xfer_shared_libraries): Adjust.
814 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
816 * solib-darwin.c (struct darwin_so_list): Remove.
817 (darwin_current_sos): Allocate an so_list object instead of a
818 darwin_so_list, separately allocate an lm_info object.
819 (darwin_free_so): Free lm_info.
821 2017-04-28 John Baldwin <jhb@FreeBSD.org>
823 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
824 with fprintf_filtered.
826 2017-04-28 Yao Qi <yao.qi@linaro.org>
828 * regcache.c (regcache::regcache): New function.
829 (regcache::~regcache): New function.
830 (regcache_xmalloc_1): Remove.
831 (regcache_xmalloc): Call new regcache.
832 (regcache_xfree): Call delete regcache.
833 (get_thread_arch_aspace_regcache): Call new regcache.
835 2017-04-28 Yao Qi <yao.qi@linaro.org>
837 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
838 lwp instead of ptid_get_lwp.
840 2017-04-28 Yao Qi <yao.qi@linaro.org>
842 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
843 lwp_info instead of getting from inferior_ptid.
845 2017-04-27 Keith Seitz <keiths@redhat.com>
847 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
848 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
849 (CV_CONVERSION_BADNESS): Define.
850 (rank_one_type): Remove overly restrictive rvalue reference
852 Add cv-qualifier checks and subranks for type equality.
853 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
854 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
855 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
857 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
859 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
860 count when creating the object.
862 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
863 Ulrich Weigand <uweigand@de.ibm.com>
865 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
866 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
868 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
869 (process_xcoff_symbol): Likewise.
870 (scan_xcoff_symtab): Likewise.
872 2017-04-26 Alan Hayward <alan.hayward@arm.com>
874 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
875 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
876 (ia64_access_reg): Use get_frame_register_unsigned.
877 (ia64_access_rse_reg): Likewise.
878 (ia64_libunwind_frame_prev_register): Likewise.
880 2017-04-26 Jiong Wang <jiong.wang@arm.com>
882 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
883 * gdbarch.c: Regenerated.
884 * gdbarch.h: Regenerated.
885 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
887 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
888 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
889 (enum cfa_how_kind): Move to ...
890 (struct dwarf2_frame_state_reg_info): Likewise.
891 (struct dwarf2_frame_state): Likewise.
892 * dwarf2-frame.h: ... here.
893 (dwarf2_frame_state_alloc_regs): New declaration.
894 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
895 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
897 2017-04-26 Alan Hayward <alan.hayward@arm.com>
899 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
900 regcache_raw_read_unsigned.
901 (xtensa_pseudo_register_write): Likewise.
903 2017-04-26 Alan Hayward <alan.hayward@arm.com>
905 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
906 (nds32_pseudo_register_write): Likewise.
908 2017-04-25 Yao Qi <yao.qi@linaro.org>
910 * regcache.c (struct regcache) <readonly_p>: Change its type
912 (regcache_xmalloc_1): Update parameter type and callers update.
914 2017-04-25 Yao Qi <yao.qi@linaro.org>
916 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
917 set_gdbarch_wchar_bit.
918 * arm-tdep.c (arm_gdbarch_init): Likewise.
920 2017-04-25 Pedro Alves <palves@redhat.com>
922 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
923 (BothAreRelocatable, memcopy, memmove): Don't define.
924 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
927 2017-04-25 Pedro Alves <palves@redhat.com>
929 * common/common-defs.h: Include "common/poison.h".
930 * common/function-view.h: (Not, Or, Requires): Move to traits.h
932 * common/poison.h: New file.
933 * common/traits.h: Include <type_traits>.
934 (Not, Or, Requires): New, moved from common/function-view.h.
936 2017-04-25 Pedro Alves <palves@redhat.com>
938 * breakpoint.h (struct breakpoint): In-class initialize all
939 fields. Make boolean fields "bool".
940 * breakpoint.c (init_raw_breakpoint_without_location): Remove
941 memset call and initializations no longer necessary.
943 2017-04-25 Pedro Alves <palves@redhat.com>
945 * btrace.c (pt_btrace_insn_flags): Change parameter type to
947 (pt_btrace_insn): New function.
948 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
950 2017-04-25 Pedro Alves <palves@redhat.com>
952 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
953 "base" field and inherit from "bp_location" instead. Add
955 (allocate_location_exception): Use new non-default ctor.
956 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
957 (init_bp_location): Convert to ...
958 (bp_location::bp_location): ... this new ctor, and remove memset
960 (base_breakpoint_allocate_location): Use the new non-default ctor.
961 * breakpoint.h (bp_location): Now a class. Declare default and
962 non-default ctors. In-class initialize all members.
963 (init_bp_location): Remove declaration.
965 2017-04-25 Pedro Alves <palves@redhat.com>
967 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
970 2017-04-24 Yao Qi <yao.qi@linaro.org>
972 * doublest.c (convert_doublest_to_floatformat): Call
973 floatformat_totalsize_bytes.
975 2017-04-22 Tom Tromey <tom@tromey.com>
977 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
979 * stack.c (print_frame): Use ui_out_emit_list.
980 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
982 * mi/mi-main.c (print_one_inferior)
983 (mi_cmd_data_list_register_names)
984 (mi_cmd_data_list_register_values, mi_cmd_list_features)
985 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
987 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
988 (mi_output_solib_attribs): Use ui_out_emit_list,
990 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
991 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
992 (mi_cmd_stack_list_args, list_args_or_locals): Use
994 * disasm.c (do_assembly_only): Use ui_out_emit_list.
995 * breakpoint.c (print_solib_event, output_thread_groups): Use
998 2017-04-22 Tom Tromey <tom@tromey.com>
1000 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
1001 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
1002 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
1004 2017-04-22 Tom Tromey <tom@tromey.com>
1006 * tracepoint.c (tvariables_info_1)
1007 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
1009 2017-04-22 Tom Tromey <tom@tromey.com>
1011 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
1012 annotate_arg_emitter.
1013 * breakpoint.c (print_mention_watchpoint)
1014 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
1015 * annotate.h (struct annotate_arg_emitter): New.
1017 2017-04-22 Tom Tromey <tom@tromey.com>
1019 * record-btrace.c (record_btrace_insn_history)
1020 (record_btrace_insn_history_range, record_btrace_call_history)
1021 (record_btrace_call_history_range): Use ui_out_emit_tuple.
1022 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
1024 * stack.c (print_frame_info): Use ui_out_emit_tuple.
1025 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
1026 * skip.c (skip_info): Use ui_out_emit_tuple.
1027 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
1028 * progspace.c (print_program_space): Use ui_out_emit_tuple.
1029 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
1030 * osdata.c (info_osdata): Use ui_out_emit_tuple.
1031 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
1033 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
1034 (output_register, mi_cmd_data_read_memory)
1035 (mi_cmd_data_read_memory_bytes, mi_load_progress)
1036 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
1037 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
1038 Use ui_out_emit_tuple.
1039 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
1041 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
1042 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
1043 * linux-thread-db.c (info_auto_load_libthread_db): Use
1045 * inferior.c (print_inferior): Use ui_out_emit_tuple.
1046 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
1047 * disasm.c (do_mixed_source_and_assembly_deprecated)
1048 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
1049 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
1050 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
1051 * breakpoint.c (print_one_breakpoint_location)
1052 (print_one_breakpoint): Use ui_out_emit_tuple.
1053 * auto-load.c (print_script, info_auto_load_cmd): Use
1055 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
1057 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
1059 * thread.c (print_thread_info_1): Remove dead code.
1061 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1063 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
1065 * arm-tdep.c (selftests::arm_record_test): Likewise.
1067 2017-04-21 Yao Qi <yao.qi@linaro.org>
1069 * regcache.c (regcache_restore): Remove argument 2. Replace
1070 argument 3 with regcache. Get register status from
1071 src->register_status and get register contents from
1072 register_buffer (src, regnum).
1073 (regcache_cpy): Update.
1075 2017-04-19 Pedro Alves <palves@redhat.com>
1077 * gdbthread.h (thread): Add missing closing parenthesis in
1080 2017-04-19 Pedro Alves <palves@redhat.com>
1082 * common/refcounted-object.h: New file.
1083 * gdbthread.h: Include "common/refcounted-object.h".
1084 (thread_info): Inherit from refcounted_object and add comments.
1085 (thread_info::incref, thread_info::decref)
1086 (thread_info::m_refcount): Delete.
1087 (thread_info::deletable): Use the refcounted_object::refcount()
1089 * inferior.c (current_inferior_): Add comment.
1090 (set_current_inferior): Increment/decrement refcounts.
1091 (prune_inferiors, remove_inferior_command): Skip inferiors marked
1092 not-deletable instead of comparing with the current inferior.
1093 (initialize_inferiors): Increment the initial inferior's refcount.
1094 * inferior.h (struct inferior): Forward declare.
1095 Include "common/refcounted-object.h".
1096 (current_inferior, set_current_inferior): Move declaration to
1097 before struct inferior's definition, and fix comment.
1098 (inferior): Inherit from refcounted_object. Add comments.
1099 * thread.c (switch_to_thread_no_regs): Reference the thread's
1100 inferior pointer directly instead of doing a ptid lookup.
1101 (switch_to_no_thread): New function.
1102 (switch_to_thread(thread_info *)): New function, factored out
1104 (switch_to_thread(ptid_t)): ... this.
1105 (restore_current_thread): Delete.
1106 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
1107 fields, and add 'inf' field.
1108 (do_restore_current_thread_cleanup): Check whether old->inf is
1109 alive instead of looking up an inferior by ptid. Use
1110 switch_to_thread and switch_to_no_thread.
1111 (restore_current_thread_cleanup_dtor): Use old->inf directly
1112 instead of lookup up an inferior by id. Decref the inferior.
1113 Don't restore 'removable'.
1114 (make_cleanup_restore_current_thread): Same the inferior pointer
1115 in old, instead of the inferior number. Incref the inferior.
1116 Don't save/clear 'removable'.
1118 2017-04-19 Pedro Alves <palves@redhat.com>
1120 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1121 unittests/scoped_restore-selftests.c.
1122 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
1123 * common/scoped_restore.h (scoped_restore_base): Make "class".
1124 (scoped_restore_base::release): New public method.
1125 (scoped_restore_base::scoped_restore_base): New protected ctor.
1126 (scoped_restore_base::m_saved_var): New protected field.
1127 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
1128 scoped_restore_base base class instead of m_saved_var directly.
1129 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
1130 (scoped_restore_tmpl::scoped_restore_tmpl(const
1131 scoped_restore_tmpl<T>&)): Likewise.
1132 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
1134 (scoped_restore_tmpl::saved_var): New method.
1135 (scoped_restore_tmpl::m_saved_var): Delete.
1136 * inferior.h (inferior::detaching): Now a bool.
1137 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
1139 * unittests/scoped_restore-selftests.c: New file.
1141 2017-04-19 Pedro Alves <palves@redhat.com>
1143 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
1144 Re-sort in alphabetic order.
1146 2017-04-18 Pedro Alves <palves@redhat.com>
1148 * xml-support.c (obstack_xml_printf): Delete.
1149 * xml-support.h (obstack_xml_printf): Delete.
1151 2017-04-18 Pedro Alves <palves@redhat.com>
1153 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
1154 vdebug, verror, body_text, start_element, end_element, name,
1155 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
1156 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
1157 is_xinclude>: Make private and add m_ prefix.
1158 (gdb_xml_parser::body_text): New method, based on ...
1159 (gdb_xml_body_text): ... this. Adjust.
1160 (gdb_xml_parser::vdebug): New method, based on ...
1161 (gdb_xml_debug): ... this. Adjust.
1162 (gdb_xml_parser::verror): New method, based on ...
1163 (gdb_xml_error): ... this. Adjust.
1164 (gdb_xml_parser::start_element): New method, based on ...
1165 (gdb_xml_start_element): ... this. Adjust.
1166 (gdb_xml_start_element_wrapper): Defer to
1167 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
1168 (gdb_xml_parser::end_element): New method, based on ...
1169 (gdb_xml_end_element_wrapper): ... this. Adjust.
1170 (gdb_xml_parser::~gdb_xml_parser): Adjust.
1171 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
1172 (gdb_xml_parser::use_dtd): New method, based on ...
1173 (gdb_xml_use_dtd): ... this. Adjust.
1174 (gdb_xml_parser::parse): New method, based on ...
1175 (gdb_xml_parse): ... this. Adjust.
1176 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
1177 (xinclude_start_include): Adjust to call the parser's name method.
1178 (xml_xinclude_default, xml_xinclude_start_doctype)
1179 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
1181 (xml_process_xincludes): Adjust to call parser methods.
1182 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
1185 2017-04-18 Pedro Alves <palves@redhat.com>
1187 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
1188 gdb::optional<std::string>.
1189 * xml-support.c: Include <string>.
1190 (scope_level::scope_level(scope_level &&))
1191 (scope_level::~scope_level): Delete.
1192 (scope_level::body): Now a std::string.
1193 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
1194 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
1196 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
1197 (xinclude_parsing_data::output): Now a std::string reference.
1198 (xinclude_start_include): Adjust.
1199 (xml_xinclude_default): Adjust.
1200 (xml_process_xincludes): Add 'output' parameter, and return bool.
1201 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
1203 * xml-tdesc.c: Include <unordered_map> and <string>.
1204 (tdesc_xml_cache): Delete.
1205 (tdesc_xml_cache_s): Delete.
1206 (xml_cache): Now an std::unordered_map.
1207 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
1208 (target_fetch_description_xml): Change return type to
1209 gdb::optional<std::string>, and adjust.
1210 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
1211 (target_fetch_description_xml): Change return type to
1212 gdb::optional<std::string>.
1214 2017-04-18 Pedro Alves <palves@redhat.com>
1216 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1217 unittests/optional-selftests.c.
1218 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
1219 * unittests/optional-selftests.c: New file.
1220 * unittests/optional/assignment/1.cc: New file.
1221 * unittests/optional/assignment/2.cc: New file.
1222 * unittests/optional/assignment/3.cc: New file.
1223 * unittests/optional/assignment/4.cc: New file.
1224 * unittests/optional/assignment/5.cc: New file.
1225 * unittests/optional/assignment/6.cc: New file.
1226 * unittests/optional/assignment/7.cc: New file.
1227 * unittests/optional/cons/copy.cc: New file.
1228 * unittests/optional/cons/default.cc: New file.
1229 * unittests/optional/cons/move.cc: New file.
1230 * unittests/optional/cons/value.cc: New file.
1231 * unittests/optional/in_place.cc: New file.
1232 * unittests/optional/observers/1.cc: New file.
1233 * unittests/optional/observers/2.cc: New file.
1235 2017-04-18 Pedro Alves <palves@redhat.com>
1237 * common/gdb_optional.h: Include common/traits.h.
1238 (in_place_t): New type.
1239 (in_place): New constexpr variable.
1240 (optional::optional): Remove member initialization of
1242 (optional::optional(in_place_t...)): New constructor.
1243 (optional::~optional): Use reset.
1244 (optional::optional(const optional&)): New.
1245 (optional::optional(const optional&&)): New.
1246 (optional::optional(T &)): New.
1247 (optional::optional(T &&)): New.
1248 (operator::operator=(const optional &)): New.
1249 (operator::operator=(optional &&)): New.
1250 (operator::operator= (const T &))
1251 (operator::operator= (T &&))
1252 (operator::emplace (Args &&... args)): Return a T&. Use reset.
1253 (operator::reset): New.
1254 (operator::m_instantiated):: Add in-class initializer.
1255 * common/traits.h: Include <type_traits>.
1256 (struct And): New types.
1258 2017-04-18 Pedro Alves <palves@redhat.com>
1260 * xml-support.c: Include <vector>.
1261 (scope_level::scope_level(const gdb_xml_element *))
1262 (scope_level::scope_level(scope_level&&)): New.
1263 (scope_level::~scope_level): New.
1264 (scope_level_s): Delete.
1265 (gdb_xml_parser::scopes): Now a std::vector.
1266 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
1268 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
1270 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
1271 of the scopes member. Use std::vector::emplace_back.
1273 2017-04-18 Pedro Alves <palves@redhat.com>
1275 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
1277 (gdb_xml_end_element): Change type of first parameter.
1278 (gdb_xml_cleanup): Rename to ...
1279 (gdb_xml_parser::~gdb_xml_parser): ... this.
1280 (gdb_xml_create_parser_and_cleanup): Delete with ...
1281 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
1283 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
1284 using gdb_xml_create_parser_and_cleanup.
1285 (xinclude_parsing_data): Add ctor/dtor.
1286 (xml_xinclude_cleanup): Delete.
1287 (xml_process_xincludes): Create a local xinclude_parsing_data
1288 instead of heap-allocating one. Create a local gdb_xml_parser
1289 instead of heap-allocating one with
1290 gdb_xml_create_parser_and_cleanup.
1292 2017-04-18 John Baldwin <jhb@FreeBSD.org>
1295 * fbsd-nat.c (resume_one_thread_cb): Remove.
1296 (resume_all_threads_cb): Remove.
1297 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
1298 iterate_over_threads.
1300 2017-04-17 Joel Brobecker <brobecker@adacore.com>
1302 * NEWS: Create a new section for the next release branch.
1303 Rename the section of the current branch, now that it has
1306 2017-04-17 Joel Brobecker <brobecker@adacore.com>
1308 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
1309 * version.in: Bump version to 8.0.50.DATE-git.
1311 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
1314 * windows-nat.c (windows_create_inferior): Declare 'allargs'
1315 independently of the host, and fix build breakage on Cygwin.
1317 2017-04-13 Pedro Alves <palves@redhat.com>
1319 * inferior.c (free_inferior): Convert to ...
1320 (inferior::~inferior): ... this dtor.
1321 (inferior::inferior): New ctor, factored out from ...
1322 (add_inferior_silent): ... here. Allocate the inferior with a new
1324 (delete_inferior): Call delete instead of free_inferior.
1325 * inferior.h (gdb_environ, continuation): Forward declare.
1326 (inferior): Now a class. Add in-class initialization to all
1327 members. Make boolean fields bool, except 'detaching'.
1328 (inferior::inferior): New explicit ctor.
1329 (inferior::~inferior): New.
1331 2017-04-13 Pedro Alves <palves@redhat.com>
1333 * inferior.c (init_inferior_list): Delete.
1334 * inferior.h (init_inferior_list): Delete.
1336 2017-04-13 Pedro Alves <palves@redhat.com>
1339 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
1340 (top level): Call it twice, with different thread sets.
1342 2017-04-13 Pedro Alves <palves@redhat.com>
1344 * thread.c: Include <algorithm>.
1345 (thread_array_cleanup): Delete.
1346 (scoped_inc_dec_ref): New class.
1347 (live_threads_count): New function.
1348 (set_thread_refcount): Delete.
1349 (tp_array_compar_ascending): Now a bool.
1350 (tp_array_compar): Convert to a std::sort comparison function.
1351 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
1352 and live_threads_count.
1354 2017-04-13 Pedro Alves <palves@redhat.com>
1356 * infrun.c (follow_fork_inferior): Also switch the current
1359 2017-04-13 Pedro Alves <palves@redhat.com>
1361 * breakpoint.c (watch_command_1): Save watchpoint-frame info
1362 before calling create_internal_breakpoint.
1364 2017-04-13 Pedro Alves <palves@redhat.com>
1366 * fork-child.c (execv_argv): New class.
1367 (breakup_args): Refactored as ...
1368 (execv_argv::init_for_no_shell): .. this method of execv_argv.
1369 Copy arguments to storage and replace separators with NULL
1370 terminators in place.
1371 (escape_bang_in_quoted_argument): Adjust to return bool.
1372 (execv_argv::execv_argv): New ctor.
1373 (execv_argv::init_for_shell): New method, factored out from
1374 fork_inferior. Don't strdup strings into the vector.
1375 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
1376 Remove free_vector_argv call.
1378 2017-04-13 Yao Qi <yao.qi@linaro.org>
1380 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
1383 2017-04-13 Yao Qi <yao.qi@linaro.org>
1385 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
1386 * rx-tdep.c (rx_gdbarch_init): Likewise.
1388 2017-04-13 Pedro Alves <palves@redhat.com>
1390 * breakpoint.h (struct breakpoint): Reindent.
1392 2017-04-13 Pedro Alves <palves@redhat.com>
1394 * breakpoint.c (bp_location): Rename to ...
1395 (bp_locations): ... this. All references updated.
1396 (bp_location_count): Rename to ...
1397 (bp_locations_count): ... this. All references updated.
1398 (bp_location_placed_address_before_address_max): Rename to ...
1399 (bp_locations_placed_address_before_address_max): ... this. All
1401 (bp_location_shadow_len_after_address_max): Rename to ...
1402 (bp_locations_shadow_len_after_address_max): ... this. All
1404 (bp_location_compare_addrs): Rename to ...
1405 (bp_locations_compare_addrs): ... this. All references updated.
1406 (bp_location_compare):Rename to ...
1407 (bp_locations_compare): ... this. All references updated.
1408 (bp_location_target_extensions_update): Rename to ...
1409 (bp_locations_target_extensions_update): ... this. All references
1412 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
1414 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
1415 * common/common.m4: Check headers 'termios.h', 'termio.h' and
1417 * common/gdb_termios.h: New file, with parts of "terminal.h".
1418 * inflow.c: Include "gdb_termios.h".
1419 * ser-unix.c: Include "gdb_termios.h".
1420 * terminal.h: Move terminal-related defines to
1421 "common/gdb_termios.h".
1423 2017-04-12 Tom Tromey <tom@tromey.com>
1425 * probe.c (parse_probes): Update.
1426 * location.h (delete_event_location): Don't declare.
1427 (event_location_deleter::operator()): Update.
1428 * location.c (event_location_deleter::operator()): Rename from
1429 delete_event_location.
1430 * linespec.h (linespec_result) <location>: Change type to
1432 * linespec.c (canonicalize_linespec, event_location_to_sals)
1433 (decode_objc): Update.
1434 (linespec_result): Don't call delete_event_location.
1435 * breakpoint.c (create_breakpoints_sal)
1436 (bkpt_probe_create_sals_from_location)
1437 (strace_marker_create_sals_from_location): Update.
1439 2017-04-12 Tom Tromey <tom@tromey.com>
1441 * linespec.h (struct linespec_result): Add constructor and
1443 (init_linespec_result, destroy_linespec_result)
1444 (make_cleanup_destroy_linespec_result): Don't declare.
1445 * linespec.c (init_linespec_result): Remove.
1446 (linespec_result::~linespec_result): Rename from
1447 destroy_linespec_result. Update.
1448 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
1450 * breakpoint.c (create_breakpoint, break_range_command)
1451 (decode_location_default): Update.
1452 * ax-gdb.c (agent_command_1): Update.
1454 2017-04-12 Tom Tromey <tom@tromey.com>
1456 * remote.c (remote_download_tracepoint): Update.
1457 * python/py-breakpoint.c (bppy_get_location): Update.
1458 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
1459 (gdbscm_breakpoint_location): Update.
1460 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
1461 * breakpoint.h (struct breakpoint) <location, location_range_end>:
1462 Change type to event_location_up.
1463 * breakpoint.c (create_overlay_event_breakpoint)
1464 (create_longjmp_master_breakpoint)
1465 (create_std_terminate_master_breakpoint)
1466 (create_exception_master_breakpoint)
1467 (breakpoint_event_location_empty_p, print_breakpoint_location)
1468 (print_one_breakpoint_location, create_thread_event_breakpoint)
1469 (init_breakpoint_sal, create_breakpoint)
1470 (print_recreate_ranged_breakpoint, break_range_command)
1471 (init_ada_exception_breakpoint, say_where): Update.
1472 (base_breakpoint_dtor): Don't call delete_event_location.
1473 (bkpt_print_recreate, tracepoint_print_recreate)
1474 (dprintf_print_recreate, update_static_tracepoint)
1475 (breakpoint_re_set_default): Update.
1477 2017-04-12 Tom Tromey <tom@tromey.com>
1479 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
1480 type of "to_do". Update.
1481 (compute_stack_depth): Use std::vector.
1483 2017-04-12 Tom Tromey <tom@tromey.com>
1485 * printcmd.c (find_instruction_backward): Use std::vector.
1487 2017-04-12 Tom Tromey <tom@tromey.com>
1489 * symfile.c (objfilep): Remove typedef.
1490 (reread_symbols): Use a std::vector.
1492 2017-04-12 Tom Tromey <tom@tromey.com>
1494 * mi/mi-main.c (exec_direction_forward): Remove.
1495 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
1496 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1498 * guile/guile.c (guile_repl_command, guile_command)
1499 (gdbscm_execute_gdb_command): Use scoped_restore.
1500 * go-exp.y (go_parse): Use scoped_restore.
1501 * d-exp.y (d_parse): Use scoped_restore.
1502 * cli/cli-decode.c (cmd_func): Use scoped_restore.
1503 * c-exp.y (c_parse): Use scoped_restore.
1505 2017-04-12 Tom Tromey <tom@tromey.com>
1507 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
1508 (mi_parse): Update return type.
1509 (mi_parse_free): Remove.
1510 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
1511 (mi_parse::~mi_parse): Rename from mi_parse_free.
1512 (mi_parse_cleanup): Remove.
1513 (mi_parse): Return a unique_ptr. Use new.
1514 * mi/mi-main.c (mi_execute_command): Update.
1516 2017-04-12 Tom Tromey <tom@tromey.com>
1518 * location.c (explicit_location_lex_one): Return a
1520 (string_to_explicit_location): Update. Remove cleanups.
1522 2017-04-12 Tom Tromey <tom@tromey.com>
1524 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
1525 (compare_value_and_voffset): Change type. Update.
1526 (compute_vtable_size): Change type of "offset_vec".
1527 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
1528 (gnuv3_get_typeid): Remove extraneous declaration.
1530 2017-04-12 Tom Tromey <tom@tromey.com>
1532 * charset.h (wchar_iterator): Fix comment.
1534 2017-04-12 Tom Tromey <tom@tromey.com>
1536 * charset.c (iconv_wrapper): New class.
1537 (cleanup_iconv): Remove.
1538 (convert_between_encodings): Use it.
1540 2017-04-12 Tom Tromey <tom@tromey.com>
1542 * symfile.h (increment_reading_symtab): Update type.
1543 * symfile.c (decrement_reading_symtab): Remove.
1544 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
1545 * psymtab.c (psymtab_to_symtab): Update.
1546 * dwarf2read.c (dw2_instantiate_symtab): Update.
1548 2017-04-12 Tom Tromey <tom@tromey.com>
1550 * jit.c (struct jit_reader): Declare separately. Add constructor
1551 and destructor. Change type of "handle".
1552 (loaded_jit_reader): Define separately.
1553 (jit_reader_load): Update. New "new".
1554 (jit_reader_unload_command): Use "delete".
1555 * gdb-dlfcn.h (struct dlclose_deleter): New.
1556 (gdb_dlhandle_up): New typedef.
1557 (gdb_dlopen, gdb_dlsym): Update types.
1558 (gdb_dlclose): Remove.
1559 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
1560 (gdb_dlsym): Change type of "handle".
1561 (make_cleanup_dlclose): Remove.
1562 (dlclose_deleter::operator()): Rename from gdb_dlclose.
1563 * compile/compile-c-support.c (load_libcc): Update.
1565 2017-04-12 Tom Tromey <tom@tromey.com>
1567 * symtab.h (find_pcs_for_symtab_line): Change return type.
1568 * symtab.c (find_pcs_for_symtab_line): Change return type.
1569 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
1570 type of "vec". Update.
1571 (ltpy_get_pcs_for_line): Update.
1572 * linespec.c (decode_digits_ordinary): Update.
1574 2017-04-12 Tom Tromey <tom@tromey.com>
1576 * tracepoint.c (actions_command): Update.
1577 * python/python.c (python_command, python_interactive_command):
1579 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
1580 * guile/guile.c (guile_command): Update.
1581 * defs.h (read_command_lines, read_command_lines_1): Return
1583 (command_lines_deleter): New struct.
1584 (command_line_up): New typedef.
1585 * compile/compile.c (compile_code_command)
1586 (compile_print_command): Update.
1587 * cli/cli-script.h (get_command_line, copy_command_lines): Return
1589 (make_cleanup_free_command_lines): Remove.
1590 * cli/cli-script.c (get_command_line, read_command_lines_1)
1591 (copy_command_lines): Return command_line_up.
1592 (while_command, if_command, read_command_lines, define_command)
1593 (document_command): Update.
1594 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
1596 * breakpoint.h (breakpoint_set_commands): Change type of
1598 * breakpoint.c (breakpoint_set_commands): Change type of
1600 (do_map_commands_command, update_dprintf_command_list)
1601 (create_tracepoint_from_upload): Update.
1603 2017-04-12 Tom Tromey <tom@tromey.com>
1605 * tracepoint.c (scope_info): Update.
1606 * spu-tdep.c (spu_catch_start): Update.
1607 * python/python.c (gdbpy_decode_line): Update.
1608 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1609 * python/py-breakpoint.c (bppy_init): Update.
1610 * probe.c (parse_probes): Update.
1611 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1612 * location.h (event_location_deleter): New struct.
1613 (event_location_up): New typedef.
1614 (new_linespec_location, new_address_location, new_probe_location)
1615 (new_explicit_location, copy_event_location)
1616 (string_to_event_location, string_to_event_location_basic)
1617 (string_to_explicit_location): Update return type.
1618 (make_cleanup_delete_event_location): Remove.
1619 * location.c (new_linespec_location, new_address_location)
1620 (new_probe_location, new_explicit_location, copy_event_location):
1621 Return event_location_up.
1622 (delete_event_location_cleanup)
1623 (make_cleanup_delete_event_location): Remove.
1624 (string_to_explicit_location, string_to_event_location_basic)
1625 (string_to_event_location): Return event_location_up.
1626 * linespec.c (canonicalize_linespec, event_location_to_sals)
1627 (decode_line_with_current_source)
1628 (decode_line_with_last_displayed, decode_objc): Update.
1629 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1630 * completer.c (location_completer): Update.
1631 * cli/cli-cmds.c (edit_command, list_command): Update.
1632 * breakpoint.c (create_overlay_event_breakpoint)
1633 (create_longjmp_master_breakpoint)
1634 (create_std_terminate_master_breakpoint)
1635 (create_exception_master_breakpoint)
1636 (create_thread_event_breakpoint): Update.
1637 (init_breakpoint_sal): Update. Remove some dead code.
1638 (create_breakpoint_sal): Change type of "location". Update.
1639 (create_breakpoints_sal, create_breakpoint, break_command_1)
1640 (dprintf_command, break_range_command, until_break_command)
1641 (init_ada_exception_breakpoint)
1642 (strace_marker_create_sals_from_location)
1643 (update_static_tracepoint, trace_command, ftrace_command)
1644 (strace_command, create_tracepoint_from_upload): Update.
1645 * break-catch-throw.c (re_set_exception_catchpoint): Update.
1646 * ax-gdb.c (agent_command_1): Update.
1648 2017-04-12 Pedro Alves <palves@redhat.com>
1650 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
1651 * configure.tgt: Handle i[34567]86-*-go32* and
1652 i[34567]86-*-msdosdjgpp*.
1653 * i386-tdep.c (i386_svr4_reg_to_regnum):
1655 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
1657 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
1658 * i386-go32-tdep.c: New file.
1659 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
1662 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
1664 * aix-thread.c (pd_status2str): Change return type to const char *.
1666 2017-04-12 Pedro Alves <palves@redhat.com>
1668 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
1669 calls to set_gdbarch_gnu_triplet_regexp.
1671 2017-04-12 Pedro Alves <palves@redhat.com>
1674 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
1676 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
1677 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
1678 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
1679 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
1680 * gdbarch.h, gdbarch.c: Regenerate.
1681 * aarch64-tdep.c (aarch64_gdbarch_init): Override
1682 gdbarch_wchar_bit and gdbarch_wchar_signed.
1683 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
1684 * arm-tdep.c (arm_gdbarch_init): Likewise.
1685 * avr-tdep.c (avr_gdbarch_init): Likewise.
1686 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
1687 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
1688 * i386-tdep.c (i386_go32_init_abi): Likewise.
1689 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
1690 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
1691 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1692 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
1693 * sh-tdep.c (sh_gdbarch_init): Likewise.
1694 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
1695 * sparc64-tdep.c (sparc64_init_abi): Likewise.
1696 * windows-tdep.c (windows_init_abi): Likewise.
1697 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1699 2017-04-12 Pedro Alves <palves@redhat.com>
1702 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
1703 cplus_primitive_type_char32_t>: New enum values.
1704 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
1705 and cplus_primitive_type_char32_t.
1706 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
1707 32, use the archtecture's built-in type for char16_t and char32_t,
1708 respectively. Otherwise, fallback to init_integer_type as before,
1709 but make the type unsigned, and issue a complaint.
1710 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
1712 2017-04-12 Alan Hayward <alan.hayward@arm.com>
1714 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
1715 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
1717 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
1719 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
1722 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
1724 * common/common-utils.c (free_vector_argv): New function.
1725 * common/common-utils.h: Include <vector>.
1726 (free_vector_argv): New prototype.
1727 * darwin-nat.c (darwin_create_inferior): Rewrite function
1728 prototype in order to constify "exec_file" and accept a
1729 "std::string" for "allargs".
1730 * fork-child.c: Include <vector>.
1731 (breakup_args): Rewrite function, using C++.
1732 (fork_inferior): Rewrite function header, constify "exec_file_arg"
1733 and accept "std::string" for "allargs". Update the code to
1734 calculate "argv" based on "allargs". Update calls to "exec_fun"
1736 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
1737 order to constify "exec_file" and accept a "std::string" for
1739 * go32-nat.c (go32_create_inferior): Likewise.
1740 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
1741 * infcmd.c (run_command_1): Constify "exec_file". Use
1742 "std::string" for inferior arguments.
1743 * inferior.h (fork_inferior): Update prototype.
1744 * linux-nat.c (linux_nat_create_inferior): Rewrite function
1745 prototype in order to constify "exec_file" and accept a
1746 "std::string" for "allargs".
1747 * nto-procfs.c (procfs_create_inferior): Likewise.
1748 * procfs.c (procfs_create_inferior): Likewise.
1749 * remote-sim.c (gdbsim_create_inferior): Likewise.
1750 * remote.c (extended_remote_run): Update code to accept
1751 "std::string" as argument.
1752 (extended_remote_create_inferior): Rewrite function prototype in
1753 order to constify "exec_file" and accept a "std::string" for
1755 * rs6000-nat.c (super_create_inferior): Likewise.
1756 (rs6000_create_inferior): Likewise.
1757 * target.h (struct target_ops) <to_create_inferior>: Likewise.
1758 * windows-nat.c (windows_create_inferior): Likewise.
1760 2017-04-11 Pedro Alves <palves@redhat.com>
1762 * thread.c: Fix whitespace throughout.
1764 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
1766 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
1768 2017-04-11 Alan Hayward <alan.hayward@arm.com>
1770 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
1772 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
1775 * osdata.c (info_osdata): Check if 'type' is an empty string
1778 2017-04-10 Pedro Alves <palves@redhat.com>
1780 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
1781 (ptid_to_global_thread_id, in_thread_list)
1782 (do_captured_list_thread_ids, set_resumed, set_running)
1783 (set_executing, set_stop_requested, finish_thread_state)
1784 (validate_registers_access, can_access_registers_ptid)
1785 (print_thread_info_1, switch_to_thread)
1786 (do_restore_current_thread_cleanup)
1787 (make_cleanup_restore_current_thread, thread_command)
1788 (thread_name_command): Use operator== instead of ptid_equal.
1790 2017-04-10 Pedro Alves <palves@redhat.com>
1792 * thread.c (struct current_thread_cleanup) <next>: Delete field.
1793 (current_thread_cleanup_chain): Delete.
1794 (restore_current_thread_cleanup_dtor)
1795 (make_cleanup_restore_current_thread): Remove references to
1796 current_thread_cleanup_chain.
1798 2017-04-10 Alan Hayward <alan.hayward@arm.com>
1800 * msp430-tdep.c (msp430_pseudo_register_read): Never return
1803 2017-04-10 Yao Qi <yao.qi@linaro.org>
1806 * gdbthread.h (thread_info::deletable): New method.
1807 (thread_info::incref): New method.
1808 (thread_info::decref): New method.
1809 (thread_info::refcount): Move it to private.
1810 * infrun.c (save_stop_context): Call inc_refcount.
1811 (release_stop_context_cleanup): Likewise.
1812 * thread.c (set_thread_exited): New function.
1813 (init_thread_list): Delete "tp" only it is deletable, otherwise
1814 call set_thread_exited.
1815 (delete_thread_1): Call set_thread_exited.
1816 (current_thread_cleanup) <inferior_pid>: Remove.
1817 <thread>: New field.
1818 (restore_current_thread_ptid_changed): Removed.
1819 (do_restore_current_thread_cleanup): Adjust.
1820 (restore_current_thread_cleanup_dtor): Don't call
1822 (set_thread_refcount): Use dec_refcount.
1823 (make_cleanup_restore_current_thread): Adjust.
1824 (thread_apply_all_command): Call inc_refcount.
1825 (_initialize_thread): Don't call
1826 observer_attach_thread_ptid_changed.
1828 2017-04-10 Yao Qi <yao.qi@linaro.org>
1830 * thread.c (delete_thread_1): Hoist code on marking thread as
1833 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
1835 * windows-nat.c (windows_detach): Initialize ptid with
1838 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
1840 * unittests/ptid-selftests.c: Fix erroneous assert messages.
1842 2017-04-07 Alan Hayward <alan.hayward@arm.com>
1844 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
1845 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
1846 (bfin_pseudo_register_write): Likewise
1848 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
1850 * common/ptid.h (struct ptid): Change to...
1851 (class ptid_t): ... this.
1852 <ptid_t>: New constructors.
1853 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
1854 matches>: New methods.
1855 <make_null, make_minus_one>: New static methods.
1862 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1863 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
1864 as references, move comment to class ptid_t.
1865 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
1866 ptid_t static methods.
1867 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
1868 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
1869 Take ptid arguments as references, implement using ptid_t methods.
1870 * unittests/ptid-selftests.c: New file.
1871 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1872 unittests/ptid-selftests.c.
1873 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
1875 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
1877 * python/python.c (python_run_simple_file): Cast mode literal to
1878 non-const char pointer as expected by PyFile_FromString.
1880 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
1882 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
1883 minus_one_ptid and null_ptid.
1885 2017-04-05 Pedro Alves <palves@redhat.com>
1887 * warning.m4 (build_warnings): Remove -Wno-write-strings.
1888 * configure: Regenerate.
1890 2017-04-05 Pedro Alves <palves@redhat.com>
1892 * ada-exp.y (yyerror): Constify.
1893 * ada-lang.c (bound_name, get_selections)
1894 (ada_variant_discrim_type)
1895 (ada_variant_discrim_name, ada_value_struct_elt)
1896 (ada_lookup_struct_elt_type, is_unchecked_variant)
1897 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
1898 (catch_ada_exception_command_split)
1899 (catch_ada_assert_command_split, catch_assert_command)
1900 (ada_op_name): Constify.
1901 * ada-lang.h (ada_yyerror, get_selections)
1902 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
1903 * arc-tdep.c (arc_print_frame_cache): Constify.
1904 * arm-tdep.c (arm_skip_stub): Constify.
1905 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
1906 (gen_aggregate_elt_ref): Constify.
1907 * bcache.c (print_bcache_statistics): Constify.
1908 * bcache.h (print_bcache_statistics): Constify.
1909 * break-catch-throw.c (catch_exception_command_1):
1910 * breakpoint.c (struct ep_type_description::description):
1912 (add_solib_catchpoint): Constify.
1913 (catch_fork_command_1): Add cast.
1914 (add_catch_command): Constify.
1915 * breakpoint.h (add_catch_command, add_solib_catchpoint):
1917 * bsd-uthread.c (bsd_uthread_state): Constify.
1918 * buildsym.c (patch_subfile_names): Constify.
1919 * buildsym.h (next_symbol_text_func, patch_subfile_names):
1921 * c-exp.y (yyerror): Constify.
1922 (token::oper): Constify.
1923 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
1924 * c-varobj.c (cplus_describe_child): Constify.
1925 * charset.c (find_charset_names): Add cast.
1926 (find_charset_names): Constify array and add const_cast.
1927 * cli/cli-cmds.c (complete_command, cd_command): Constify.
1928 (edit_command): Constify.
1929 * cli/cli-decode.c (lookup_cmd): Constify.
1930 * cli/cli-dump.c (dump_memory_command, dump_value_command):
1932 (struct dump_context): Constify.
1933 (add_dump_command, restore_command): Constify.
1934 * cli/cli-script.c (get_command_line): Constify.
1935 * cli/cli-script.h (get_command_line): Constify.
1936 * cli/cli-utils.c (check_for_argument): Constify.
1937 * cli/cli-utils.h (check_for_argument): Constify.
1938 * coff-pe-read.c (struct read_pe_section_data): Constify.
1939 * command.h (lookup_cmd): Constify.
1940 * common/print-utils.c (decimal2str): Constify.
1941 * completer.c (gdb_print_filename): Constify.
1942 * corefile.c (set_gnutarget): Constify.
1943 * cp-name-parser.y (yyerror): Constify.
1944 * cp-valprint.c (cp_print_class_member): Constify.
1945 * cris-tdep.c (cris_register_name, crisv32_register_name):
1947 * d-exp.y (yyerror): Constify.
1948 (struct token::oper): Constify.
1949 * d-lang.h (d_yyerror): Constify.
1950 * dbxread.c (struct header_file_location::name): Constify.
1951 (add_old_header_file, add_new_header_file, last_function_name)
1952 (dbx_next_symbol_text, add_bincl_to_list)
1953 (find_corresponding_bincl_psymtab, set_namestring)
1954 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
1955 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
1956 * defs.h (command_line_input, print_address_symbolic)
1957 (deprecated_readline_begin_hook): Constify.
1958 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
1960 * event-top.c (handle_line_of_input): Constify and add cast.
1961 * exceptions.c (catch_errors): Constify.
1962 * exceptions.h (catch_errors): Constify.
1963 * expprint.c (print_subexp_standard, op_string, op_name)
1964 (op_name_standard, dump_raw_expression, dump_raw_expression):
1965 * expression.h (op_name, op_string, dump_raw_expression):
1967 * f-exp.y (yyerror): Constify.
1968 (struct token::oper): Constify.
1969 (struct f77_boolean_val::name): Constify.
1970 * f-lang.c (f_word_break_characters): Constify.
1971 * f-lang.h (f_yyerror): Constify.
1972 * fork-child.c (fork_inferior): Add cast.
1973 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
1974 (new_variant): Constify.
1975 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
1976 * gdbarch.c: Regenerate.
1977 * gdbcore.h (set_gnutarget): Constify.
1978 * go-exp.y (yyerror): Constify.
1979 (token::oper): Constify.
1980 * go-lang.h (go_yyerror): Constify.
1981 * go32-nat.c (go32_sysinfo): Constify.
1982 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
1983 * guile/scm-cmd.c (cmdscm_function): Constify.
1984 * guile/scm-param.c (pascm_param_value): Constify.
1985 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1986 (h8300sx_register_name): Constify.
1987 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
1989 * ia64-tdep.c (ia64_register_names): Constify.
1990 * infcmd.c (construct_inferior_arguments): Constify.
1991 (path_command, attach_post_wait): Constify.
1992 * language.c (show_range_command, show_case_command)
1993 (unk_lang_error): Constify.
1994 * language.h (language_defn::la_error)
1995 (language_defn::la_name_of_this): Constify.
1996 * linespec.c (decode_line_2): Constify.
1997 * linux-thread-db.c (thread_db_err_str): Constify.
1998 * lm32-tdep.c (lm32_register_name): Constify.
1999 * m2-exp.y (yyerror): Constify.
2000 * m2-lang.h (m2_yyerror): Constify.
2001 * m32r-tdep.c (m32r_register_names): Constify and make static.
2002 * m68hc11-tdep.c (m68hc11_register_names): Constify.
2003 * m88k-tdep.c (m88k_register_name): Constify.
2004 * macroexp.c (appendmem): Constify.
2005 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
2006 (upgrade_type, parse_external, parse_partial_symbols)
2007 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
2008 (new_symbol): Constify.
2009 * memattr.c (mem_info_command): Constify.
2010 * mep-tdep.c (register_name_from_keyword): Constify.
2011 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
2013 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
2014 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
2015 * mi/mi-main.c (captured_mi_execute_command): Constify and add
2017 (mi_execute_async_cli_command): Constify.
2018 * mips-tdep.c (mips_register_name): Constify.
2019 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
2020 (am33_register_name, am33_2_register_name)
2021 * moxie-tdep.c (moxie_register_names): Constify.
2022 * nat/linux-osdata.c (osdata_type): Constify fields.
2023 * nto-tdep.c (nto_parse_redirection): Constify.
2024 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
2025 (lookup_child_selector): Constify.
2026 (objc_methcall::name): Constify.
2027 * objc-lang.h (lookup_objc_class, lookup_child_selector)
2028 (lookup_struct_typedef): Constify.
2029 * objfiles.c (pc_in_section): Constify.
2030 * objfiles.h (pc_in_section): Constify.
2031 * p-exp.y (struct token::oper): Constify.
2032 (yyerror): Constify.
2033 * p-lang.h (pascal_yyerror): Constify.
2034 * parser-defs.h (op_name_standard): Constify.
2035 (op_print::string): Constify.
2036 (exp_descriptor::op_name): Constify.
2037 * printcmd.c (print_address_symbolic): Constify.
2038 * psymtab.c (print_partial_symbols): Constify.
2039 * python/py-breakpoint.c (stop_func): Constify.
2040 (bppy_get_expression): Constify.
2041 * python/py-cmd.c (cmdpy_completer::name): Constify.
2042 (cmdpy_function): Constify.
2043 * python/py-event.c (evpy_add_attribute)
2044 (gdbpy_initialize_event_generic): Constify.
2045 * python/py-event.h (evpy_add_attribute)
2046 (gdbpy_initialize_event_generic): Constify.
2047 * python/py-evts.c (add_new_registry): Constify.
2048 * python/py-finishbreakpoint.c (outofscope_func): Constify.
2049 * python/py-framefilter.c (get_py_iter_from_func): Constify.
2050 * python/py-inferior.c (get_buffer): Add cast.
2051 * python/py-param.c (parm_constant::name): Constify.
2052 * python/py-unwind.c (fprint_frame_id): Constify.
2053 * python/python.c (gdbpy_parameter_value): Constify.
2054 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
2055 * remote.c (memory_packet_config::name): Constify.
2056 (show_packet_config_cmd, remote_write_bytes)
2057 (remote_buffer_add_string):
2058 * reverse.c (exec_reverse_once): Constify.
2059 * rs6000-tdep.c (variant::name, variant::description): Constify.
2060 * rust-exp.y (rustyyerror): Constify.
2061 * rust-lang.c (rust_op_name): Constify.
2062 * rust-lang.h (rustyyerror): Constify.
2063 * serial.h (serial_ops::name): Constify.
2064 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
2065 (sh_sh3e_register_name, sh_sh2e_register_name)
2066 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
2067 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
2068 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
2069 (sh_sh4al_dsp_register_name): Constify.
2070 * sh64-tdep.c (sh64_register_name): Constify.
2071 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
2072 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
2073 * stabsread.c (patch_block_stabs, read_type_number)
2074 (ref_map::stabs, ref_add, process_reference)
2075 (symbol_reference_defined, define_symbol, define_symbol)
2076 (error_type, read_type, read_member_functions, read_cpp_abbrev)
2077 (read_one_struct_field, read_struct_fields, read_baseclasses)
2078 (read_tilde_fields, read_struct_type, read_array_type)
2079 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
2080 (read_huge_number, read_range_type, read_args, common_block_start)
2081 (find_name_end): Constify.
2082 * stabsread.h (common_block_start, define_symbol)
2083 (process_one_symbol, symbol_reference_defined, ref_add):
2084 * symfile.c (get_section_index, add_symbol_file_command):
2085 * symfile.h (get_section_index): Constify.
2086 * target-descriptions.c (tdesc_type::name): Constify.
2087 (tdesc_free_type): Add cast.
2088 * target.c (find_default_run_target):
2089 (add_deprecated_target_alias, find_default_run_target)
2090 (target_announce_detach): Constify.
2091 (do_option): Constify.
2092 * target.h (add_deprecated_target_alias): Constify.
2093 * thread.c (print_thread_info_1): Constify.
2094 * top.c (deprecated_readline_begin_hook, command_line_input):
2096 (init_main): Add casts.
2097 * top.h (handle_line_of_input): Constify.
2098 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
2099 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
2100 (tfind_command): Rename to ...
2101 (tfind_command_1): ... this and constify.
2102 (tfind_command): New function.
2103 (tfind_end_command, tfind_start_command): Adjust.
2104 (encode_source_string): Constify.
2105 * tracepoint.h (encode_source_string): Constify.
2106 * tui/tui-data.c (tui_partial_win_by_name): Constify.
2107 * tui/tui-data.h (tui_partial_win_by_name): Constify.
2108 * tui/tui-source.c (tui_set_source_content_nil): Constify.
2109 * tui/tui-source.h (tui_set_source_content_nil): Constify.
2110 * tui/tui-win.c (parse_scrolling_args): Constify.
2111 * tui/tui-windata.c (tui_erase_data_content): Constify.
2112 * tui/tui-windata.h (tui_erase_data_content): Constify.
2113 * tui/tui-winsource.c (tui_erase_source_content): Constify.
2114 * tui/tui.c (tui_enable): Add cast.
2115 * utils.c (defaulted_query): Constify.
2116 (init_page_info): Add cast.
2117 (puts_debug, subset_compare): Constify.
2118 * utils.h (subset_compare): Constify.
2119 * varobj.c (varobj_format_string): Constify.
2120 * varobj.h (varobj_format_string): Constify.
2121 * vax-tdep.c (vax_register_name): Constify.
2122 * windows-nat.c (windows_detach): Constify.
2123 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
2124 * xml-support.c (gdb_xml_end_element): Constify.
2125 * xml-tdesc.c (tdesc_start_reg): Constify.
2126 * xstormy16-tdep.c (xstormy16_register_name): Constify.
2127 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
2128 * xtensa-tdep.h (xtensa_register_t::name): Constify.
2130 2017-04-05 Pedro Alves <palves@redhat.com>
2132 * proc-api.c (struct trans): Constify.
2133 (procfs_note): Constify.
2134 * proc-events.c (struct trans, syscall_table):
2135 * proc-flags.c (struct trans): Constify.
2136 * proc-utils.h (procfs_note): Constify.
2137 * proc-why.c (struct trans): Constify.
2138 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
2139 (procfs_detach): Constify.
2140 * sol-thread.c (struct string_map): Constify.
2141 (td_err_string, td_state_string): Constify.
2143 2017-04-05 Pedro Alves <palves@redhat.com>
2145 * proc-api.c (procfs_filename): Don't initialize
2147 (prepare_to_trace): Assume procfs_filename is non-NULL.
2148 (_initialize_proc_api): Give procfs_filename a default value here.
2150 2017-04-05 Pedro Alves <palves@redhat.com>
2152 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
2153 'cond_string' parameter.
2154 (extract_exception_regexp): Constify 'string' parameter.
2155 (catch_exception_command_1): Constify.
2156 * breakpoint.c (init_catchpoint)
2157 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
2159 (ep_parse_optional_if_clause, catch_fork_command_1)
2160 (catch_exec_command_1): Constify.
2161 * breakpoint.h (init_catchpoint): Constify 'cond_string'
2163 (ep_parse_optional_if_clause): Constify.
2164 * cli/cli-utils.c (remove_trailing_whitespace)
2165 (check_for_argument): Constify.
2166 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
2168 (check_for_argument): Likewise.
2170 2017-04-05 Pedro Alves <palves@redhat.com>
2172 * event-top.c (command_line_handler): Add cast to execute_command
2174 * record-btrace.c (cmd_record_btrace_bts_start)
2175 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
2176 (cmd_record_btrace_start): Add cast to execute_command call.
2177 * record-full.c (record_full_goto_insn):
2178 * record.c (record_start, record_stop): Add cast to
2179 execute_command_to_string calls.
2180 (cmd_record_start): Add cast to execute_command calls.
2182 2017-04-05 Pedro Alves <palves@redhat.com>
2184 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
2185 static inline function.
2186 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
2187 array and use gdb_PyArg_ParseTupleAndKeywords.
2188 * python/py-cmd.c (cmdpy_init): Likewise.
2189 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
2190 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
2191 (infpy_search_memory): Likewise.
2192 * python/py-objfile.c (objfpy_add_separate_debug_file)
2193 (gdbpy_lookup_objfile): Likewise.
2194 * python/py-symbol.c (gdbpy_lookup_symbol)
2195 (gdbpy_lookup_global_symbol): Likewise.
2196 * python/py-type.c (gdbpy_lookup_type): Likewise.
2197 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
2198 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
2201 2017-04-05 Pedro Alves <palves@redhat.com>
2203 * python/python-internal.h (gdb_PyGetSetDef): New type.
2204 * python/py-block.c (block_object_getset)
2205 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
2206 * python/py-event.c (event_object_getset)
2207 (finish_breakpoint_object_getset): Likewise.
2208 * python/py-inferior.c (inferior_object_getset): Likewise.
2209 * python/py-infthread.c (thread_object_getset): Likewise.
2210 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
2211 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
2212 * python/py-objfile.c (objfile_getset): Likewise.
2213 * python/py-progspace.c (pspace_getset): Likewise.
2214 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
2216 * python/py-record.c (recpy_record_getset): Likewise.
2217 * python/py-symbol.c (symbol_object_getset): Likewise.
2218 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
2220 * python/py-type.c (type_object_getset, field_object_getset):
2222 * python/py-value.c (value_object_getset): Likewise.
2224 2017-04-05 Pedro Alves <palves@redhat.com>
2226 * python/python-internal.h (gdb_PyObject_CallMethod)
2227 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
2229 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
2230 (PySys_GetObject, PySys_SetPath): New macros.
2232 2017-04-05 Pedro Alves <palves@redhat.com>
2234 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
2235 info_osdata_command.
2236 * osdata.c (info_osdata_command): Rename to ...
2237 (info_osdata): ... this. Constify 'type' parameter, and remove
2238 the 'from_tty' parameter. Accept NULL TYPE.
2239 (info_osdata_command): New function.
2240 * osdata.h (info_osdata_command): Remove declaration.
2241 (info_osdata): New declaration.
2243 2017-04-05 Pedro Alves <palves@redhat.com>
2245 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
2246 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
2247 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
2249 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
2250 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
2251 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
2253 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
2254 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
2255 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2256 (mi_cmd_file_list_exec_source_files)
2257 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
2258 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
2259 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
2261 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
2262 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
2263 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2264 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
2265 (mi_cmd_stack_info_frame): Constify 'command' parameter.
2266 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
2267 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
2268 'command' parameter.
2269 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
2270 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
2271 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
2272 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
2273 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
2274 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
2275 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
2276 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
2277 (mi_cmd_var_set_update_range): Constify 'command' parameter.
2278 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
2279 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
2281 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
2282 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
2283 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
2284 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
2285 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
2286 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
2287 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
2288 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
2289 (mi_cmd_data_list_changed_registers)
2290 (mi_cmd_data_write_register_values)
2291 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2292 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
2293 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
2294 (mi_cmd_list_features, mi_cmd_list_target_features)
2295 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
2296 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
2297 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
2298 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
2299 (mi_cmd_trace_frame_collected): Constify 'command'
2301 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
2302 'command' parameter.
2304 2017-04-05 Pedro Alves <palves@redhat.com>
2306 * ada-lang.c (ada_completer_word_break_characters): Now a const
2308 (ada_get_gdb_completer_word_break_characters): Constify.
2309 * completer.c (gdb_completer_command_word_break_characters)
2310 (gdb_completer_file_name_break_characters)
2311 (gdb_completer_quote_characters): Now const arrays.
2312 (get_gdb_completer_quote_characters): Constify.
2313 (set_rl_completer_word_break_characters): New function.
2314 (set_gdb_completion_word_break_characters)
2315 (complete_line_internal): Use it.
2316 * completer.h (get_gdb_completer_quote_characters): Constify.
2317 (set_rl_completer_word_break_characters): Declare.
2318 * f-lang.c (f_word_break_characters): Constify.
2319 * language.c (default_word_break_characters): Constify.
2320 * language.h (language_defn::la_word_break_characters): Constify.
2321 (default_word_break_characters): Constify.
2322 * top.c (init_main): Use set_rl_completer_word_break_characters.
2324 2017-04-05 Pedro Alves <palves@redhat.com>
2326 * aix-thread.c (aix_thread_pid_to_str)
2327 (aix_thread_extra_thread_info): Constify.
2328 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
2329 * bsd-uthread.c (bsd_uthread_extra_thread_info)
2330 (bsd_uthread_pid_to_str): Constify.
2331 * corelow.c (core_pid_to_str): Constify.
2332 * darwin-nat.c (darwin_pid_to_str): Constify.
2333 * fbsd-nat.c (fbsd_pid_to_str): Constify.
2334 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
2336 * gnu-nat.c (gnu_pid_to_str): Constify.
2337 * go32-nat.c (go32_pid_to_str): Constify.
2338 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
2339 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
2340 * inferior.c (inferior_pid_to_str): Constify.
2341 * linux-nat.c (linux_nat_pid_to_str): Constify.
2342 * linux-tdep.c (linux_core_pid_to_str): Constify.
2343 * linux-thread-db.c (thread_db_pid_to_str)
2344 (thread_db_extra_thread_info): Constify.
2345 * nto-tdep.c (nto_extra_thread_info): Constify.
2346 * nto-tdep.h (nto_extra_thread_info): Constify.
2347 * obsd-nat.c (obsd_pid_to_str): Constify.
2348 * procfs.c (procfs_pid_to_str): Constify.
2349 * ravenscar-thread.c (ravenscar_extra_thread_info)
2350 (ravenscar_pid_to_str): Constify.
2351 * remote-sim.c (gdbsim_pid_to_str): Constify.
2352 * remote.c (remote_threads_extra_info, remote_pid_to_str):
2354 * sol-thread.c (solaris_pid_to_str): Constify.
2355 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
2356 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
2357 * target.c (default_pid_to_str, target_pid_to_str)
2358 (normal_pid_to_str, default_pid_to_str): Constify.
2359 * target.h (target_ops::to_pid_to_str)
2360 (target_ops::to_extra_thread_info): Constify.
2361 (target_pid_to_str, normal_pid_to_str): Constify.
2362 * windows-nat.c (windows_pid_to_str): Constify.
2363 * gdbarch.sh (core_pid_to_str): Constify.
2364 * target-delegates.c: Regenerate.
2365 * gdbarch.h, gdbarch.c: Regenerate.
2367 2017-04-05 Pedro Alves <palves@redhat.com>
2369 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
2370 the memory of the temporary warning_pre_print override.
2371 * utils.c (warning_pre_print): Constify.
2372 * utils.h (warning_pre_print): Constify.
2374 2017-04-05 Pedro Alves <palves@redhat.com>
2376 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
2377 (shell_command): New function.
2378 (make_command): Use std::string.
2379 (init_cli_cmds): Register shell_command instead of shell_escape.
2381 2017-04-05 Pedro Alves <palves@redhat.com>
2383 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
2384 * tracepoint.c (default_collect): Don't initialize.
2386 2017-04-05 Pedro Alves <palves@redhat.com>
2388 * macroexp.c (macro_buffer::shared): Now a bool.
2389 (init_buffer): Update.
2390 (init_shared_buffer): Constify 'addr' parameter.
2391 (substitute_args, expand, macro_expand, macro_expand_next): Remove
2394 2017-04-05 Pedro Alves <palves@redhat.com>
2396 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
2397 * disasm.c (set_disassembler_options): Constify local.
2398 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
2400 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
2403 * tracefile.c (tsave_command): Fix argument parsing for '-r'
2406 2017-04-05 Yao Qi <yao.qi@linaro.org>
2408 * frame.c (frame_unwind_register_unsigned): Call
2409 frame_unwind_register_value.
2411 2017-04-05 Yao Qi <yao.qi@linaro.org>
2413 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
2414 Use gdb_test_multiple, and don't match anchor.
2416 2017-04-05 Pedro Alves <palves@redhat.com>
2418 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
2419 (Write After Approval): Remove Simon Marchi.
2421 2017-04-05 Pedro Alves <palves@redhat.com>
2423 * common/gdb_optional.h (optional::optional): Make constexpr and
2426 2017-04-04 John Baldwin <jhb@FreeBSD.org>
2428 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
2429 (amd64fbsd_jmp_buf_reg_offset): Remove.
2430 (amd64fbsd_supply_uthread): Remove function.
2431 (amd64fbsd_collect_uthread): Remove function.
2432 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
2433 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
2434 (x86_64-*-freebsd*): Remove bsd-uthread.o.
2435 (fbsd-nat.c): Update comment.
2436 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
2437 (i386fbsd_jmp_buf_reg_offset): Remove.
2438 (i386fbsd_supply_uthread): Remove function.
2439 (i386fbsd_collect_uthread): Remove function.
2440 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
2442 2017-04-04 John Baldwin <jhb@FreeBSD.org>
2444 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
2445 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
2446 * NEWS: Mention that support for FreeBSD/alpha was removed.
2447 * alpha-fbsd-tdep.c: Delete file.
2448 * config/alpha/fbsd.mh: Delete file.
2449 * configure.host: Delete alpha*-*-freebsd* and
2450 alpha*-*-kfreebsd*-gnu.
2451 * configure.tgt: Delete alpha*-*-freebsd* and
2452 alpha*-*-kfreebsd*-gnu.
2454 2017-04-04 John Baldwin <jhb@FreeBSD.org>
2456 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
2457 amd64bsd_store_inferior_registers): Use ptid from regcache.
2459 2017-04-04 Pedro Alves <palves@redhat.com>
2461 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
2462 data fields, make them private and add "m_" prefixes.
2463 (lnp_state_machine::lnp_state_machine): New ctor.
2464 (record_line, check_line_address, handle_set_discriminator)
2465 (handle_set_address, handle_advance_pc, handle_special_opcode)
2466 (handle_advance_line, handle_set_file, handle_negate_stmt)
2467 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
2468 (end_sequence, advance_line): New methods.
2469 (m_gdbarch, m_record_lines_p): New fields.
2470 (lnp_reader_state): Delete.
2471 (dwarf_record_line): Rename to ...
2472 (lnp_state_machine::record_line): ... adjust.
2473 (init_lnp_state_machine): Delete.
2474 (lnp_state_machine::lnp_state_machine): New.
2475 (check_line_address): Rename to ...
2476 (lnp_state_machine::check_line_address): This.
2477 (dwarf_decode_lines_1): Remove reference to "reader_state".
2478 Adjust lnp_state_machine having a non-default ctor. Use bool.
2479 State machine internal state manipulation moved to
2480 lnp_state_machine methods.
2482 2017-04-04 Pedro Alves <palves@redhat.com>
2484 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2485 unittests/offset-type-selftests.c.
2486 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
2487 * common/offset-type.h: New file.
2488 * common/preprocessor.h: New file.
2489 * common/traits.h: New file.
2490 * common/valid-expr.h: New file.
2491 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
2492 sect_offset and cu_offset strong typedefs throughout.
2493 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
2494 typedefs throughout.
2495 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
2496 sect_offset and cu_offset strong typedefs throughout.
2497 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
2498 typedefs throughout.
2499 * gdbtypes.h: Include "common/offset-type.h".
2500 (cu_offset): Now an offset type (strong typedef) instead of a
2502 (sect_offset): Likewise.
2503 (union call_site_parameter_u): Rename "param_offset" field to
2505 * unittests/offset-type-selftests.c: New file.
2507 2017-04-04 Pedro Alves <palves@redhat.com>
2509 * common/underlying.h: New file.
2510 * dwarf2read.c: Include "common/gdb_optional.h" and
2511 "common/underlying.h".
2512 (dir_index, file_name_index): New types.
2513 (file_entry): Use them.
2514 (file_entry::include): Use to_underlying.
2515 (line_header::add_file_name): Use dir_index.
2516 (read_formatted_entries): Use gdb::optional. Read form before
2517 writting to file_entry.
2518 (dwarf_decode_line_header): Use dir_index.
2519 (lnp_state_machine::current_file): Use to_underlying.
2520 (lnp_state_machine::file): Change type to file_name_index.
2521 (dwarf_record_line): Use to_underlying.
2522 (init_lnp_state_machine): Use file_name_index.
2523 (dwarf_decode_lines_1): Use dir_index and file_name_index.
2525 2017-04-04 Pedro Alves <palves@redhat.com>
2527 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
2528 operator bool, has_value and get methods.
2530 2017-04-04 Pedro Alves <palves@redhat.com>
2532 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
2534 (line_header): Initialize all data fields. Change type of
2535 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
2536 Change type of include_dirs to std::vector<const char *>. Remove
2537 num_include_dirs, include_dirs_size. Change type of file_names to
2538 std::vector<file_entry>. Remove num_file_names, file_names_size.
2539 (line_header::line_header): New.
2540 (line_header::add_include_dir, line_header::add_file_name): New
2542 (line_header::include_dir_at): Remove NULL check.
2543 (line_header::file_name_at): Add const overload.
2544 (line_header_up): New unique_ptr typedef.
2545 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
2546 std::vector. Remove free_line_header call.
2547 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
2548 free_line_header call.
2549 (free_cu_line_header): Delete.
2550 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
2551 (setup_type_unit_groups): Use line_header_up instead of cleanups.
2552 Adjust to use std::vector.
2553 (free_line_header): Delete.
2554 (free_line_header_voidp): Use delete.
2555 (add_include_dir): Replace with ...
2556 (line_header::add_include_dir): ... this method. Use std::vector.
2557 (add_file_name): Replace with ...
2558 (line_header::add_file_name): ... this method. Use std::vector.
2559 (add_include_dir_stub): Delete.
2560 (read_formatted_entries): Remove memset.
2561 (dwarf_decode_line_header): Return a line_header_up instead of a
2562 raw pointer. Remove cleanup handling. Pass lambdas to
2563 read_formatted_entries. Adjust to use line_header methods.
2564 (dwarf_decode_lines_1): Adjust to use line_header methods.
2565 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
2568 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2570 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
2571 instead of struct ptid.
2573 2017-05-04 Alan Hayward <alan.hayward@arm.com>
2575 * frame.c (get_frame_register_bytes): Unwind using value.
2576 (put_frame_register_bytes): Likewise.
2578 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
2580 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
2583 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2585 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
2587 2017-03-29 Yao Qi <yao.qi@linaro.org>
2589 * gdbthread.h (struct thread_info): Declare constructor and
2590 destructor. Add some in-class member initializers.
2591 * thread.c (free_thread): Remove.
2592 (init_thread_list): Call delete instead of free_thread.
2593 (new_thread): Call thread_info constructor.
2594 (thread_info::thread_info): New function.
2595 (thread_info::~thread_info): New function.
2596 (delete_thread_1): Call delete instead of free_thread.
2597 (make_cleanup_restore_current_thread): Move tp and frame to
2600 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
2602 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
2603 (arc_skip_prologue): Likewise.
2604 (arc_make_frame_cache): Likewise.
2605 (arc_pv_get_operand): New function.
2606 (arc_is_in_prologue): Likewise.
2607 (arc_analyze_prologue): Likewise.
2608 (arc_print_frame_cache): Likewise.
2609 (MAX_PROLOGUE_LENGTH): New constant.
2611 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
2613 * configure.tgt: Add arc-insn.o.
2614 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
2615 (dump_arc_instruction_command): New function.
2616 (arc_fprintf_disasm): Likewise.
2617 (arc_disassemble_info): Likewise.
2618 (arc_insn_get_operand_value): Likewise.
2619 (arc_insn_get_operand_value_signed): Likewise.
2620 (arc_insn_get_memory_base_reg): Likewise.
2621 (arc_insn_get_memory_offset): Likewise.
2622 (arc_insn_get_branch_target): Likewise.
2623 (arc_insn_dump): Likewise.
2624 (arc_insn_get_linear_next_pc): Likewise.
2625 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
2626 (arc_disassemble_info): Likewise.
2627 (arc_insn_get_branch_target): Likewise.
2628 (arc_insn_get_linear_next_pc): Likewise.
2629 * NEWS: Mention new "maint print arc arc-instruction".
2631 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
2633 * arc-tdep (maintenance_print_arc_list): New variable.
2634 (maintenance_print_arc_command): New function.
2636 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
2638 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
2639 Add "limm" and "reserved".
2640 (arc_cannot_fetch_register, arc_cannot_store_register): Add
2641 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
2642 * arc-tdep.h (arc_regnum): Likewise.
2644 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2646 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
2647 for THREADPTR register.
2648 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
2650 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
2651 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
2652 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
2654 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2656 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
2657 registers above gdbarch_num_regs (gdbarch) as privileged in
2660 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2662 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
2663 for a single specified register or for all registers in
2664 a0_base..a0_base + C0_NREGS range.
2665 (supply_gregset_reg): Call regcache_raw_supply for a single
2666 specified register or for all registers in a0_base..a0_base +
2669 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2671 * arch/xtensa.h (C0_NREGS): Add definition.
2672 * xtensa-tdep.c (C0_NREGS): Remove definition.
2674 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2676 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
2677 Drop xtensa_default_isa initialization.
2678 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
2680 2017-03-27 Pedro Alves <palves@redhat.com>
2682 * dwarf2read.c (file_entry) <dir_index>: Add comment.
2683 (file_entry::include_dir): New method.
2684 (line_header::include_dir_at, line_header::file_name_at): New
2686 (setup_type_unit_groups, setup_type_unit_groups)
2687 (psymtab_include_file_name): Simplify using the new methods.
2688 (lnp_state_machine) <the_line_header>: New field.
2689 <file>: Add comment.
2690 (lnp_state_machine::current_file): New method.
2691 (dwarf_record_line): Simplify using the new methods.
2692 (init_lnp_state_machine): Initialize the "the_line_header" field.
2693 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
2694 Simplify using the new methods.
2696 2017-03-27 Pedro Alves <palves@redhat.com>
2698 * cp-name-parser.y (make_empty): Delete.
2699 (demangler_special, nested_name, ptr_operator, array_indicator)
2700 (direct_declarator, declarator_1): Use fill_comp instead of
2703 2017-03-27 Pedro Alves <palves@redhat.com>
2705 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
2706 to ATTRIBUTE_PRINTF.
2707 * solib-target.c (library_list_start_list): Print "string" not
2709 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
2712 2017-03-27 Pedro Alves <palves@redhat.com>
2714 * dwarf2read.c (struct file_and_directory): New.
2715 (dwarf2_get_dwz_file): Adjust to use std::string.
2716 (dw2_get_file_names_reader): Adjust to use file_and_directory.
2717 (find_file_and_directory): Adjust to return a file_and_directory
2719 (read_file_scope): Adjust to use file_and_directory. Remove
2720 make_cleanup/do_cleanups calls.
2721 (open_and_init_dwp_file): Adjust to use std::string. Remove
2722 make_cleanup/do_cleanups calls.
2723 * python/python.c (do_start_initialization): Adjust to ldirname
2724 returning a std::string.
2725 * utils.c (ldirname): Now returns a std::string.
2726 * utils.h (ldirname): Change return type to std::string.
2727 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
2728 returning a std::string.
2729 * xml-tdesc.c (file_read_description_xml): Likewise.
2731 2017-03-24 Alan Hayward <alan.hayward@arm.com>
2733 * regcache.c (regcache_debug_print_register): New function.
2734 * regcache.h (regcache_debug_print_register): New declaration.
2735 * target.c (debug_print_register): Remove.
2736 (target_fetch_registers): Call regcache_debug_print_register.
2737 (target_store_registers): Likewise.
2739 2017-03-24 Pádraig Brady <pbrady@fb.com>
2741 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
2742 reference beyond the 'lh->include_dirs' array before accessing to
2744 (psymtab_include_file_name): Likewise.
2745 (dwarf_decode_lines_1): Likewise.
2746 (dwarf_decode_lines): Likewise.
2747 (file_file_name): Likewise.
2749 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
2751 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
2753 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2754 ps_lsetfpregs): Likewise.
2755 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
2756 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2757 ps_lsetfpregs): Likewise.
2758 * target.c (target_fetch_registers, target_store_registers):
2761 2017-03-23 Alan Hayward <alan.hayward@arm.com>
2763 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
2765 2017-03-23 Yao Qi <yao.qi@linaro.org>
2767 * aarch64-tdep.c (aarch64_process_record_test): Declare.
2768 (_initialize_aarch64_tdep): Register it.
2769 (aarch64_record_load_store): Handle PRFM instruction.
2770 (aarch64_process_record_test): New function.
2772 2017-03-23 Yao Qi <yao.qi@linaro.org>
2774 * aarch64-tdep.c (aarch64_record_load_store): Fix code
2777 2017-03-23 Yao Qi <yao.qi@linaro.org>
2779 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
2781 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2783 python/python.c (do_start_initialization): Fix memory leak.
2785 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
2787 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
2788 using get_ptrace_pid.
2789 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
2791 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
2792 inferior_ptid instead of pid.
2794 2017-03-22 Yao Qi <yao.qi@linaro.org>
2796 * aarch64-tdep.c: Wrap locally used classes in anonymous
2798 * arm-tdep.c: Likewise.
2799 * linespec.c: Likewise.
2800 * ui-out.c: Likewise.
2802 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
2805 * python/lib/gdb/printer/bound_registers.py: Import sys.
2807 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
2809 * windows-nat.c (do_windows_fetch_inferior_registers): Add
2810 windows_thread_info parameter and use it instead of
2812 (windows_fetch_inferior_registers): Don't set current_thread,
2813 pass the thread to do_windows_fetch_inferior_registers. Use
2814 ptid from regcache instead of inferior_ptid.
2815 (do_windows_store_inferior_registers): Add windows_thread_info
2816 parameter and use it instead of current_thread.
2817 (windows_store_inferior_registers): Don't set current_thread,
2818 pass the thread to do_windows_store_inferior_registers. Use
2819 ptid from regcache instead of inferior_ptid.
2821 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
2823 * ser-mingw.c (ser_windows_raw): Remove reference to
2824 struct serial::current_timeout.
2826 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
2829 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
2830 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
2831 (sparc64_fsr_type): Fix %fsr decoding.
2833 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
2835 * python/py-record-btrace.c (btpy_insn_data): Change return type
2838 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
2840 * spu-linux-nat.c (spu_fetch_inferior_registers,
2841 spu_store_inferior_registers): Use ptid from regcache, set and
2842 restore inferior_ptid.
2843 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
2846 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
2848 * i386-linux-nat.c (fetch_register, store_register,
2849 i386_linux_fetch_inferior_registers,
2850 i386_linux_store_inferior_registers): Use ptid from regcache.
2851 * ia64-linux-nat.c (ia64_linux_fetch_register,
2852 ia64_linux_store_register): Likewise.
2853 * inf-ptrace.c (inf_ptrace_fetch_register,
2854 inf_ptrace_store_register): Likewise.
2855 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
2856 m32r_linux_store_inferior_registers): Likewise.
2857 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
2858 m68kbsd_store_inferior_registers): Likewise.
2859 * m68k-linux-nat.c (fetch_register, store_register,
2860 m68k_linux_fetch_inferior_registers,
2861 m68k_linux_store_inferior_registers): Likewise.
2862 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
2863 m88kbsd_store_inferior_registers): Likewise.
2864 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
2865 mips_fbsd_store_inferior_registers): Likewise.
2866 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
2867 mips64_linux_regsets_store_registers): Likewise.
2868 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
2869 mipsnbsd_store_inferior_registers): Likewise.
2870 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
2871 mips64obsd_store_inferior_registers): Likewise.
2872 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
2874 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
2875 ppcfbsd_store_inferior_registers): Likewise.
2876 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
2877 ppc_linux_store_inferior_registers): Likewise.
2878 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
2879 ppcnbsd_store_inferior_registers): Likewise.
2880 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
2881 ppcobsd_store_registers): Likewise.
2882 * procfs.c (procfs_fetch_registers, procfs_store_registers):
2884 * ravenscar-thread.c (ravenscar_fetch_registers,
2885 ravenscar_store_registers, ravenscar_prepare_to_store):
2887 * record-btrace.c (record_btrace_fetch_registers,
2888 record_btrace_store_registers, record_btrace_prepare_to_store):
2890 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
2891 Lookup inferior using ptid from regcache, instead of
2893 * remote.c (remote_fetch_registers, remote_store_registers): Use
2895 * rs6000-nat.c (fetch_register, store_register): Likewise.
2896 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
2897 s390_linux_store_inferior_registers): Likewise.
2898 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
2899 shnbsd_store_inferior_registers): Likewise.
2900 * sol-thread.c (sol_thread_fetch_registers,
2901 sol_thread_store_registers): Likewise.
2902 * sparc-nat.c (sparc_fetch_inferior_registers,
2903 sparc_store_inferior_registers): Likewise.
2904 * tilegx-linux-nat.c (fetch_inferior_registers,
2905 store_inferior_registers): Likewise.
2906 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
2907 vaxbsd_store_inferior_registers): Likewise.
2908 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
2909 store_xtregs): Likewise.
2911 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
2914 * NEWS: Mention support for rvalue references in GDB and python.
2915 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
2916 supports both lvalue and rvalue references.
2918 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
2921 * gdbtypes.c (rank_one_type): Implement overloading
2922 resolution rules regarding rvalue references.
2924 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
2927 * aarch64-tdep.c (aarch64_type_align)
2928 (aarch64_extract_return_value, aarch64_store_return_value): Change
2929 lvalue reference type checks to general reference type checks.
2930 * amd64-tdep.c (amd64_classify): Likewise.
2931 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2933 * arm-tdep.c (arm_type_align, arm_extract_return_value)
2934 (arm_store_return_value): Likewise.
2935 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
2936 * c-typeprint.c (c_print_type): Likewise.
2937 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
2938 (cplus_number_of_children, cplus_describe_child): Likewise.
2939 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
2940 * completer.c (expression_completer): Likewise.
2941 * cp-support.c (make_symbol_overload_list_adl_namespace):
2943 * darwin-nat-info.c (info_mach_region_command): Likewise.
2944 * dwarf2loc.c (entry_data_value_coerce_ref)
2945 (value_of_dwarf_reg_entry): Likewise.
2946 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
2947 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
2949 * findvar.c (extract_typed_address, store_typed_address):
2951 * gdbtypes.c (rank_one_type): Likewise.
2952 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
2953 * infcall.c (value_arg_coerce): Likewise.
2954 * language.c (pointer_type): Likewise.
2955 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
2957 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
2958 * mn10300-tdep.c (mn10300_type_align): Likewise.
2959 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
2960 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
2961 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
2963 * printcmd.c (print_formatted, x_command): Likewise.
2964 * python/py-type.c (typy_get_composite, typy_template_argument):
2966 * python/py-value.c (valpy_referenced_value)
2967 (valpy_get_dynamic_type, value_has_field): Likewise.
2968 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
2969 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
2970 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
2971 * spu-tdep.c (spu_scalar_value_p): Likewise.
2972 * symtab.c (lookup_symbol_aux): Likewise.
2973 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
2974 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
2976 * valops.c (value_cast_pointers, value_cast)
2977 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
2978 (value_struct_elt, value_struct_elt_bitpos)
2979 (value_find_oload_method_list, find_overload_match)
2980 (value_rtti_indirect_type): Likewise.
2981 * valprint.c (val_print_scalar_type_p, generic_val_print):
2983 * value.c (value_actual_type, value_as_address, unpack_long)
2984 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
2985 (coerce_ref): Likewise.
2986 * varobj.c (varobj_get_value_type): Likewise.
2988 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
2991 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
2993 * python/lib/gdb/command/explore.py: Support exploring values
2994 of rvalue reference types.
2995 * python/lib/gdb/types.py: Implement get_basic_type() for
2996 rvalue reference types.
2997 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
2999 * python/py-value.c (valpy_getitem): Add an rvalue reference
3001 (valpy_reference_value): Add new parameter "refcode".
3002 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
3003 New wrappers for valpy_reference_value().
3004 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
3005 (gdbpy_invoke_xmethod): Likewise.
3007 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
3010 * dwarf2read.c (process_die, read_type_die_1): Handle the
3011 DW_TAG_rvalue_reference_type DIE.
3012 (read_tag_reference_type): Add new parameter "refcode".
3014 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
3017 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
3018 (c_type_print_modifier, c_type_print_varspec_suffix)
3019 (c_type_print_base): Support printing rvalue reference types.
3020 * c-valprint.c (c_val_print, c_value_print): Support printing
3021 rvalue reference values.
3023 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
3026 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
3028 * cp-support.c (replace_typedefs): Handle
3029 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
3030 * python/py-type.c (typy_lookup_type): Likewise.
3032 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
3035 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
3036 * parse.c (insert_type): Change assert statement.
3037 (follow_types): Handle rvalue reference types.
3038 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
3041 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
3044 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
3045 value_ref() interface.
3046 * c-valprint.c (c_value_print): Likewise.
3047 * infcall.c (value_arg_coerce): Likewise.
3048 * python/py-value.c (valpy_reference_value): Likewise.
3049 * valops.c (value_cast, value_reinterpret_cast)
3050 (value_dynamic_cast, typecmp): Likewise.
3051 (value_ref): Parameterize by kind of return value reference type.
3052 * value.h (value_ref): Add new parameter "refcode".
3054 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
3057 * dwarf2read.c (read_tag_reference_type): Use
3058 lookup_lvalue_reference_type() instead of lookup_reference_type().
3059 * eval.c (evaluate_subexp_standard): Likewise.
3060 * f-exp.y: Likewise.
3061 * gdbtypes.c (make_reference_type, lookup_reference_type):
3062 Generalize with rvalue reference types.
3063 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
3064 convenience wrappers for lookup_reference_type().
3065 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
3066 reference kind parameter.
3067 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
3068 wrappers for lookup_reference_type().
3069 * guile/scm-type.c (gdbscm_type_reference): Use
3070 lookup_lvalue_reference_type() instead of lookup_reference_type().
3071 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
3072 * parse.c (follow_types): Likewise.
3073 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
3074 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
3076 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
3077 (gdbpy_invoke_xmethod): Likewise.
3078 * stabsread.c: Provide extra argument to make_reference_type()
3080 * valops.c (value_ref, value_rtti_indirect_type): Use
3081 lookup_lvalue_reference_type() instead of lookup_reference_type().
3083 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
3086 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
3087 (TYPE_IS_REFERENCE): New macro.
3088 (struct type): Add rvalue_reference_type field.
3089 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
3091 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
3093 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
3094 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
3095 New function definition.
3096 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
3097 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
3098 New function declaration.
3099 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
3100 * mi/mi-interp.h: New file.
3101 * solib.c (info_sharedlibrary_command): Replace for loop with
3103 * solib.h (update_solib_list): New function declaration.
3104 (so_list_head): Move macro.
3105 * solist.h (ALL_SO_LIBS): New macro.
3107 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
3109 * infcmd.c (post_create_inferior): Remove unused argument in
3111 * remote.c (remote_start_remote): Likewise.
3112 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
3113 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
3114 (enable_break): Likewise.
3115 * solib.c (update_solib_list): Remove unused target argument
3116 and its documentation.
3117 (solib_add): Remove unused target argument. Remove unused
3118 argument in call to update_solib_list.
3119 (info_sharedlibrary_command): Remove unused argument in call
3120 to update_solib_list.
3121 (sharedlibrary_command): Remove unused argument in call to
3123 (handle_solib_event): Likewise.
3124 (reload_shared_libraries): Likewise.
3125 * solib.h (solib_add): Remove unused target argument.
3127 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
3129 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
3130 (s390_displaced_step_fixup): Cover relative branches with the
3131 default fixup handling. This fixes lack of support for some
3132 relative branch instructions.
3134 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3136 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
3139 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3141 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
3142 i386_darwin_store_inferior_registers): Use ptid from regcache.
3144 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3146 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
3147 i386bsd_store_inferior_registers): Use ptid from regcache.
3149 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3151 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
3152 hppaobsd_store_registers): Use ptid from regcache.
3154 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3156 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
3157 hppanbsd_store_registers): Use ptid from regcache.
3159 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3161 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
3162 from regcache. Use get_ptrace_pid.
3164 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3166 * corelow.c (get_core_register_section): Use ptid from regcache,
3169 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3171 * bsd-uthread.c (bsd_uthread_fetch_registers,
3172 bsd_uthread_store_registers): Use ptid from regcache, set and
3173 restore inferior_ptid.
3175 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3177 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
3178 fetch_fp_regs, store_register, store_regs, store_fp_register,
3179 store_fp_regs): Use ptid from regcache.
3181 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3183 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
3184 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
3185 store_vfp_regs): Use ptid from regcache.
3187 2017-03-17 Pedro Alves <palves@redhat.com>
3190 * ser-base.c (ser_base_wait_for): Add comment.
3191 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
3193 * ser-unix.c (hardwire_raw): Remove reference to
3194 scb->current_timeout.
3195 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
3196 (hardwire_ops): Install ser_base_readchar instead of
3198 * serial.h (struct serial) <current_timeout, timeout_remaining>:
3201 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
3204 * python/lib/gdb/printer/bound_registers.py: Add support for
3207 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
3209 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
3210 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
3211 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
3212 byte_offset to subobj_byte_offset. Fix the handling of
3213 DWARF_VALUE_STACK on big-endian targets when coming via an
3215 (dwarf2_evaluate_loc_desc): Adjust call to
3216 dwarf2_evaluate_loc_desc_full.
3217 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
3218 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
3220 2017-03-16 Yao Qi <yao.qi@linaro.org>
3222 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
3223 and REVSH instructions.
3225 2017-03-16 Yao Qi <yao.qi@linaro.org>
3227 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
3228 (arm_record_test): Declare.
3229 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
3230 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
3231 align with the manual.
3232 (thumb_record_misc): Adjust the code order to align with the
3234 (thumb2_record_decode_insn_handler): Fix instruction matching.
3235 (instruction_reader_thumb): New class.
3236 (arm_record_test): New function.
3238 2017-03-16 Yao Qi <yao.qi@linaro.org>
3240 * arm-tdep.c (abstract_memory_reader): New class.
3241 (instruction_reader): New class.
3242 (extract_arm_insn): Add argument 'reader'. Callers updated.
3243 (decode_insn): Likewise.
3245 2017-03-16 Doug Evans <dje@google.com>
3247 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
3248 member. Change type of TYPE member to SCM. All uses updated.
3249 (lsscm_make_lazy_string_smob): Add assert.
3250 (lsscm_make_lazy_string): Flag bad length values.
3251 (lsscm_elt_type): New function.
3252 (gdbscm_lazy_string_to_value): Rewrite to use
3253 lsscm_safe_lazy_string_to_value.
3254 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
3255 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
3256 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
3258 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
3259 * guile/scm-type.c (tyscm_scm_to_type): New function.
3261 2017-03-15 Doug Evans <dje@google.com>
3263 PR python/17728, python/18439, python/18779
3264 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
3265 member. Change type of TYPE member to PyObject *. All uses updated.
3266 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
3267 (gdbpy_create_lazy_string_object): Flag bad length values.
3268 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
3269 Handle typedefs in incoming type.
3270 (stpy_lazy_string_elt_type): New function.
3271 (gdbpy_extract_lazy_string): Call it.
3272 * python/py-value.c (valpy_lazy_string): Flag bad length values.
3273 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
3274 typedefs in incoming type.
3276 2017-03-16 Doug Evans <dje@google.com>
3278 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
3279 * guile/scm-type.c (tyscm_scm_to_type): New function.
3281 2017-03-16 Jiong Wang <jiong.wang@arm.com>
3283 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
3284 "ULONGEST" for "skip".
3286 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
3289 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
3290 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
3291 (inf_ptrace_peek_poke): ...here. New function. Now also loop
3292 over ptrace peek/poke until end of buffer or error.
3294 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
3296 * parse.c (length_of_subexp): Make static.
3297 * parser-defs.h (length_of_subexp): Remove.
3299 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
3301 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
3304 2017-03-14 Pedro Alves <palves@redhat.com>
3306 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
3307 (main): Use std::unique_ptr. Remove calls to
3308 cp_demangled_name_parse_free.
3310 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3312 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
3313 alphabsd_store_inferior_registers): Use regcache->ptid instead
3316 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3318 * aix-thread.c (aix_thread_fetch_registers,
3319 aix_thread_store_registers): Use regcache->ptid instead of
3322 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3324 * aarch64-linux-nat.c (fetch_gregs_from_thread,
3325 store_gregs_to_thread, fetch_fpregs_from_thread,
3326 store_fpregs_to_thread): Use regcache->ptid instead of
3329 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3331 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
3332 amd64_linux_fetch_inferior_registers): Use regcache->ptid
3333 instead of inferior_ptid.
3335 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3337 * target.c (target_fetch_registers, target_store_registers): Add
3340 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3342 * regcache.h (regcache_get_ptid): New function.
3343 * regcache.c (regcache_get_ptid): New function.
3345 2017-03-13 Mark Wielaard <mark@klomp.org>
3347 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
3349 2017-03-10 Keith Seitz <keiths@redhat.com>
3352 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
3354 2017-03-08 Pedro Alves <palves@redhat.com>
3357 * infrun.c (start_step_over, do_target_resume, resume)
3358 (restart_threads): Assert we're not resuming a thread that is
3359 meant to be stopped.
3360 (infrun_thread_stop_requested_callback): Delete.
3361 (infrun_thread_stop_requested): If the thread is internally
3362 stopped, queue a pending stop event and clear the thread's
3364 (handle_stop_requested): New function.
3365 (handle_syscall_event, handle_inferior_event_1): Use
3366 handle_stop_requested.
3367 (handle_stop_requested): New function.
3368 (handle_signal_stop): Set the thread's stop_signal here instead of
3370 (finish_step_over): Clear step over info unconditionally.
3371 (handle_signal_stop): If the user had interrupted the event
3372 thread, consider the stop a random signal.
3373 (handle_signal_stop) <signal arrived while stepping over
3374 breakpoint>: Don't restart threads here.
3375 (stop_waiting): Don't clear step-over info here.
3377 2017-03-08 Pedro Alves <palves@redhat.com>
3380 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
3381 goes to argument 2, not 1.
3383 2017-03-08 Pedro Alves <palves@redhat.com>
3386 * top.c (gdb_readline_wrapper): Avoid passing NULL to
3388 (command_line_input): Add comment.
3390 2017-03-08 Pedro Alves <palves@redhat.com>
3393 * tui/tui-file.c (tui_file::write): New.
3394 * tui/tui-file.h (tui_file): Override "write".
3395 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
3396 factored out from ...
3397 (tui_puts): ... here.
3398 (tui_putc): Use them.
3399 (tui_write): New function.
3400 * tui/tui-io.h (tui_write): Declare.
3402 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
3404 * Makefile.in (SFILES): Replace "environ.c" with
3406 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
3407 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
3409 * common/environ.c: ... here.
3410 * environ.h: Moved to...
3411 * common/environ.h: ... here.
3413 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
3415 * gdbarch.sh (pstring_ptr): New static function.
3416 (gdbarch_disassembler_options): Use it.
3417 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
3418 not valid_disassembler_option->name.
3419 * gdbarch.c: Regenerate.
3421 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
3423 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
3425 2017-03-07 Pedro Alves <palves@redhat.com>
3427 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
3429 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
3431 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
3432 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
3433 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
3434 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
3436 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
3438 * xtensa-linux-nat.c (fetch_gregs): Remove const.
3440 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
3442 * remote.c (remote_add_target_side_commands): Use range-based
3445 2017-03-03 Yao Qi <yao.qi@linaro.org>
3448 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
3450 * valprint.c (common_val_print): Likewise.
3452 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
3454 * NEWS: Mention new set/show disassembler-options commands.
3455 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
3456 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
3457 (prospective_options): New static variable.
3458 (gdb_disassembler::gdb_disassembler): Initialize
3459 m_di.disassembler_options.
3460 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
3461 (get_disassembler_options): New function.
3462 (set_disassembler_options): Likewise.
3463 (set_disassembler_options_sfunc): Likewise.
3464 (show_disassembler_options_sfunc): Likewise.
3465 (disassembler_options_completer): Likewise.
3466 (_initialize_disasm): Likewise.
3467 * disasm.h (get_disassembler_options): New prototype.
3468 (set_disassembler_options): Likewise.
3469 * gdbarch.sh (gdbarch_disassembler_options): New variable.
3470 (gdbarch_verify_disassembler_options): Likewise.
3471 * gdbarch.c: Regenerate.
3472 * gdbarch.h: Likewise.
3473 * arm-tdep.c (num_disassembly_options): Delete.
3474 (set_disassembly_style): Likewise.
3475 (arm_disassembler_options): New static variable.
3476 (set_disassembly_style_sfunc): Convert short style name into long
3477 option name. Call set_disassembler_options.
3478 (show_disassembly_style_sfunc): New function.
3479 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
3480 set_gdbarch_verify_disassembler_options.
3481 (_initialize_arm_tdep): Delete regnames variable and update callers.
3482 (arm_disassembler_options): Initialize.
3483 (disasm_options): New variable.
3484 (num_disassembly_options): Rename from this...
3485 (num_disassembly_styles): ...to this. Compute by scanning through
3487 (valid_disassembly_styles): Initialize using disasm_options.
3488 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
3489 set_arm_regname_option.
3490 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
3491 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
3492 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
3493 set_gdbarch_verify_disassembler_options.
3494 * s390-tdep.c (s390_disassembler_options): New static variable.
3495 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
3496 set_gdbarch_verify_disassembler_options.
3498 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
3500 * remote.c (remote_add_target_side_condition): Remove "struct"
3501 keyword from range-based for loop.
3503 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
3505 * remote.c (remote_add_target_side_condition): Use range-based
3506 for loop. Update comment.
3508 2017-02-27 Yao Qi <yao.qi@linaro.org>
3510 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
3512 2017-02-26 Alan Hayward <alan.hayward@arm.com>
3514 * regcache.c (regcache_raw_update): New function.
3515 (regcache_raw_read): Move code to regcache_raw_update.
3516 * regcache.h (regcache_raw_update): New declaration.
3517 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
3519 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3521 * dwarf2read.c (create_debug_type_hash_table): Initialize
3522 header.signature and header.type_offset_in_tu.
3524 2017-02-24 Pedro Alves <palves@redhat.com>
3526 * symtab.c (make_file_symbol_completion_list_1): Use
3527 add_symtab_completions.
3529 2017-02-24 Alan Hayward <alan.hayward@arm.com>
3531 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
3533 2017-02-24 Alan Hayward <alan.hayward@arm.com>
3535 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
3536 I386_MAX_REGISTER_SIZE.
3537 (i386_pseudo_register_write): Likewise.
3538 (i386_process_record): Likewise.
3539 * i387-tdep.c (i387_supply_xsave): Likewise.
3540 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
3541 (store_register): Likewise.
3543 2017-02-23 Pedro Alves <palves@redhat.com>
3545 * ada-lang.c: Include "common/function-view.h".
3546 (ada_iterate_over_symbols): Adjust to use function_view as
3548 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
3549 (ada_make_symbol_completion_list): Use a lambda.
3550 (ada_exc_search_name_matches): Delete.
3551 (name_matches_regex): New.
3552 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
3553 * compile/compile-c-support.c: Include "common/function-view.h".
3554 (print_one_macro): Change prototype to accept a ui_file pointer.
3555 (write_macro_definitions): Use a lambda.
3556 * dwarf2read.c: Include "common/function-view.h".
3557 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3558 (dw2_expand_symtabs_matching): Adjust to use function_view as
3560 * language.h: Include "common/function-view.h".
3561 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
3562 function_view as callback type.
3563 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
3564 * linespec.c: Include "common/function-view.h".
3565 (collect_info::add_symbol): New method.
3566 (struct symbol_and_data_callback, iterate_inline_only, struct
3567 symbol_matcher_data, iterate_name_matcher): Delete.
3568 (iterate_over_all_matching_symtabs): Adjust to use function_view
3569 as callback type and lambdas.
3570 (iterate_over_file_blocks): Adjust to use function_view as
3572 (decode_compound_collector): Now a class with private fields.
3573 (decode_compound_collector::release_symbols): New method.
3574 (collect_one_symbol): Rename to...
3575 (decode_compound_collector::operator()): ... this and adjust.
3576 (lookup_prefix_sym): decode_compound_collector construction bits
3577 move to decode_compound_collector ctor. Pass the
3578 decode_compound_collector object directly as callback. Remove
3579 cleanups and use decode_compound_collector::release_symbols
3581 (symtab_collector): Now a class with private fields.
3582 (symtab_collector::release_symtabs): New method.
3583 (add_symtabs_to_list): Rename to...
3584 (symtab_collector::operator()): ... this and adjust.
3585 (collect_symtabs_from_filename): symtab_collector construction
3586 bits move to symtab_collector ctor. Pass the symtab_collector
3587 object directly as callback. Remove cleanups and use
3588 symtab_collector::release_symtabs instead.
3589 (collect_symbols): Delete.
3590 (add_matching_symbols_to_info): Use lambdas.
3591 * macrocmd.c (print_macro_callback): Delete.
3592 (info_macro_command): Use a lambda.
3593 (info_macros_command): Pass print_macro_definition as callable
3595 (print_one_macro): Remove 'ignore' parameter.
3596 (macro_list_command): Adjust.
3597 * macrotab.c (macro_for_each_data::fn): Now a function_view.
3598 (macro_for_each_data::user_data): Delete field.
3599 (foreach_macro): Adjust to call the function_view.
3600 (macro_for_each): Adjust to use function_view as callback type.
3601 (foreach_macro_in_scope): Adjust to call the function_view.
3602 (macro_for_each_in_scope): Adjust to use function_view as callback
3604 * macrotab.h: Include "common/function-view.h".
3605 (macro_callback_fn): Declare a prototype instead of a pointer.
3606 Remove "user_data" parameter.
3607 (macro_for_each, macro_for_each_in_scope): Adjust to use
3608 function_view as callback type.
3609 * psymtab.c (partial_map_expand_apply)
3610 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
3611 Adjust to use function_view as callback type and to return bool.
3612 (psym_expand_symtabs_matching): Adjust to use function_view as
3614 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
3615 to use function_view as callback type and to return bool.
3616 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
3618 * symfile.c (expand_symtabs_matching): Adjust to use function_view
3620 * symfile.h: Include "common/function-view.h".
3621 (expand_symtabs_file_matcher_ftype)
3622 (expand_symtabs_symbol_matcher_ftype)
3623 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
3625 (quick_symbol_functions::map_symtabs_matching_filename)
3626 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
3627 function_view as callback type and return bool.
3628 (expand_symtabs_matching): Adjust to use function_view as callback
3630 (maintenance_expand_name_matcher)
3631 (maintenance_expand_file_matcher): Delete.
3632 (maintenance_expand_symtabs): Use lambdas.
3633 * symtab.c (iterate_over_some_symtabs): Adjust to use
3634 function_view as callback types and return bool.
3635 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
3637 (lookup_symtab_callback): Delete.
3638 (lookup_symtab): Use a lambda.
3639 (iterate_over_symbols): Adjust to use function_view as callback
3641 (struct search_symbols_data, search_symbols_file_matches)
3642 (search_symbols_name_matches): Delete.
3643 (search_symbols): Use a pair of lambdas.
3644 (struct add_name_data, add_macro_name, symbol_completion_matcher)
3645 (symtab_expansion_callback): Delete.
3646 (default_make_symbol_completion_list_break_on_1): Use lambdas.
3647 * symtab.h: Include "common/function-view.h".
3648 (iterate_over_some_symtabs): Adjust to use function_view as
3649 callback type and return bool.
3650 (iterate_over_symtabs): Adjust to use function_view as callback
3652 (symbol_found_callback_ftype): Remove 'data' parameter and return
3654 (iterate_over_symbols): Adjust to use function_view as callback
3657 2017-02-23 Pedro Alves <palves@redhat.com>
3659 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
3660 (%.o) <unittests/%.c>: New pattern.
3661 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
3662 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
3663 * common/function-view.h: New file.
3664 * unittests/function-view-selftests.c: New file.
3665 * configure: Regenerate.
3667 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
3669 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
3671 * go32-nat.c (go32_thread_alive): Likewise.
3673 2017-02-23 Yao Qi <yao.qi@linaro.org>
3675 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
3678 2017-02-23 Yao Qi <yao.qi@linaro.org>
3680 * varobj.c (varobj_clear_saved_item): Use delete instead of
3682 (update_dynamic_varobj_children): Likewise.
3684 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3686 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
3688 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
3690 * common/enum-flags.h (enum_flags::enum_flags): Initialize
3691 m_enum_value to 0 in default constructor.
3693 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3695 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
3696 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
3697 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
3698 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
3699 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
3700 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
3701 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
3702 IS_STORE_CONDITIONAL_INSN.
3704 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3706 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
3708 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3710 * NEWS (Changes since GDB 7.12): Add DWARF-5.
3712 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3714 * dwarf2read.c (skip_one_die, read_attribute_value)
3715 (dwarf2_const_value_attr, dump_die_shallow)
3716 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3717 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
3719 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3721 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
3722 (dwarf_parse_macro_header): Accept DWARF version 5.
3723 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
3725 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3727 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
3729 * common/common-exceptions.h (enum errors): Likewise.
3730 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
3731 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
3732 (dwarf_expr_context::execute_stack_op): Likewise.
3733 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
3735 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
3736 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
3737 (show_entry_values_debug, call_site_to_target_addr)
3738 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
3739 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
3740 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
3741 (value_of_dwarf_block_entry, indirect_pieced_value)
3742 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
3743 (disassemble_dwarf_expression): Likewise.
3744 * dwarf2read.c (process_die, inherit_abstract_dies)
3745 (read_call_site_scope): Likewise.
3746 * gdbtypes.h (struct func_type, struct call_site_parameter)
3747 (struct call_site): Likewise.
3748 * stack.c (read_frame_arg): Likewise.
3749 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
3751 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3753 * defs.h (read_unsigned_leb128): New declaration.
3754 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
3755 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
3756 (dwarf2_find_location_expression): Call also
3757 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
3758 * dwarf2loc.h (dwarf2_version): New declaration.
3759 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
3761 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
3763 (struct dwop_section_names): Add loclists_dwo.
3764 (dwop_section_names): Add .debug_loclists.dwo.
3765 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
3766 (struct dwarf2_per_cu_data): Add dwarf_version.
3767 (struct dwo_sections): Add loclists.
3768 (struct attr_abbrev): Add implicit_const.
3769 (read_indirect_line_string): New declaration.
3770 (read_unsigned_leb128): Delete declaration.
3771 (rcuh_kind): New definition.
3772 (read_and_check_comp_unit_head): Change parameter
3773 is_debug_types_section to section_kind.
3774 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
3775 (read_comp_unit_head): Change parameter abfd to section, add parameter
3776 section_kind. Handle DWARF-5.
3777 (error_check_comp_unit_head): Accept also DWARF version 5.
3778 (read_and_check_comp_unit_head): Change parameter
3779 is_debug_types_section to section_kind.
3780 (read_and_check_type_unit_head): Delete function.
3781 (read_abbrev_offset): Handle DWARF-5.
3782 (create_debug_type_hash_table): Add parameter section_kind. Process
3783 only DW_UT_type. Use signature and type_offset_in_tu from struct
3785 (create_debug_types_hash_table): Update create_debug_type_hash_table
3787 (create_all_type_units): Call create_debug_type_hash_table.
3788 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
3789 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
3791 (skip_one_die): Handle DW_FORM_implicit_const.
3792 (dwarf2_rnglists_process): New function.
3793 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
3794 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
3795 (read_attribute_value): Handle DW_FORM_implicit_const,
3797 (read_attribute): Handle DW_FORM_implicit_const.
3798 (read_indirect_string_at_offset_from): New function from
3799 read_indirect_string_at_offset.
3800 (read_indirect_string_at_offset): Call
3801 read_indirect_string_at_offset_from.
3802 (read_indirect_line_string_at_offset): New function.
3803 (read_indirect_string): New function comment.
3804 (read_indirect_line_string): New function.
3805 (read_unsigned_leb128): Make it global.
3806 (dwarf2_string_attr): Handle DWARF-5.
3807 (add_include_dir_stub, read_formatted_entries): New functions.
3808 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
3810 (per_cu_header_read_in): Update read_comp_unit_head caller.
3811 (dwarf2_version): New function.
3812 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
3814 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
3817 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3819 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
3821 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3823 * dwarf2read.c (dwarf2_ranges_process): New function from
3825 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
3826 dwarf2_ranges_process.
3828 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3830 * dwarf2read.c (create_debug_type_hash_table): New function from
3831 create_debug_types_hash_table.
3832 (create_debug_types_hash_table): Call create_debug_type_hash_table.
3833 (create_all_type_units, open_and_init_dwo_file): Update
3834 create_debug_types_hash_table callers.
3836 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3839 * fork-child.c (trace_start_error): Fix thinko. va_end should
3840 refer to 'ap', not 'args'.
3842 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3843 Pedro Alves <palves@redhat.com>
3846 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
3848 * fork-child.c (trace_start_error): New function.
3849 (trace_start_error_with_name): Likewise.
3850 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
3851 * inf-ptrace.c (inf_ptrace_me): Likewise.
3852 * inferior.h (trace_start_error): New prototype.
3853 (trace_start_error_with_name): Likewise.
3855 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
3858 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
3859 NULL before using it.
3860 * symmisc.c (maintenance_print_symbols): Likewise.
3861 (maintenance_print_msymbols): Likewise.
3863 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
3865 * NEWS: Add record Python bindings entry.
3867 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
3869 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
3871 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
3872 * python/py-record-btrace.c, python/py-record-btrace.h,
3873 python/py-record-full.c, python/py-record-full.h: New file.
3874 * python/py-record.c: Add include for py-record-btrace.h and
3876 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
3877 recpy_instruction_history, recpy_function_call_history, recpy_begin,
3878 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
3879 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
3881 (gdbpy_initialize_btrace): New export.
3882 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
3884 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
3886 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
3887 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
3888 * python/py-record.c: New file.
3889 * python/python-internal.h (gdbpy_start_recording,
3890 gdbpy_current_recording, gdpy_stop_recording,
3891 gdbpy_initialize_record): New export.
3892 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
3893 (python_GdbMethods): Add gdbpy_start_recording,
3894 gdbpy_current_recording and gdbpy_stop_recording.
3896 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
3898 * record-btrace.c (record_btrace_record_method): New function.
3899 (init_record_btrace_ops): Initialize to_record_method.
3900 * record-full.c (record_full_record_method): New function.
3901 (init_record_full_ops, init_record_full_core_ops): Add
3902 record_full_record_method.
3903 * record.h (enum record_method): New enum.
3904 * target-debug.h (target_debug_print_enum_record_method: New define.
3905 * target-delegates.c: Regenerate.
3906 * target.c (target_record_method): New function.
3907 * target.h: Include record.h.
3908 (struct target_ops) <to_record_method>: New field.
3909 (target_record_method): New export.
3911 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
3913 * record.h (record_start, record_stop): New export.
3914 * record.c (record_start, record_stop): New function.
3916 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
3918 * btrace.c (btrace_fetch): Copy function call segments pointer
3920 (btrace_clear): Clear the vector.
3921 (btrace_find_insn_by_number): Use binary search to find the correct
3922 function call segment.
3923 * btrace.h (brace_fun_p): New typedef.
3924 (struct btrace_thread_info) <functions>: New field.
3926 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
3928 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
3929 * btrace.c (btrace_decode_error): ... here. New function.
3930 * btrace.h (btrace_decode_error): New export.
3932 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
3934 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
3935 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
3936 btrace_find_insn_by_number): Remove special case for gaps.
3937 * btrace.h (btrace_insn_get_error): New export.
3938 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
3939 * record-btrace.c (btrace_insn_history): Print number for gaps.
3940 (record_btrace_info, record_btrace_goto): Handle gaps.
3942 2017-02-14 Tom Tromey <tom@tromey.com>
3945 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
3947 * python/py-evts.c (gdbpy_initialize_py_events): Add
3948 before_prompt registry.
3949 * python/py-events.h (events_object) <before_prompt>: New field.
3951 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
3953 * btrace.c (ftrace_new_switch): Preserve up link and flags.
3955 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
3957 * symfile (_initialize_symfile): Add usage text to the load command's
3960 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
3962 * utils.c (defaulted_query): Don't query on secondary UIs.
3964 2017-02-10 Tom Tromey <tom@tromey.com>
3966 * rust-lang.c (rust_get_disr_info): Remove unused variable.
3968 2017-02-10 Tom Tromey <tom@tromey.com>
3970 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
3972 * python/py-type.c (typy_legacy_template_argument): Remove
3973 unnecessary "cleanup" local.
3975 2017-02-10 Tom Tromey <tom@tromey.com>
3977 * python/python.c (do_start_initialization): New function, from
3979 (_initialize_python): Call do_start_initialization.
3980 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
3983 2017-02-10 Tom Tromey <tom@tromey.com>
3985 * python/py-prettyprint.c (pretty_print_one_value): Use
3988 2017-02-10 Tom Tromey <tom@tromey.com>
3990 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
3991 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
3993 * python/py-type.c (field_new): Use gdbpy_ref.
3994 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
3996 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
3997 (py_free_pspace): Likewise.
3998 (pspace_to_pspace_object): Likewise.
3999 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
4000 (py_free_objfile): Likewise.
4001 (objfile_to_objfile_object): Likewise.
4002 * python/py-inferior.c (delete_thread_object): Use
4004 (infpy_read_memory): Likewise.
4005 (py_free_inferior): Likewise.
4006 * python/py-evtregistry.c (create_eventregistry_object): Use
4008 * python/py-event.c (create_event_object): Use gdbpy_ref.
4010 2017-02-10 Tom Tromey <tom@tromey.com>
4012 * python/py-ref.h (gdbpy_ref_policy): Now a template.
4013 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
4015 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
4016 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
4017 python/py-exitedevent.c, python/py-finishbreakpoint.c,
4018 python/py-framefilter.c, python/py-function.c,
4019 python/py-inferior.c, python/py-infevents.c,
4020 python/py-linetable.c, python/py-newobjfileevent.c,
4021 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
4022 python/py-signalevent.c, python/py-stopevent.c,
4023 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
4024 python/py-unwind.c, python/py-utils.c, python/py-value.c,
4025 python/py-varobj.c, python/py-xmethods.c, python/python.c,
4026 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
4028 2017-02-10 Tom Tromey <tom@tromey.com>
4030 * ui-out.h (ui_out_emit_type): New class.
4031 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
4032 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
4033 and ui_out_emit_tuple.
4034 (enumerate_locals): Likewise.
4035 (py_mi_print_variables, py_print_locals, py_print_args): Use
4037 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
4039 * common/gdb_optional.h: New file.
4041 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
4043 * MAINTAINERS (Write After Approval): Update my e-mail address.
4045 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
4048 * breakpoint.c (_initialize_breakpoint): Update the help description
4049 of the 'commands' command to indicate that it takes a list argument.
4051 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
4053 * interps.c (current_interp_set_logging): Remove "return".
4055 2017-02-09 Gary Benson <gbenson@redhat.com>
4057 * symtab.c (add_symtab_completions): Prevent NULL pointer
4060 2017-02-08 Pedro Alves <palves@redhat.com>
4062 * interps.c (interp::interp): Remove reference to quiet_p.
4063 (interp_set): Make static. Remove dead "Switching to" output
4065 (interp_quiet_p, interp_set_quiet): Delete.
4066 (interpreter_exec_cmd): Don't set the interpreter quiet.
4067 * interps.h (interp_quiet_p): Make static.
4068 (class interp) <quiet_p>: Remove field
4070 2017-02-08 Jerome Guitton <guitton@adacore.com>
4072 * cli/cli-decode.c (find_command_name_length): Make it extern.
4073 * cli/cli-decode.h (find_command_name_length): Declare.
4074 * cli/cli-script.c (command_name_equals, line_first_arg):
4076 (process_next_line): Use cli-decode to parse command names.
4077 (build_command_line): Make args a constant pointer.
4079 2017-02-08 Jerome Guitton <guitton@adacore.com>
4081 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
4082 Remove case-insensitive search.
4084 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
4086 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
4087 at the end of the line. Avoids an ARI warning.
4089 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
4091 * NEWS: Mention support for record/replay of Intel 64 rdrand and
4092 rdseed instructions.
4093 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
4095 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
4098 Provide and use sparc32 and sparc64 target description XML files.
4099 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
4100 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
4101 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
4102 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
4103 * features/sparc/sparc32-solaris.xml: New file.
4104 * features/sparc/sparc64-solaris.xml: New file.
4105 * features/sparc/sparc32-solaris.c: Generated.
4106 * features/sparc/sparc64-solaris.c: Generated.
4107 * sparc-tdep.h: Account for differences in target descriptions.
4108 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
4109 (sparc32_register_type): Use target provided registers.
4110 (validate_tdesc_registers): New function.
4111 (sparc32_gdbarch_init): Use tdesc_has_registers.
4112 Set pseudoregister functions.
4113 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
4114 (sparc64_register_type): Use target provided registers.
4115 (sparc64_init_abi): Set pseudoregister functions.
4117 2017-02-03 Tom Tromey <tom@tromey.com>
4120 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
4121 with a single member.
4123 2017-02-03 Pedro Alves <palves@redhat.com>
4125 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
4126 (cli_interp_base::~cli_interp_base): New.
4127 (cli_interp): New struct.
4128 (as_cli_interp): Cast the interp itself to cli_interp.
4129 (cli_interpreter_pre_command_loop): Rename to ...
4130 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
4132 (cli_interpreter_init): Rename to ...
4133 (cli_interp::init): ... this. Remove 'self' parameter. Use
4134 boolean. Make extern.
4135 (cli_interpreter_resume): Rename to ...
4136 (cli_interp::resume): ... this. Remove 'data' parameter. Make
4138 (cli_interpreter_suspend): Rename to ...
4139 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
4141 (cli_interpreter_exec): Rename to ...
4142 (cli_interp::exec): ... this. Remove 'data' parameter. Make
4144 (cli_interpreter_supports_command_editing): Rename to ...
4145 (cli_interp_base::supports_command_editing): ... this. Remove
4146 'interp' parameter. Make extern.
4147 (cli_ui_out): Rename to ...
4148 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
4150 (cli_set_logging): Rename to ...
4151 (cli_interp_base::set_logging): ... this. Remove 'interp'
4152 parameter. Make extern.
4153 (cli_interp_procs): Delete.
4154 (cli_interp_factory): Adjust to use "new".
4155 * cli/cli-interp.h: Include "interps.h".
4156 (struct cli_interp_base): New struct.
4157 * interps.c (struct interp): Delete. Fields moved to interps.h.
4158 (interp_new): Delete.
4159 (interp::interp, interp::~interp): New.
4160 (interp_set): Use bool, and return void. Assume the interpreter
4161 has suspend, init and resume methods, and that the all return
4163 (set_top_level_interpreter): interp_set returns void.
4164 (interp_ui_out): Adapt.
4165 (current_interp_set_logging): Adapt.
4166 (interp_data): Delete.
4167 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
4168 (interp_exec): Adapt.
4169 (top_level_interpreter_data): Delete.
4170 * interps.h (interp_init_ftype, interp_resume_ftype)
4171 (interp_suspend_ftype, interp_exec_ftype)
4172 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
4173 (class interp): New.
4174 (interp_new): Delete.
4175 (interp_set): Now returns void. Use bool.
4176 (interp_data, top_level_interpreter_data): Delete.
4177 * mi/mi-common.h: Include interps.h.
4178 (class mi_interp): Inherit from interp. Define a ctor. Declare
4179 init, resume, suspect, exec, interp_ui_out, set_logging and
4180 pre_command_loop methods.
4181 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
4182 (mi_interpreter_init): Rename to ...
4183 (mi_interp::init): ... this. Remove the 'interp' parameter, use
4184 bool, return void and make extern. Adjust.
4185 (mi_interpreter_resume): ... Rename to ...
4186 (mi_interp::resume): ... this. Remove the 'data' parameter,
4187 return void and make extern. Adjust.
4188 (mi_interpreter_suspend): ... Rename to ...
4189 (mi_interp::suspend): ... this. Remove the 'data' parameter,
4190 return void and make extern. Adjust.
4191 (mi_interpreter_exec): ... Rename to ...
4192 (mi_interp::exec): ... this. Remove the 'data' parameter and make
4194 (mi_interpreter_pre_command_loop): ... Rename to ...
4195 (mi_interp::pre_command_loop): ... this. Remove the 'self'
4196 parameter and make extern.
4197 (mi_on_normal_stop_1): Adjust.
4198 (mi_ui_out): Rename to ...
4199 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
4200 parameter and make extern. Adjust.
4201 (mi_set_logging): Rename to ...
4202 (mi_interp::set_logging): ... this. Remove the 'interp'
4203 parameter and make extern. Adjust.
4204 (mi_interp_procs): Delete.
4205 (mi_interp_factory): Adjust to use 'new'.
4206 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
4207 (mi_print_exception, mi_execute_command, mi_load_progress):
4209 * tui/tui-interp.c (tui_interp): New class.
4210 (as_tui_interp): Return a tui_interp pointer.
4211 (tui_on_normal_stop, tui_on_signal_received)
4212 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
4213 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
4214 to use interp::interp_ui_out.
4215 (tui_init): Rename to ...
4216 (tui_interp::init): ... this. Remove the 'self' parameter, use
4217 bool, return void and make extern. Adjust.
4218 (tui_resume): Rename to ...
4219 (tui_interp::resume): ... this. Remove the 'data' parameter,
4220 return void and make extern. Adjust.
4221 (tui_suspend): Rename to ...
4222 (tui_interp::suspend): ... this. Remove the 'data' parameter,
4223 return void and make extern. Adjust.
4224 (tui_ui_out): Rename to ...
4225 (tui_interp::interp_ui_out): ... this. Remove the 'self'
4226 parameter, and make extern. Adjust.
4227 (tui_exec): Rename to ...
4228 (tui_interp::exec): ... this. Remove the 'data' parameter and
4230 (tui_interp_procs): Delete.
4231 (tui_interp_factory): Use "new".
4233 2017-02-02 Tom Tromey <tom@tromey.com>
4235 * rust-exp.y (ends_raw_string, space_then_number)
4236 (rust_identifier_start_p): Return bool.
4237 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
4238 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
4239 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
4240 (rust_chartype_p): Return bool.
4241 (val_print_struct, rust_print_struct_def, rust_print_type):
4243 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
4246 2017-02-02 Tom Tromey <tom@tromey.com>
4248 * rust-lang.c: Reindent.
4250 2017-02-02 Tom Tromey <tom@tromey.com>
4252 * rust-lang.h (rust_crate_for_block): Update.
4253 * rust-lang.c (rust_crate_for_block): Return std::string.
4254 (rust_get_disr_info): Use std:;string, not
4255 gdb::unique_xmalloc_ptr.
4256 * rust-exp.y (crate_name): Update.
4258 2017-02-02 Pedro Alves <palves@redhat.com>
4260 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
4261 field out of gdb_disassembler_test and make it static.
4263 2017-02-02 Pedro Alves <palves@redhat.com>
4265 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
4266 mi1_interp and mi_interp fields.
4268 2017-02-02 Pedro Alves <palves@redhat.com>
4270 * cli/cli-interp.c (struct saved_output_files, saved_output):
4271 Moved from cli/cli-logging.c.
4272 (cli_set_logging): New function.
4273 (cli_interp_procs): Install cli_set_logging.
4274 * cli/cli-interp.h (make_logging_output, cli_set_logging):
4276 * cli/cli-logging.c (struct saved_output_files, saved_output):
4277 Moved to cli/cli-interp.c.
4278 (pop_output_files): Don't save outputs here.
4279 (make_logging_output): New function.
4280 (handle_redirections): Don't build tee nor save previous outputs
4282 * interps.c (current_interp_set_logging): Change prototype.
4283 Assume there's always a set_logging_proc method installed.
4284 * interps.h (interp_set_logging_ftype): Change prototype.
4285 (current_interp_set_logging): Change prototype and adjust comment.
4286 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
4287 use make_logging_output.
4288 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
4289 2017-02-02 Pedro Alves <palves@redhat.com>
4291 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
4293 (set_logging_overwrite): ... here.
4294 (logging_no_redirect_file): Delete.
4295 (set_logging_redirect): Don't handle redirection on the fly.
4296 Instead warn that "logging off" / "logging on" is necessary.
4297 (pop_output_files): Delete references to logging_no_redirect_file.
4298 (show_logging_command): Always speak in terms of what will happen
4299 once logging is reenabled.
4301 2017-02-02 Pedro Alves <palves@redhat.com>
4303 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
4305 2017-02-02 Pedro Alves <palves@redhat.com>
4307 * disasm.c (gdb_pretty_print_insn): Rename to ...
4308 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
4309 Remove gdbarch parameter. Adapt to clear the object's buffers
4310 instead of allocating new buffers, and to print using the object's
4311 gdb_disassembler instead of calling gdb_print_insn.
4312 (dump_insns): Use gdb_pretty_print_disassembler.
4313 * disasm.h (gdb_pretty_print_insn): Delete declaration.
4314 (gdb_pretty_print_disassembler): New class.
4315 * record-btrace.c (btrace_insn_history): Use
4316 gdb_pretty_print_disassembler.
4318 2017-02-02 Pedro Alves <palves@redhat.com>
4320 * ada-lang.c (type_as_string): Use string_file.
4321 * ada-valprint.c (ada_print_floating): Use string_file.
4322 * ada-varobj.c (ada_varobj_scalar_image)
4323 (ada_varobj_get_value_image): Use string_file.
4324 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
4325 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
4326 * breakpoint.c (update_inserted_breakpoint_locations)
4327 (insert_breakpoint_locations, reattach_breakpoints)
4328 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
4329 (print_it_watchpoint): Use string_file.
4330 (save_breakpoints): Use stdio_file.
4331 * c-exp.y (oper): Use string_file.
4332 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
4334 (pop_output_files): Use delete.
4335 (handle_redirections): Use stdio_file and tee_file.
4336 * cli/cli-setshow.c (do_show_command): Use string_file.
4337 * compile/compile-c-support.c (c_compute_program): Use
4339 * compile/compile-c-symbols.c (generate_vla_size): Take a
4340 'string_file &' instead of a 'ui_file *'.
4341 (generate_c_for_for_one_variable): Take a 'string_file &' instead
4342 of a 'ui_file *'. Use string_file.
4343 (generate_c_for_variable_locations): Take a 'string_file &'
4344 instead of a 'ui_file *'.
4345 * compile/compile-internal.h (generate_c_for_for_one_variable):
4346 Take a 'string_file &' instead of a 'ui_file *'.
4347 * compile/compile-loc2c.c (push, pushf, unary, binary)
4348 (print_label, pushf_register_address, pushf_register)
4349 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
4350 'ui_file *'. Adjust.
4351 * compile/compile.c (compile_to_object): Use string_file.
4352 * compile/compile.h (compile_dwarf_expr_to_c)
4353 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
4355 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
4356 (replace_typedefs_qualified_name): Use string_file and
4358 * disasm.c (gdb_pretty_print_insn): Use string_file.
4359 (gdb_disassembly): Adjust reference the null_stream global.
4360 (do_ui_file_delete): Delete.
4361 (gdb_insn_length): Use null_stream.
4362 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
4363 * dwarf2loc.c (dwarf2_compile_property_to_c)
4364 (locexpr_generate_c_location, loclist_generate_c_location): Take a
4365 'string_file &' instead of a 'ui_file *'.
4366 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
4367 * dwarf2read.c (do_ui_file_peek_last): Delete.
4368 (dwarf2_compute_name): Use string_file.
4369 * event-top.c (gdb_setup_readline): Use stdio_file.
4370 * gdbarch.sh (verify_gdbarch): Use string_file.
4371 * gdbtypes.c (safe_parse_type): Use null_stream.
4372 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
4374 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
4375 'string_file *' instead of a 'ui_file *'.
4376 (gdbscm_arch_disassemble): Use string_file.
4377 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
4378 * guile/scm-ports.c (class ioscm_file_port): Now a class that
4379 inherits from ui_file.
4380 (ioscm_file_port_delete, ioscm_file_port_rewind)
4381 (ioscm_file_port_put): Delete.
4382 (ioscm_file_port_write): Rename to ...
4383 (ioscm_file_port::write): ... this. Remove file_port_magic
4385 (ioscm_file_port_new): Delete.
4386 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
4388 * guile/scm-type.c (tyscm_type_name): Use string_file.
4389 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
4391 * infcmd.c (print_return_value_1): Use string_file.
4392 * infrun.c (print_target_wait_results): Use string_file.
4393 * language.c (add_language): Use string_file.
4394 * location.c (explicit_to_string_internal): Use string_file.
4395 * main.c (captured_main_1): Use null_file.
4396 * maint.c (maintenance_print_architecture): Use stdio_file.
4397 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
4398 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
4399 event_channel>: Change type to mi_console_file pointer.
4400 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
4401 (mi_console_file_delete): Delete.
4402 (struct mi_console_file): Delete.
4403 (mi_console_file_magic): Delete.
4404 (mi_console_file_new): Delete.
4405 (mi_console_file::mi_console_file): New.
4406 (mi_console_file_delete): Delete.
4407 (mi_console_file_fputs): Delete.
4408 (mi_console_file::write): New.
4409 (mi_console_raw_packet): Delete.
4410 (mi_console_file::flush): New.
4411 (mi_console_file_flush): Delete.
4412 (mi_console_set_raw): Rename to ...
4413 (mi_console_file::set_raw): ... this.
4414 * mi/mi-console.h (class mi_console_file): New class.
4415 (mi_console_file_new, mi_console_set_raw): Delete.
4416 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
4417 (mi_set_logging): Use delete and tee_file. Adjust.
4418 * mi/mi-main.c (output_register): Use string_file.
4419 (mi_cmd_data_evaluate_expression): Use string_file.
4420 (mi_cmd_data_read_memory): Use string_file.
4421 (mi_cmd_execute, print_variable_or_computed): Use string_file.
4422 * mi/mi-out.c (mi_ui_out::main_stream): New.
4423 (mi_ui_out::rewind): Use main_stream and
4425 (mi_ui_out::put): Use main_stream and string_file.
4426 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
4427 Allocate a 'string_file' instead.
4428 (mi_out_new): Don't allocate a mem_fileopen stream here.
4429 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
4430 (mi_ui_out::main_stream): Declare method.
4431 * printcmd.c (eval_command): Use string_file.
4432 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
4433 * python/py-arch.c (archpy_disassemble): Use string_file.
4434 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
4435 * python/py-frame.c (frapy_str): Use string_file.
4436 * python/py-framefilter.c (py_print_type, py_print_single_arg):
4438 * python/py-type.c (typy_str): Use string_file.
4439 * python/py-unwind.c (unwind_infopy_str): Use string_file.
4440 * python/py-value.c (valpy_str): Use string_file.
4441 * record-btrace.c (btrace_insn_history): Use string_file.
4442 * regcache.c (regcache_print): Use stdio_file.
4443 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
4444 * remote.c (escape_buffer): Use string_file.
4445 * rust-lang.c (rust_get_disr_info): Use string_file.
4446 * serial.c (serial_open_ops_1): Use stdio_file.
4447 (do_serial_close): Use delete.
4448 * stack.c (print_frame_arg): Use string_file.
4449 (print_frame_args): Remove local mem_fileopen stream, not used.
4450 (print_frame): Use string_file.
4451 * symmisc.c (maintenance_print_symbols): Use stdio_file.
4452 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4453 Take a 'string_file *' instead of a 'ui_file *'.
4454 * top.c (new_ui): Use stdio_file and stderr_file.
4455 (free_ui): Use delete.
4456 (execute_command_to_string): Use string_file.
4457 (quit_confirm): Use string_file.
4458 * tracepoint.c (collection_list::append_exp): Use string_file.
4459 * tui/tui-disasm.c (tui_disassemble): Use string_file.
4460 * tui/tui-file.c: Don't include "ui-file.h".
4461 (enum streamtype, struct tui_stream): Delete.
4462 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
4463 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
4464 (tui_file::tui_file): New method.
4465 (tui_file_fputs): Delete.
4466 (tui_file_get_strbuf): Delete.
4467 (tui_file::puts): New method.
4468 (tui_file_adjust_strbuf): Delete.
4469 (tui_file_flush): Delete.
4470 (tui_file::flush): New method.
4471 * tui/tui-file.h: Tweak intro comment.
4473 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
4474 (tui_file_adjust_strbuf): Delete declarations.
4475 (class tui_file): New class.
4476 * tui/tui-io.c (tui_initialize_io): Use tui_file.
4477 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
4478 (tui_register_format): Use string_stream.
4479 * tui/tui-stack.c (tui_make_status_line): Use string_file.
4480 (tui_get_function_from_frame): Use string_file.
4481 * typeprint.c (type_to_string): Use string_file.
4482 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
4483 (null_stream): New global.
4484 (ui_file_delete): Delete.
4485 (ui_file::ui_file): New.
4486 (null_file_isatty): Delete.
4487 (ui_file::~ui_file): New.
4488 (null_file_rewind): Delete.
4489 (ui_file::printf): New.
4490 (null_file_put): Delete.
4491 (null_file_flush): Delete.
4492 (ui_file::putstr): New.
4493 (null_file_write): Delete.
4494 (ui_file::putstrn): New.
4495 (null_file_read): Delete.
4496 (ui_file::putc): New.
4497 (null_file_fputs): Delete.
4498 (null_file_write_async_safe): Delete.
4499 (ui_file::vprintf): New.
4500 (null_file_delete): Delete.
4501 (null_file::write): New.
4502 (null_file_fseek): Delete.
4503 (null_file::puts): New.
4504 (ui_file_data): Delete.
4505 (null_file::write_async_safe): New.
4506 (gdb_flush, ui_file_isatty): Adjust.
4507 (ui_file_put, ui_file_rewind): Delete.
4508 (ui_file_write): Adjust.
4509 (ui_file_write_for_put): Delete.
4510 (ui_file_write_async_safe, ui_file_read): Adjust.
4511 (ui_file_fseek): Delete.
4512 (fputs_unfiltered): Adjust.
4513 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
4514 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
4515 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
4516 (set_ui_file_data): Delete.
4517 (string_file::~string_file, string_file::write)
4518 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
4519 (do_ui_file_as_string, ui_file_as_string): Delete.
4520 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
4521 (struct mem_file): Delete.
4522 (mem_file_new): Delete.
4523 (stdio_file::stdio_file): New.
4524 (mem_file_delete): Delete.
4525 (stdio_file::stdio_file): New.
4526 (mem_fileopen): Delete.
4527 (stdio_file::~stdio_file): New.
4528 (mem_file_rewind): Delete.
4529 (stdio_file::set_stream): New.
4530 (mem_file_put): Delete.
4531 (stdio_file::open): New.
4532 (mem_file_write): Delete.
4533 (stdio_file_magic, struct stdio_file): Delete.
4534 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
4535 (stdio_file::flush): New.
4536 (stdio_file_read): Rename to ...
4537 (stdio_file::read): ... this. Adjust.
4538 (stdio_file_write): Rename to ...
4539 (stdio_file::write): ... this. Adjust.
4540 (stdio_file_write_async_safe): Rename to ...
4541 (stdio_file::write_async_safe) ... this. Adjust.
4542 (stdio_file_fputs): Rename to ...
4543 (stdio_file::puts) ... this. Adjust.
4544 (stdio_file_isatty): Delete.
4545 (stdio_file_fseek): Delete.
4546 (stdio_file::isatty): New.
4547 (stderr_file_write): Rename to ...
4548 (stderr_file::write) ... this. Adjust.
4549 (stderr_file_fputs): Rename to ...
4550 (stderr_file::puts) ... this. Adjust.
4551 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
4552 (stderr_file::stderr_file): New.
4553 (tee_file_magic): Delete.
4554 (struct tee_file): Delete.
4555 (tee_file::tee_file): New.
4556 (tee_file_new): Delete.
4557 (tee_file::~tee_file): New.
4558 (tee_file_delete): Delete.
4559 (tee_file_flush): Rename to ...
4560 (tee_file::flush): ... this. Adjust.
4561 (tee_file_write): Rename to ...
4562 (tee_file::write): ... this. Adjust.
4563 (tee_file::write_async_safe): New.
4564 (tee_file_fputs): Rename to ...
4565 (tee_file::puts): ... this. Adjust.
4566 (tee_file_isatty): Rename to ...
4567 (tee_file::isatty): ... this. Adjust.
4568 * ui-file.h (struct obstack, struct ui_file): Don't
4570 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
4571 (ui_file_write_ftype)
4572 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
4573 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
4574 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
4575 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
4576 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
4577 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
4578 (set_ui_file_fseek): Delete.
4579 (ui_file_data, ui_file_delete, ui_file_rewind)
4580 (struct ui_file): New.
4582 (class null_file): New.
4583 (null_stream): Declare.
4584 (ui_file_write_for_put, ui_file_put): Delete.
4585 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
4587 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
4588 (gdb_fopen, tee_file_new): Delete.
4589 (struct string_file): New.
4590 (struct stdio_file): New.
4591 (stdio_file_up): New.
4592 (struct stderr_file): New.
4593 (class tee_file): New.
4594 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
4595 of a 'ui_file *'. Adjust.
4596 * ui-out.h (class ui_out) <field_stream>: Likewise.
4597 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
4598 (null_stream): Delete.
4599 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
4601 * utils.h (struct ui_file): Delete forward declaration..
4602 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
4603 (error_stream): Take a 'string_file &' instead of a
4605 * varobj.c (varobj_value_get_print_value): Use string_file.
4606 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
4607 * gdbarch.c: Regenerate.
4609 2017-02-02 Pedro Alves <palves@redhat.com>
4611 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
4612 (gdb_pretty_print_insn): ... this. Now a free function. Add back
4613 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
4614 Adjust to call gdb_print_insn instead of
4615 gdb_disassembler::print_insn.
4616 (dump_insns, do_mixed_source_and_assembly_deprecated)
4617 (do_mixed_source_and_assembly, do_assembly_only): Add back a
4618 'gdbarch' parameter. Remove gdb_disassembler parameter.
4619 (gdb_disassembly): Don't allocate a gdb_disassembler here.
4620 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
4622 (gdb_pretty_print_insn): Re-add declaration.
4623 * record-btrace.c (btrace_insn_history): Don't allocate a
4624 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
4626 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
4628 * disasm.h (gdb_disassembly): Remove file_string parameter.
4629 * disasm.c (gdb_disassembly): Likewise.
4630 * cli/cli-cmds.c (print_disassembly): Adapt.
4631 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
4632 * stack.c (do_gdb_disassembly): Likewise.
4634 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
4636 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
4637 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
4638 targets. And if the implicit value is longer than needed, extract
4639 the first bytes instead of the "least significant" ones.
4641 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
4643 * btrace.c (btrace_enable): Do not call btrace_add_pc for
4644 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
4645 (btrace_fetch): Assert can_access_registers_ptid.
4646 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
4647 validate_registers_access.
4649 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
4651 * gdbthread.h (can_access_registers_ptid): New.
4652 * thread.c (can_access_registers_ptid): New.
4654 2017-02-01 Pedro Alves <palves@redhat.com>
4656 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
4658 2017-01-31 Pedro Alves <palves@redhat.com>
4660 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
4663 2017-01-31 Pedro Alves <palves@redhat.com>
4665 * stack.c (print_frame_args): Remove local mem_fileopen stream,
4668 2017-01-31 Pedro Alves <palves@redhat.com>
4670 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
4672 2017-01-31 Pedro Alves <palves@redhat.com>
4674 * common/scoped_restore.h
4675 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
4676 change the value's parameter type to T2.
4677 (make_scoped_restore): Likewise.
4679 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4680 Richard Henderson <rth@redhat.com>
4682 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
4683 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
4684 GS_BASE for older kernels.
4685 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
4686 GS_BASE for older kernels.
4687 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
4688 and GS_BASE to the offset table.
4689 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
4690 system register group.
4691 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
4693 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
4695 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
4696 AMD64_GSBASE_REGNUM.
4697 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
4698 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
4699 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
4700 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
4701 i386/64bit-segments.xml in those rules.
4702 * features/i386/64bit-segments.xml: New file.
4703 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
4704 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
4705 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
4706 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
4707 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
4708 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
4709 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
4710 * features/i386/amd64-avx-linux.c: Regenerated.
4711 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
4712 * features/i386/amd64-avx-mpx.c: Regenerated.
4713 * features/i386/amd64-avx512-linux.c: Regenerated.
4714 * features/i386/amd64-linux.c: Regenerated.
4715 * features/i386/amd64-mpx-linux.c: Regenerated.
4716 * features/i386/i386-avx-mpx-linux.c: Regenerated.
4717 * features/i386/i386-avx-mpx.c: Regenerated.
4718 * features/i386/x32-avx-linux.c: Regenerated.
4719 * features/i386/x32-avx512-linux.c: Regenerated.
4720 * regformats/i386/amd64-avx-linux.dat: Regenerated.
4721 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
4722 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
4723 * regformats/i386/amd64-linux.dat: Regenerated.
4724 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
4725 * regformats/i386/x32-avx-linux.dat: Regenerated.
4726 * regformats/i386/x32-avx512-linux.dat: Regenerated.
4727 * regformats/i386/x32-linux.dat: Regenerated.
4729 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4731 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
4732 Set to AMD64_NUM_REGS.
4734 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4736 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
4737 that checks validity of a register number.
4739 2017-01-27 Kees Cook <keescook@google.com>
4741 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
4742 fetch_fpregs if target has fpa registers.
4743 (arm_linux_store_inferior_registers): Call store_fpregs if target
4746 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
4748 * cris-tdep.c (cris_gdbarch_init): Remove check for
4749 info.byte_order and force it to BFD_ENDIAN_LITTLE.
4751 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
4753 * corelow.c (get_core_register_section): Check for regset
4754 existence before checking for REGSET_VARIABLE_SIZE.
4756 2017-01-26 Yao Qi <yao.qi@linaro.org>
4757 Pedro Alves <palves@redhat.com>
4760 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
4761 call memory_error, save memaddr instead.
4762 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
4763 negative, cal memory_error.
4764 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
4766 2017-01-26 Yao Qi <yao.qi@linaro.org>
4768 * disasm-selftests.c (memory_error_test): New function.
4769 (_initialize_disasm_selftests): Register memory_error_test.
4771 2017-01-26 Yao Qi <yao.qi@linaro.org>
4773 * Makefile.in (SFILES): Add disasm-selftests.c and
4775 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
4776 * disasm-selftests.c: New file.
4777 * selftest-arch.c: New file.
4778 * selftest-arch.h: New file.
4780 2017-01-26 Yao Qi <yao.qi@linaro.org>
4782 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
4783 to bfd_arch_mep. Don't return 0 if section is not
4784 found. Call print_insn_mep.
4786 2017-01-26 Pedro Alves <palves@redhat.com>
4787 Yao Qi <yao.qi@linaro.org>
4789 * arm-tdep.c: Include "disasm.h".
4790 (gdb_print_insn_arm): Update code to get gdbarch.
4791 * disasm.c (dis_asm_read_memory): Change it to
4792 gdb_disassembler::dis_asm_read_memory.
4793 (dis_asm_memory_error): Likewise.
4794 (dis_asm_print_address): Likewise.
4795 (gdb_pretty_print_insn): Change it to
4796 gdb_disassembler::pretty_print_insn.
4797 (dump_insns): Add one argument gdb_disassemlber. All
4799 (do_mixed_source_and_assembly_deprecated): Likewise.
4800 (do_mixed_source_and_assembly): Likewise.
4801 (do_assembly_only): Likewise.
4802 (gdb_disassembler::gdb_disassembler): New.
4803 (gdb_disassembler::print_insn): New.
4804 * disasm.h (class gdb_disassembler): New.
4805 (gdb_pretty_print_insn): Remove declaration.
4806 (gdb_disassemble_info): Likewise.
4807 * guile/scm-disasm.c (class gdbscm_disassembler): New.
4808 (gdbscm_disasm_read_memory_worker): Update.
4809 (gdbscm_disasm_read_memory): Update.
4810 (gdbscm_disasm_memory_error): Remove.
4811 (gdbscm_disasm_print_address): Remove.
4812 (gdbscm_disassembler::gdbscm_disassembler): New.
4813 (gdbscm_print_insn_from_port): Update.
4814 * mips-tdep.c: Include disasm.h.
4815 (gdb_print_insn_mips): Update code to get gdbarch.
4816 * record-btrace.c (btrace_insn_history): Update.
4817 * spu-tdep.c: Include disasm.h.
4818 (struct spu_dis_asm_data): Remove.
4819 (struct spu_dis_asm_info): New.
4820 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
4822 (gdb_print_insn_spu): Cast disassemble_info to
4825 2017-01-26 Yao Qi <yao.qi@linaro.org>
4827 * disasm.c (do_ui_file_delete): Delete.
4828 (gdb_insn_length): Move code creating stream to ...
4829 * utils.c (null_stream): ... here. New function.
4830 * utils.h (null_stream): Declare.
4832 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4834 * python/py-inferior.c (find_thread_object): Return directly
4835 from the loop. Remove "found" variable.
4837 2017-01-21 Joel Brobecker <brobecker@adacore.com>
4839 GDB 7.12.1 released.
4841 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
4843 * python/py-function.c (fnpy_call): Reorder declarations to have
4844 the gdbpy_enter object declared first.
4845 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
4847 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
4850 * python/python-internal.h (PyMem_RawMalloc): Define for
4852 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
4853 PyMem_RawMalloc instead of PyMem_Malloc.
4855 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
4856 Luis Machado <lgustavo@codesourcery.com>
4858 * NEWS (New commands): Mention flash-erase.
4859 (New MI commands): Mention target-flash-erase.
4860 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
4862 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
4863 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
4864 * target.c (flash_erase_command): New function.
4865 (initialize_targets): Add new flash-erase command.
4866 * target.h (flash_erase_command): New declaration.
4868 2017-01-20 Joel Brobecker <brobecker@adacore.com>
4870 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
4871 HAVE_SYS_PROCFS_H is defined.
4873 2017-01-18 Alan Hayward <alan.hayward@arm.com>
4875 * remote.c (struct cached_reg): Change data into a pointer.
4876 * (stop_reply_dtr): Free data pointers before deleting vector.
4877 (process_stop_reply): Likewise.
4878 (remote_parse_stop_reply): Allocate space for data
4880 2017-01-18 Alan Hayward <alan.hayward@arm.com>
4882 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
4884 (amd64_pseudo_register_read_value): Likewise.
4885 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
4886 (store_register_using_P): Likewise.
4887 * regcache.c (regcache_xfer_part): Likewise.
4889 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
4891 Split real and pseudo registers.
4892 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
4893 (sparc32_pseudo_regnum): New enum.
4894 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
4895 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
4896 (SPARC32_CP0_REGISTERS): New macro.
4897 (sparc32_pseudo_register_name): New function.
4898 (sparc32_register_name): Use sparc32_pseudo_register_name.
4899 (sparc32_pseudo_register_type): New function.
4900 (sparc32_register_type): Use sparc32_pseudo_register_type.
4901 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
4902 pseudo register numbers.
4903 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
4904 (SPARC64_CP0_REGISTERS): New macro.
4905 (sparc64_pseudo_register_name): New function.
4906 (sparc64_register_name): Use sparc64_pseudo_register_name.
4907 (sparc64_pseudo_register_type): New function.
4908 (sparc64_register_type): Use sparc64_pseudo_register_type.
4909 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
4910 pseudo register numbers.
4911 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
4912 sparc64_store_arguments): Handle pseudo register numbers.
4914 2017-01-13 Yao Qi <yao.qi@linaro.org>
4916 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
4917 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
4919 (getpkt_or_notif_sane_1): Likewise.
4921 2017-01-13 Yao Qi <yao.qi@linaro.org>
4923 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
4924 of CC. Pass "-x c++-header" instead of "-x c".
4926 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
4928 * remote.c (remote_can_async_p): Update comment.
4930 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
4932 * linux-nat.c (linux_nat_can_async_p): Update comment.
4934 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
4936 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
4938 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
4940 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
4942 2017-01-10 Tom Tromey <tom@tromey.com>
4944 * python/py-type.c (typy_legacy_template_argument): Update.
4945 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
4946 ~demangle_parse_info): Declare new members.
4947 (cp_demangled_name_to_comp): Return unique_ptr.
4948 (cp_demangled_name_parse_free)
4949 (make_cleanup_cp_demangled_name_parse_free)
4950 (cp_new_demangle_parse_info): Remove.
4951 * cp-support.c (do_demangled_name_parse_free_cleanup)
4952 (make_cleanup_cp_demangled_name_parse_free): Remove.
4953 (inspect_type, cp_canonicalize_string_full)
4954 (cp_canonicalize_string): Update.
4955 (mangled_name_to_comp): Change return type.
4956 (cp_class_name_from_physname, method_name_from_physname)
4957 (cp_func_name, cp_remove_params): Update.
4958 * cp-name-parser.y (demangle_parse_info): New constructor, from
4959 cp_new_demangle_parse_info.
4960 (~demangle_parse_info): New destructor, from
4961 cp_demangled_name_parse_free.
4962 (cp_merge_demangle_parse_infos): Update.
4963 (cp_demangled_name_to_comp): Change return type.
4965 2017-01-10 Tom Tromey <tom@tromey.com>
4967 * top.c (prevent_dont_repeat): Change return type.
4968 * python/python.c (execute_gdb_command): Use std::string.
4970 * guile/guile.c (gdbscm_execute_gdb_command): Update.
4971 * command.h (prevent_dont_repeat): Change return type.
4972 * breakpoint.c (bpstat_do_actions_1): Update.
4974 2017-01-10 Tom Tromey <tom@tromey.com>
4976 * value.h (scoped_value_mark::~scoped_value_mark): Call
4978 (scoped_value_mark::free_to_mark): New method.
4979 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4982 2017-01-10 Tom Tromey <tom@tromey.com>
4984 * python/py-value.c (valpy_dereference, valpy_referenced_value)
4985 (valpy_reference_value, valpy_const_value, valpy_get_address)
4986 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
4987 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
4988 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
4989 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4991 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
4992 * value.h (scoped_value_mark): New class.
4994 2017-01-10 Tom Tromey <tom@tromey.com>
4996 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
4997 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
4998 * psymtab.c (discard_psymtabs_upto): Remove.
4999 (make_cleanup_discard_psymtabs): Remove.
5000 (struct psymtab_state): Remove.
5002 2017-01-10 Tom Tromey <tom@tromey.com>
5004 * record-full.c (record_full_save_cleanups): Remove.
5005 (record_full_save): Use gdb::unlinker.
5006 * gcore.c (do_bfd_delete_cleanup): Remove.
5007 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
5009 * dwarf2read.c (unlink_if_set): Remove.
5010 (write_psymtabs_to_index): Use gdb::unlinker.
5011 * common/gdb_unlinker.h: New file.
5013 2017-01-10 Tom Tromey <tom@tromey.com>
5015 * windows-tdep.c (windows_xfer_shared_library): Update.
5016 * windows-nat.c (windows_make_so): Update.
5017 * utils.h (make_cleanup_bfd_unref): Remove.
5018 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
5019 * symfile.h (symfile_bfd_open)
5020 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
5021 * symfile.c (read_symbols, symbol_file_add)
5022 (separate_debug_file_exists): Update.
5023 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
5024 (generic_load, reread_symbols): Update.
5025 * symfile-mem.c (symbol_file_add_from_memory): Update.
5026 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
5027 (spu_symbol_file_add_from_memory): Update.
5028 * solist.h (struct target_so_ops) <bfd_open>: Return
5030 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
5031 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
5033 (solib_map_sections, reload_shared_libraries_1): Update.
5034 * solib-svr4.c (enable_break): Update.
5035 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
5036 * solib-frv.c (enable_break2): Update.
5037 * solib-dsbt.c (enable_break): Update.
5038 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
5040 (darwin_solib_get_all_image_info_addr_at_init): Update.
5041 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
5042 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
5043 * record-full.c (record_full_save): Update.
5044 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
5045 * procfs.c (insert_dbx_link_bpt_in_file): Update.
5046 * minidebug.c (find_separate_debug_file_in_section): Return
5048 * machoread.c (macho_add_oso_symfile): Change abfd to
5050 (macho_symfile_read_all_oso): Update.
5051 (macho_check_dsym): Return gdb_bfd_ref_ptr.
5052 (macho_symfile_read): Update.
5053 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
5054 (jit_bfd_try_read_symtab): Update.
5055 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5056 (gdb_bfd_openw, gdb_bfd_openr_iovec)
5057 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
5059 (gdb_bfd_ref_policy): New struct.
5060 (gdb_bfd_ref_ptr): New typedef.
5061 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5062 (gdb_bfd_openw, gdb_bfd_openr_iovec)
5063 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
5065 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
5066 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
5067 (gcore_command): Update.
5068 * exec.c (exec_file_attach): Update.
5069 * elfread.c (elf_symfile_read): Update.
5070 * dwarf2read.c (dwarf2_get_dwz_file): Update.
5071 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
5072 (open_and_init_dwo_file): Update.
5073 (open_dwp_file): Return gdb_bfd_ref_ptr.
5074 (open_and_init_dwp_file): Update.
5075 * corelow.c (core_open): Update.
5076 * compile/compile-object-load.c (compile_object_load): Update.
5077 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
5078 * coffread.c (coff_symfile_read): Update.
5079 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
5080 gdb_bfd_ref_ptr. Rename.
5081 (dump_bfd_file, restore_command): Update.
5082 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
5083 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
5084 (find_separate_debug_file_by_buildid): Update.
5086 2017-01-10 Tom Tromey <tom@tromey.com>
5088 * common/gdb_ref_ptr.h: New file.
5089 * python/py-ref.h (struct gdbpy_ref_policy): New.
5090 (gdbpy_ref): Now a typedef.
5092 2017-01-10 Tom Tromey <tom@tromey.com>
5094 * utils.h (make_cleanup_htab_delete): Don't declare.
5095 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
5097 * linespec.c (decode_compound_collector): Add constructor,
5099 (lookup_prefix_sym): Remove cleanup.
5100 (symtab_collector): Add constructor, destructor.
5101 (collect_symtabs_from_filename): Remove cleanup.
5102 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
5103 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
5105 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
5106 * dwarf2read.c (dw2_expand_symtabs_matching)
5107 (dw2_map_symbol_filenames, dwarf_decode_macros)
5108 (write_psymtabs_to_index): Use htab_up.
5109 * dwarf2loc.c (func_verify_no_selftailcall)
5110 (call_site_find_chain_1, func_verify_no_selftailcall)
5111 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
5112 std::vector, gdb::unique_xmalloc_ptr.
5113 (call_sitep): Remove typedef.
5114 (dwarf2_locexpr_baton_eval): Remove unused variable.
5116 2017-01-10 Tom Tromey <tom@tromey.com>
5118 * python/python-internal.h (make_cleanup_py_decref)
5119 (make_cleanup_py_xdecref): Don't declare.
5120 * python/py-utils.c (py_decref, make_cleanup_py_decref)
5121 (py_xdecref, make_cleanup_py_xdecref): Remove.
5123 2017-01-10 Tom Tromey <tom@tromey.com>
5125 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
5126 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
5128 2017-01-10 Tom Tromey <tom@tromey.com>
5130 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
5132 2017-01-10 Tom Tromey <tom@tromey.com>
5134 * python/py-utils.c (unicode_to_encoded_string)
5135 (python_string_to_target_string)
5136 (python_string_to_target_python_string)
5137 (python_string_to_host_string, gdbpy_obj_to_string)
5138 (get_addr_from_python): Use gdbpy_ref.
5140 2017-01-10 Tom Tromey <tom@tromey.com>
5142 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
5145 2017-01-10 Tom Tromey <tom@tromey.com>
5147 * python/python.c (eval_python_command, gdbpy_decode_line)
5148 (gdbpy_run_events, gdbpy_start_type_printers)
5149 (gdbpy_apply_type_printers): Use gdbpy_ref.
5151 2017-01-10 Tom Tromey <tom@tromey.com>
5153 * python/py-param.c (get_doc_string, compute_enum_values): Use
5156 2017-01-10 Tom Tromey <tom@tromey.com>
5158 * python/py-inferior.c (find_thread_object, build_inferior_list):
5161 2017-01-10 Tom Tromey <tom@tromey.com>
5163 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
5165 2017-01-10 Tom Tromey <tom@tromey.com>
5167 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
5170 2017-01-10 Tom Tromey <tom@tromey.com>
5172 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
5174 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
5177 2017-01-10 Tom Tromey <tom@tromey.com>
5179 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
5182 2017-01-10 Tom Tromey <tom@tromey.com>
5184 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
5185 decref results of PyArg_ParseTupleAndKeywords.
5187 2017-01-10 Tom Tromey <tom@tromey.com>
5189 * python/python.c (python_run_simple_file): Use
5190 unique_xmalloc_ptr, gdbpy_ref.
5192 2017-01-10 Tom Tromey <tom@tromey.com>
5194 * python/py-prettyprint.c (print_stack_unless_memory_error)
5195 (print_string_repr, print_children): Use gdbpy_ref.
5196 (dummy_python_frame): New class.
5197 (dummy_python_frame::dummy_python_frame): Rename from
5198 push_dummy_python_frame.
5199 (py_restore_tstate): Remove.
5201 2017-01-10 Tom Tromey <tom@tromey.com>
5203 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
5205 2017-01-10 Tom Tromey <tom@tromey.com>
5207 * python/python.c (ensure_python_env, restore_python_env):
5209 * python/python-internal.h (ensure_python_env): Don't declare.
5210 * varobj.h (varobj_ensure_python_env): Don't declare.
5211 * varobj.c (varobj_ensure_python_env): Remove.
5213 2017-01-10 Tom Tromey <tom@tromey.com>
5215 * varobj.c (varobj_value_get_print_value): Use
5218 2017-01-10 Tom Tromey <tom@tromey.com>
5220 * python/py-prettyprint.c (print_string_repr, print_children):
5222 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
5224 * varobj.c (varobj_value_get_print_value): Update.
5225 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
5227 2017-01-10 Tom Tromey <tom@tromey.com>
5229 * varobj.c (varobj_get_display_hint)
5230 (dynamic_varobj_has_child_method, install_new_value_visualizer)
5231 (varobj_set_visualizer, free_variable): Use
5234 2017-01-10 Tom Tromey <tom@tromey.com>
5236 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
5237 (do_finish_initialization): New function. Use gdbpy_ref.
5238 (gdbpy_finish_initialization): Use gdbpy_enter. Call
5239 do_finish_initialization.
5241 2017-01-10 Tom Tromey <tom@tromey.com>
5243 * python/py-param.c (get_set_value, get_show_value): Use
5244 gdbpy_enter, gdbpy_ref.
5246 2017-01-10 Tom Tromey <tom@tromey.com>
5248 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
5250 2017-01-10 Tom Tromey <tom@tromey.com>
5252 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
5254 2017-01-10 Tom Tromey <tom@tromey.com>
5256 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
5257 Use gdbpy_enter_varobj.
5259 2017-01-10 Tom Tromey <tom@tromey.com>
5261 * varobj.c (gdbpy_enter_varobj): New constructor.
5262 * python/python-internal.h (gdbpy_enter_varobj): New class.
5263 * python/py-varobj.c (py_varobj_get_iterator): Use
5266 2017-01-10 Tom Tromey <tom@tromey.com>
5268 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
5269 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
5270 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
5271 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
5273 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
5275 2017-01-10 Tom Tromey <tom@tromey.com>
5277 * python/py-xmethods.c (invoke_match_method): Use
5280 2017-01-10 Tom Tromey <tom@tromey.com>
5282 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
5283 gdbpy_enter, gdbpy_ref.
5285 2017-01-10 Tom Tromey <tom@tromey.com>
5287 * python/python.c (python_interactive_command): Use gdbpy_enter.
5289 2017-01-10 Tom Tromey <tom@tromey.com>
5291 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
5294 2017-01-10 Tom Tromey <tom@tromey.com>
5296 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
5297 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
5299 2017-01-10 Tom Tromey <tom@tromey.com>
5301 * utils.h (htab_deleter): New struct.
5302 (htab_up): New typedef.
5303 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
5304 gdbpy_enter, gdbpy_ref, htab_up.
5306 2017-01-10 Tom Tromey <tom@tromey.com>
5308 * python/py-unwind.c (pending_frame_invalidate): Remove.
5309 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
5311 2017-01-10 Tom Tromey <tom@tromey.com>
5313 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
5314 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
5316 2017-01-10 Tom Tromey <tom@tromey.com>
5318 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
5320 2017-01-10 Tom Tromey <tom@tromey.com>
5322 * python/python.c (gdbpy_eval_from_control_command)
5323 (gdbpy_source_script, gdbpy_run_events)
5324 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
5325 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
5328 2017-01-10 Tom Tromey <tom@tromey.com>
5330 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
5332 2017-01-10 Tom Tromey <tom@tromey.com>
5334 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
5336 2017-01-10 Tom Tromey <tom@tromey.com>
5338 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5339 (python_on_inferior_call_pre, python_on_inferior_call_post)
5340 (python_on_memory_change, python_on_register_change)
5341 (python_inferior_exit, python_new_objfile, add_thread_object)
5342 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
5344 2017-01-10 Tom Tromey <tom@tromey.com>
5346 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
5347 (bpfinishpy_handle_exit): Use gdbpy_enter.
5349 2017-01-10 Tom Tromey <tom@tromey.com>
5351 * python/py-cmd.c (cmdpy_destroyer)
5352 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
5355 2017-01-10 Tom Tromey <tom@tromey.com>
5357 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
5359 (gdbpy_breakpoint_has_cond): Likewise.
5361 2017-01-10 Tom Tromey <tom@tromey.com>
5363 * python/python.c (gdbpy_enter): New constructor.
5364 (~gdbpy_enter): New destructor.
5365 (restore_python_env, ensure_python_env): Rewrite.
5366 * python/python-internal.h (gdbpy_enter): New class.
5368 2017-01-10 Tom Tromey <tom@tromey.com>
5370 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
5372 2017-01-10 Tom Tromey <tom@tromey.com>
5374 * python/py-value.c (value_has_field, get_field_flag)
5375 (get_field_type, valpy_getitem, convert_value_from_python): Use
5378 2017-01-10 Tom Tromey <tom@tromey.com>
5380 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
5383 2017-01-10 Tom Tromey <tom@tromey.com>
5385 * python/py-prettyprint.c (search_pp_list)
5386 (find_pretty_printer_from_objfiles)
5387 (find_pretty_printer_from_progspace)
5388 (find_pretty_printer_from_gdb, find_pretty_printer)
5389 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
5392 2017-01-10 Tom Tromey <tom@tromey.com>
5394 * python/py-param.c (call_doc_function): Use gdbpy_ref.
5396 2017-01-10 Tom Tromey <tom@tromey.com>
5398 * python/py-linetable.c (build_line_table_tuple_from_pcs)
5399 (ltpy_get_all_source_lines): Use gdbpy_ref.
5401 2017-01-10 Tom Tromey <tom@tromey.com>
5403 * python/py-framefilter.c (extract_sym, extract_value)
5404 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
5407 2017-01-10 Tom Tromey <tom@tromey.com>
5409 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
5411 2017-01-10 Tom Tromey <tom@tromey.com>
5413 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
5415 2017-01-10 Tom Tromey <tom@tromey.com>
5417 * python/py-function.c (convert_values_to_python, fnpy_init): Use
5420 2017-01-10 Tom Tromey <tom@tromey.com>
5422 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
5424 2017-01-10 Tom Tromey <tom@tromey.com>
5426 * python/py-type.c (convert_field, make_fielditem, typy_fields)
5427 (typy_range): Use gdbpy_ref.
5429 2017-01-10 Tom Tromey <tom@tromey.com>
5431 * python/py-threadevent.c (create_thread_event_object): Use
5433 * python/py-stopevent.c (create_stop_event_object): Simplify.
5434 (emit_stop_event): Use gdbpy_ref.
5435 * python/py-signalevent.c (create_signal_event_object): Use
5437 * python/py-newobjfileevent.c (create_new_objfile_event_object)
5438 (emit_new_objfile_event, create_clear_objfiles_event_object)
5439 (emit_clear_objfiles_event): Use gdbpy_ref.
5440 * python/py-infevents.c (create_inferior_call_event_object)
5441 (create_register_changed_event_object)
5442 (create_memory_changed_event_object, emit_inferior_call_event)
5443 (emit_memory_changed_event, emit_register_changed_event): Use
5445 * python/py-exitedevent.c (create_exited_event_object)
5446 (emit_exited_event): Use gdbpy_ref.
5447 * python/py-event.h (evpy_emit_event): Remove
5448 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
5449 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
5450 * python/py-continueevent.c (emit_continue_event): Use
5452 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5453 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5455 * python/py-bpevent.c (create_breakpoint_event_object): Use
5458 2017-01-10 Tom Tromey <tom@tromey.com>
5460 * python/py-ref.h: New file.
5462 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
5464 * cli-out.c (cli_ui_out::do_redirect): Change return type to
5466 * cli-out.h (cli_ui_out::do_redirect): Likewise.
5467 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
5468 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
5469 * ui-out.c (ui_out::redirect): Likewise.
5470 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
5471 * cli/cli-logging.c (set_logging_redirect): Update call site of
5473 (handle_redirections): Likewise.
5474 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
5475 * top.c (execute_command_to_string): Likewise.
5476 * utils.c (do_ui_out_redirect_pop): Likewise.
5478 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
5480 * stack.c (_initialize_stack): Update "frame" command help message.
5482 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
5484 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
5486 2017-01-06 Yao Qi <yao.qi@linaro.org>
5488 * x86-linux-nat.h: Include gdb_proc_service.h.
5490 2017-01-06 Yao Qi <yao.qi@linaro.org>
5492 * ser-base.h: Include serial.h.
5494 2017-01-06 Yao Qi <yao.qi@linaro.org>
5496 * ppc-linux-tdep.h: Include ppc-tdep.h.
5498 2017-01-06 Yao Qi <yao.qi@linaro.org>
5500 * nat/amd64-linux-siginfo.h: Include signal.h.
5502 2017-01-06 Yao Qi <yao.qi@linaro.org>
5504 * nat/aarch64-linux-hw-point.h: Include break-common.h.
5506 2017-01-06 Yao Qi <yao.qi@linaro.org>
5508 * mi/mi-parse.h: Include mi-cmds.h.
5510 2017-01-06 Yao Qi <yao.qi@linaro.org>
5512 * inf-loop.c: Don't include "target.h".
5513 * inf-loop.h: Include it here.
5515 2017-01-06 Yao Qi <yao.qi@linaro.org>
5517 * dfp.h: Include "dboulest.h" and "expression.h".
5519 2017-01-06 Yao Qi <yao.qi@linaro.org>
5521 * ax-gdb.h: Include "ax.h".
5523 2017-01-06 Yao Qi <yao.qi@linaro.org>
5525 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
5526 with nat/gdb_ptrace.h.
5528 2017-01-05 Yao Qi <yao.qi@linaro.org>
5530 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
5532 (mips64_fbsd_sigframe_init): Likewise.
5534 2017-01-04 John Baldwin <jhb@FreeBSD.org>
5536 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
5537 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
5539 2017-01-04 John Baldwin <jhb@FreeBSD.org>
5541 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
5542 * NEWS: Mention new FreeBSD/mips native configuration.
5543 * config/mips/fbsd.mh: New file.
5544 * configure.host: Add mips*-*-freebsd*.
5545 * mips-fbsd-nat.c: New file.
5547 2017-01-04 John Baldwin <jhb@FreeBSD.org>
5549 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
5550 (ALLDEPFILES): Add mips-fbsd-tdep.c.
5551 * NEWS: Mention new FreeBSD/mips target.
5552 * configure.tgt: Add mips*-*-freebsd*.
5553 * mips-fbsd-tdep.c: New file.
5554 * mips-fbsd-tdep.h: New file.
5556 2017-01-04 Yao Qi <yao.qi@linaro.org>
5558 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
5559 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
5561 2017-01-01 Joel Brobecker <brobecker@adacore.com>
5563 Update copyright year range in all GDB files.
5565 2017-01-01 Joel Brobecker <brobecker@adacore.com>
5567 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
5569 For older changes see ChangeLog-2016.
5575 version-control: never